bmc_conf.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /*
  2. * Configure the BMC function in here.
  3. * Enable function by define macro 1.
  4. * Disable function by define macro 0.
  5. * Author: Jimbo
  6. */
  7. #ifndef __BMC_CONF_H__
  8. #define __BMC_CONF_H__
  9. #define MAX_SENSOR_NUM 8
  10. //#define SENSOR_NAME_LEN 20
  11. #define CONF_IPMB_SUPPORT 1
  12. #define CONF_POWER_SUPPORT 1
  13. #define CONF_SENSOR_SUPPORT 1
  14. #define PRIMARY_IPMB_CHANNEL 0x00
  15. #define PRIMARY_PB_TBL 0
  16. #define SECONDARY_PB_TBL 1
  17. #define IP6_ADDR_LEN 16
  18. #define MAX_USER_NAME_LEN (16+1) //1 for storing the null character
  19. #define MSG_PAYLOAD_SIZE 1024 * 4
  20. #define PIPE_NAME_LEN 64
  21. #define MSG_PIPES_PATH "/var/"
  22. #define PARAM_IFC 0x01
  23. #define BMCNUM 0x1
  24. #define MAX_PYLDS_SUPPORT 2
  25. //Added to Support 20 Alert Strings in Set/Get Pef Config.Parms ../
  26. ///* It should equal to number of Event filter entries */
  27. #define MAX_ALERT_STRINGS MAX_EVT_FILTER_ENTRIES
  28. #define PEF_MAX_OEM_PARAMETERS 0x20
  29. #define MAX_SIZE_PET_GUID 0x11
  30. #define MAX_PLD_ENABLES_TYPES 4
  31. #define MAX_FF_CMD_CFGS 255
  32. #define MAX_PRIVILEGE_TYPES 7
  33. #define MAX_NUM_CH_USERS_MDS 0x10
  34. #define MAX_USERNAME_LEN 16
  35. #define MAX_PASSWORD_LEN 20
  36. #define EMAIL_ADDR_SIZE 64
  37. #define EMAIL_FORMAT_SIZE 64
  38. #define AUTHTYPE_RESERVED 0x03
  39. #define LOOP_BACK_REQ 0x10
  40. #define NVRH_USERCONFIG 0
  41. #define USER_ID (((INT32U)'U'<< 24) | ((INT32U)'S'<< 16) | ('E'<<8) | 'R')
  42. #define MAX_NUM_CHANNELS 0xc
  43. #define MAX_PASSWD_LEN ( 20 )
  44. #define MAX_SIZE_KEY 56
  45. #define AUTHTYPE_NONE 0x00
  46. #define AUTHTYPE_OEM_PROPRIETARY 0x05
  47. #define MAX_USER_CFG_MDS 0x10
  48. #define SESSION_ID_INFO 1
  49. #define CHALLENGE_STR_LEN 16
  50. #define SESSION_HANDLE_INFO 2
  51. #define SESSION_INDEX_INFO 3
  52. #define SESSION_CHANNEL_INFO 4
  53. #define MGD_SYS_SESSION_ID_INFO 5
  54. #define SESSION_PAYLOAD_INFO 6
  55. #define SESSION_REMOTE_INFO 7
  56. #define MAX_INST_SUPPORTED 2
  57. #define IFNAMSIZ 16
  58. #define MAX_CHANNEL 0x04
  59. #define PRIV_LEVEL_RESERVED 0x00
  60. #define PRIV_LEVEL_PROPRIETARY 0x05
  61. #define MAX_PASSWORD_LEN 20
  62. #define SIXTEEN_COUNT_WINDOW_LEN 16
  63. #define MD5 0x02
  64. /** Pending Bridged Response Tbl Size
  65. **
  66. ** Do not increase beyond 60 as maximum sequence number is 64
  67. **------------------------------------------------------------*/
  68. #define MAX_PENDING_BRIDGE_RES 64
  69. #define MAX_PENDING_BRIDGE_TBL 2
  70. /*------------------------------------------------------------
  71. * IPMI support config
  72. *----------------------------------------------------------*/
  73. #define BRIDGE_DEVICE 0
  74. #define IPM_DEVICE 1
  75. #define APP_DEVICE 1
  76. #define CHASSIS_DEVICE 0
  77. #define EVENT_PROCESSING_DEVICE 0
  78. #define PEF_DEVICE 0
  79. #define SENSOR_DEVICE 1
  80. #define FRU_DEVICE 0
  81. #define SDR_DEVICE 1
  82. #define SEL_DEVICE 0
  83. #define AMI_DEVICE 0
  84. #define OEM_DEVICE 1
  85. #endif /* __BMC_CONF_H__ */