Cmos.h 942 B

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