NVRAPI.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. *
  16. * apinvr.h
  17. * NVRAM API
  18. *
  19. * Author: Govind Kothandapani <govindk@ami.com>
  20. *
  21. *****************************************************************/
  22. #ifndef APINVR_H
  23. #define APINVR_H
  24. #include "Types.h"
  25. /*------------------------------------------------------------------*
  26. * @fn API_ReadNVR
  27. * @brief Reads the contents of the NVRAM Entry.
  28. * @param NVRName NVR to read.
  29. * @param Offset Offset to start reading from.
  30. * @param Size Size to read. -1 if read till the end.
  31. * @param pBuf Pointer to the buffer to store the contents.
  32. * @return 0 if success.
  33. * -1 if the entry could not be read.
  34. *-------------------------------------------------------------------*/
  35. extern int API_ReadNVR (char *NVRName, INT32U Offset, INT16U Size, _FAR_ INT8U* pBuf);
  36. /*------------------------------------------------------------------*
  37. * @fn API_WriteNVR
  38. * @brief Writes the contents of the NVRAM Entry.
  39. * @param NVRName NVR to write.
  40. * @param Offset Offset to start writing to.
  41. * @param Size Size to write. -1 if write till the end.
  42. * @param pBuf Pointer to the buffer to write the contents from.
  43. * @return 0 if success.
  44. * -1 if the entry could not be written to.
  45. *-------------------------------------------------------------------*/
  46. extern int API_WriteNVR (char *NVRName, INT32U Offset, INT16U Size, INT8U* pBuf);
  47. #endif /* APINVR_H */