CmosMap.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /** @file
  2. Cmos address definition macros header file.
  3. Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef _CMOS_MAP_H_
  7. #define _CMOS_MAP_H_
  8. //
  9. // CMOS 0x34/0x35 specifies the system memory above 16 MB.
  10. // * CMOS(0x35) is the high byte
  11. // * CMOS(0x34) is the low byte
  12. // * The size is specified in 64kb chunks
  13. // * Since this is memory above 16MB, the 16MB must be added
  14. // into the calculation to get the total memory size.
  15. //
  16. #define CMOS_SYSTEM_MEM_ABOVE_16MB_LOW_BYTE 0x34
  17. #define CMOS_SYSTEM_MEM_ABOVE_16MB_HIGH_BYTE 0x35
  18. //
  19. // CMOS 0x5b-0x5d specifies the system memory above 4GB MB.
  20. // * CMOS(0x5d) is the most significant size byte
  21. // * CMOS(0x5c) is the middle size byte
  22. // * CMOS(0x5b) is the least significant size byte
  23. // * The size is specified in 64kb chunks
  24. //
  25. #define CMOS_SYSTEM_MEM_ABOVE_4GB_LOW_BYTE 0x5b
  26. #define CMOS_SYSTEM_MEM_ABOVE_4GB_MIDDLE_BYTE 0x5c
  27. #define CMOS_SYSTEM_MEM_ABOVE_4GB_HIGH_BYTE 0x5d
  28. #endif // _CMOS_MAP_H_