FRU.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*****************************************************************
  2. *****************************************************************
  3. *** **
  4. *** (C)Copyright 2005-2006, American Megatrends Inc. **
  5. *** **
  6. *** All Rights Reserved. **
  7. *** **
  8. *** 6145-F, Northbelt Parkway, Norcross, **
  9. *** **
  10. *** Georgia - 30071, USA. Phone-(770)-246-8600. **
  11. *** **
  12. *****************************************************************
  13. ******************************************************************
  14. *
  15. * fru.h
  16. * fru.c extern declarations
  17. *
  18. * Author: Rama Bisa <govindk@ami.com>
  19. *
  20. ******************************************************************/
  21. #ifndef FRU_H
  22. #define FRU_H
  23. #include "Types.h"
  24. /**
  25. * @defgroup fdc FRU Device Command handlers
  26. * @ingroup storage
  27. * IPMI Platform Management FRU (Field Replaceable Unit) information storage
  28. * interface commands. Implemented as per Version 1.0 and Document Rev 1.1.
  29. * @{
  30. **/
  31. #define FRU_DEVICE_NOT_FOUND 0xCB
  32. #define FRU_NOT_ACCESSIBLE 0x81
  33. #define FRU_ACCESSIBLE 0x0
  34. #define MAX_PDK_FRU_SUPPORTED 10
  35. #define FRU_COMMON_HEADER_FORMAT_VERSION 0x01
  36. #define FRU_IC_ONE 0x01
  37. #define FRU_IC_TWO 0x02
  38. #define FRU_DEVICE_TYPE 10
  39. extern int GetFRUAreaInfo (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  40. extern int ReadFRUData (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  41. extern int WriteFRUData (_NEAR_ INT8U* pReq, INT8U ReqLen, _NEAR_ INT8U* pRes,_NEAR_ int BMCInst);
  42. /** @} */
  43. /**
  44. * @brief Validates and Initializes FRU.
  45. * @return 0 if success, -1 if error.
  46. **/
  47. extern int InitFRU (int BMCInst);
  48. extern int ValidateFRUChecksum (INT8U FRUChksumType, INT8U *Ptr);
  49. #endif /* FRU_H */