You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CpuIo.h 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /** @file
  2. This code abstracts the CPU IO Protocol which installed by some platform or chipset-specific
  3. PEIM that abstracts the processor-visible I/O operations.
  4. Note: This is a runtime protocol and can be used by runtime drivers after ExitBootServices().
  5. It is different from the PI 1.2 CPU I/O 2 Protocol, which is a boot services only protocol
  6. and may not be used by runtime drivers after ExitBootServices().
  7. Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
  8. This program and the accompanying materials are licensed and made available under
  9. the terms and conditions of the BSD License that accompanies this distribution.
  10. The full text of the license may be found at
  11. http://opensource.org/licenses/bsd-license.php.
  12. THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
  13. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
  14. @par Revision Reference:
  15. CPU IO Protocol is defined in Framework of EFI CPU IO Protocol Spec
  16. Version 0.9.
  17. **/
  18. #ifndef _CPUIO_H_
  19. #define _CPUIO_H_
  20. #include <ipxe/efi/Protocol/CpuIo2.h>
  21. #define EFI_CPU_IO_PROTOCOL_GUID \
  22. { \
  23. 0xB0732526, 0x38C8, 0x4b40, {0x88, 0x77, 0x61, 0xC7, 0xB0, 0x6A, 0xAC, 0x45 } \
  24. }
  25. //
  26. // Framework CPU IO protocol structure is the same as CPU IO 2 protocol defined in PI 1.2 spec.
  27. // However, there is a significant different between the Framework CPU I/O
  28. // Protocol and the PI 1.2 CPU I/O 2 Protocol. The Framework one is a runtime
  29. // protocol, which means it can be used by runtime drivers after ExitBootServices().
  30. // The PI one is not runtime safe, so it is a boot services only protocol and may
  31. // not be used by runtime drivers after ExitBootServices().
  32. //
  33. typedef EFI_CPU_IO2_PROTOCOL EFI_CPU_IO_PROTOCOL;
  34. extern EFI_GUID gEfiCpuIoProtocolGuid;
  35. #endif