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.

PiS3BootScript.h 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /** @file
  2. This file contains the boot script defintions that are shared between the
  3. Boot Script Executor PPI and the Boot Script Save Protocol.
  4. Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>
  5. This program and the accompanying materials
  6. are licensed and made available under the terms and conditions of the BSD License
  7. which accompanies this distribution. The full text of the license may be found at
  8. http://opensource.org/licenses/bsd-license.php
  9. THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
  11. **/
  12. #ifndef _PI_S3_BOOT_SCRIPT_H_
  13. #define _PI_S3_BOOT_SCRIPT_H_
  14. //*******************************************
  15. // EFI Boot Script Opcode definitions
  16. //*******************************************
  17. #define EFI_BOOT_SCRIPT_IO_WRITE_OPCODE 0x00
  18. #define EFI_BOOT_SCRIPT_IO_READ_WRITE_OPCODE 0x01
  19. #define EFI_BOOT_SCRIPT_MEM_WRITE_OPCODE 0x02
  20. #define EFI_BOOT_SCRIPT_MEM_READ_WRITE_OPCODE 0x03
  21. #define EFI_BOOT_SCRIPT_PCI_CONFIG_WRITE_OPCODE 0x04
  22. #define EFI_BOOT_SCRIPT_PCI_CONFIG_READ_WRITE_OPCODE 0x05
  23. #define EFI_BOOT_SCRIPT_SMBUS_EXECUTE_OPCODE 0x06
  24. #define EFI_BOOT_SCRIPT_STALL_OPCODE 0x07
  25. #define EFI_BOOT_SCRIPT_DISPATCH_OPCODE 0x08
  26. #define EFI_BOOT_SCRIPT_DISPATCH_2_OPCODE 0x09
  27. #define EFI_BOOT_SCRIPT_INFORMATION_OPCODE 0x0A
  28. #define EFI_BOOT_SCRIPT_PCI_CONFIG2_WRITE_OPCODE 0x0B
  29. #define EFI_BOOT_SCRIPT_PCI_CONFIG2_READ_WRITE_OPCODE 0x0C
  30. #define EFI_BOOT_SCRIPT_IO_POLL_OPCODE 0x0D
  31. #define EFI_BOOT_SCRIPT_MEM_POLL_OPCODE 0x0E
  32. #define EFI_BOOT_SCRIPT_PCI_CONFIG_POLL_OPCODE 0x0F
  33. #define EFI_BOOT_SCRIPT_PCI_CONFIG2_POLL_OPCODE 0x10
  34. //*******************************************
  35. // EFI_BOOT_SCRIPT_WIDTH
  36. //*******************************************
  37. typedef enum {
  38. EfiBootScriptWidthUint8,
  39. EfiBootScriptWidthUint16,
  40. EfiBootScriptWidthUint32,
  41. EfiBootScriptWidthUint64,
  42. EfiBootScriptWidthFifoUint8,
  43. EfiBootScriptWidthFifoUint16,
  44. EfiBootScriptWidthFifoUint32,
  45. EfiBootScriptWidthFifoUint64,
  46. EfiBootScriptWidthFillUint8,
  47. EfiBootScriptWidthFillUint16,
  48. EfiBootScriptWidthFillUint32,
  49. EfiBootScriptWidthFillUint64,
  50. EfiBootScriptWidthMaximum
  51. } EFI_BOOT_SCRIPT_WIDTH;
  52. #endif