PchAccess.h 993 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /** @file
  2. Macros that simplify accessing PCH devices's PCI registers.
  3. Copyright (c) 2019 Intel Corporation. All rights reserved. <BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef _PCH_ACCESS_H_
  7. #define _PCH_ACCESS_H_
  8. #include "PchReservedResources.h"
  9. #ifndef STALL_ONE_MICRO_SECOND
  10. #define STALL_ONE_MICRO_SECOND 1
  11. #endif
  12. #ifndef STALL_ONE_SECOND
  13. #define STALL_ONE_SECOND 1000000
  14. #endif
  15. ///
  16. /// The default PCH PCI bus number
  17. ///
  18. #define DEFAULT_PCI_BUS_NUMBER_PCH 0
  19. //
  20. // Default Vendor ID and Subsystem ID
  21. //
  22. #define V_PCH_INTEL_VENDOR_ID 0x8086 ///< Default Intel PCH Vendor ID
  23. #define V_PCH_DEFAULT_SID 0x7270 ///< Default Intel PCH Subsystem ID
  24. #define V_PCH_DEFAULT_SVID_SID (V_INTEL_VENDOR_ID + (V_PCH_DEFAULT_SID << 16)) ///< Default INTEL PCH Vendor ID and Subsystem ID
  25. //
  26. // Include device register definitions
  27. //
  28. #include "Register/PchRegsPmc.h"
  29. #include "Register/PchRegsSpi.h"
  30. #endif