libipmi_IPM.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /**
  2. * @file libipmi_IPM.h
  3. * @author Rajasekhar (rajasekharj@amiindia.co.in)
  4. * @date 02-Sep-2004
  5. *
  6. * @brief Contains exported IPM API by LIBIPMI for
  7. * communicating with the BMC.Corresponds
  8. directly to IPM device commands
  9. *
  10. */
  11. #ifndef __LIBIPMI_IPM_H__
  12. #define __LIBIPMI_IPM_H__
  13. /* LIIPMI core header files */
  14. #include "libipmi_session.h"
  15. #include "libipmi_errorcodes.h"
  16. /* command specific header files */
  17. #include "com_IPMI_IPM.h"
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21. /*---------- IPMI Command direct routines ----------*/
  22. /* Device ID */
  23. extern uint16_t IPMICMD_GetDeviceID( IPMI20_SESSION_T *pSession/*in*/,
  24. GetDevIDRes_T *pGetDeviceID/*out*/,
  25. int timeout/*in*/);
  26. /* Device GUID */
  27. extern uint16_t IPMICMD_GetDeviceGUID( IPMI20_SESSION_T *pSession/*in*/,
  28. GetDevGUIDRes_T *pGetDeviceGUID/*out*/,
  29. int timeout/*in*/ );
  30. /*---------- LIBIPMI Higher level routines -----------*/
  31. /* Device ID */
  32. extern uint16_t LIBIPMI_HL_GetDeviceID( IPMI20_SESSION_T *pSession/*in*/,
  33. char *pszDeviceID/*out*/, int timeout/*in*/ );
  34. /* Device GUID */
  35. extern uint16_t LIBIPMI_HL_GetDeviceGUID( IPMI20_SESSION_T *pSession /*in*/,
  36. char *pszDeviceGUID /*out*/, int timeout /*in*/);
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40. #endif