FRU.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 <stdint.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 FRU_COMMON_HEADER_FORMAT_VERSION 0x01
  35. extern int GetFRUAreaInfo ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  36. extern int ReadFRUData ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  37. extern int WriteFRUData ( uint8_t* pReq, uint8_t ReqLen, uint8_t* pRes);
  38. #endif /* FRU_H */