bmc_main.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #ifndef __BMC_MAIN_H__
  2. #define __BMC_MAIN_H__
  3. #define MAX_THREAD 256
  4. #include "pthread.h"
  5. #include "bmc_type.h"
  6. #include "bmc_conf.h"
  7. #include "hook.h"
  8. #include "Types.h"
  9. #include <stdio.h>
  10. #include <stdint.h>
  11. #include <errno.h>
  12. #include "semaphore.h"
  13. #include <fcntl.h>
  14. #include "IPMIDefs.h"
  15. #include "Support.h"
  16. #include <string.h>
  17. #include <memory.h>
  18. #include <time.h>
  19. #include "sensor_driver.h"
  20. #include "SharedMem.h"
  21. #include "App.h"
  22. #include "Chassis.h"
  23. #include "Bridge.h"
  24. #include "SensorEvent.h"
  25. #include "Storage.h"
  26. #include "DeviceConfig.h"
  27. #include "IPMI_App.h"
  28. #include "IPMI_Chassis.h"
  29. #include "IPMI_Bridge.h"
  30. #include "IPMI_SensorEvent.h"
  31. #include "IPMI_Storage.h"
  32. #include "IPMI_Oem.h"
  33. #include "cmdselect.h"
  34. //#include "Support.h"
  35. #include "session.h"
  36. /*------------------------------------------------------------------
  37. * * Timeout Macros
  38. * *------------------------------------------------------------------*/
  39. #define WAIT_NONE 0
  40. #define WAIT_INFINITE (-1)
  41. #define MAX_PENDING_SEQ_NO 50
  42. #define SEQ_NO_EXPIRATION_TIME 5
  43. #define FALSE 0
  44. #define TRUE 1
  45. #define MAX_IPMI_IFCQ 256
  46. #define MSG_HNDLR_Q MSG_PIPES_PATH "MsgHndlrQ"
  47. #define OBSM_TASK_Q MSG_PIPES_PATH "ObsmTaskQ"
  48. #define NO_RESPONSE 0x10
  49. #define NORMAL_RESPONSE 0x11
  50. #define BRIDGING_REQUEST 0x12
  51. extern char SessionSequenceNumberCount;
  52. extern pthread_t gthreadIDs[MAX_THREAD];
  53. extern int gthreadIndex;
  54. extern BMCInfo_t g_BMCInfo;
  55. extern pthread_mutex_t sensorSdr_mutex;
  56. extern pthread_mutex_t powerSta_mutex;
  57. extern IPMIQueue_T g_IPMIIfcQueue[MAX_IPMI_IFCQ];
  58. #endif /* __BMC_MAIN_H__ */