Cmos.h 907 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /** @file
  2. PC/AT CMOS access routines
  3. Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef _CMOS_H_
  7. #define _CMOS_H_
  8. /**
  9. Reads 8-bits of CMOS data.
  10. Reads the 8-bits of CMOS data at the location specified by Index.
  11. The 8-bit read value is returned.
  12. @param Index The CMOS location to read.
  13. @return The value read.
  14. **/
  15. UINT8
  16. EFIAPI
  17. CmosRead8 (
  18. IN UINTN Index
  19. );
  20. /**
  21. Writes 8-bits of CMOS data.
  22. Writes 8-bits of CMOS data to the location specified by Index
  23. with the value specified by Value and returns Value.
  24. @param Index The CMOS location to write.
  25. @param Value The value to write to CMOS.
  26. @return The value written to CMOS.
  27. **/
  28. UINT8
  29. EFIAPI
  30. CmosWrite8 (
  31. IN UINTN Index,
  32. IN UINT8 Value
  33. );
  34. #endif /* _CMOS_H_ */