2 This file contains the boot script defintions that are shared between the
3 Boot Script Executor PPI and the Boot Script Save Protocol.
5 Copyright (c) 2009, Intel Corporation
6 All rights reserved. This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #ifndef _BOOT_SCRIPT_H_
17 #define _BOOT_SCRIPT_H_
20 /// S3 Boot Script Table identifier
22 #define EFI_ACPI_S3_RESUME_SCRIPT_TABLE 0x00
25 /// The opcode is to add a record for an I/O write operation into a specified boot script table.
27 #define EFI_BOOT_SCRIPT_IO_WRITE_OPCODE 0x00
29 /// The opcode is to add a record for an I/O modify operation into a specified boot script table.
31 #define EFI_BOOT_SCRIPT_IO_READ_WRITE_OPCODE 0x01
33 /// The opcode is to add a record for a memory write operation into a specified boot script table.
35 #define EFI_BOOT_SCRIPT_MEM_WRITE_OPCODE 0x02
37 /// The opcode is to add a record for a memory modify operation into a specified boot script table.
39 #define EFI_BOOT_SCRIPT_MEM_READ_WRITE_OPCODE 0x03
41 /// The opcode is to adds a record for a PCI configuration space write operation into a specified boot
44 #define EFI_BOOT_SCRIPT_PCI_CONFIG_WRITE_OPCODE 0x04
46 /// The opcode is to add a record for a PCI configuration space modify operation into a specified
47 /// boot script table.
49 #define EFI_BOOT_SCRIPT_PCI_CONFIG_READ_WRITE_OPCODE 0x05
51 /// The opcode is to add a record for an SMBus command execution into a specified boot script table.
53 #define EFI_BOOT_SCRIPT_SMBUS_EXECUTE_OPCODE 0x06
55 /// The opcode is to adds a record for an execution stall on the processor into a specified
56 /// boot script table.
58 #define EFI_BOOT_SCRIPT_STALL_OPCODE 0x07
60 /// The opcode is to add a record for dispatching specified arbitrary code into a specified
61 /// boot script table.
63 #define EFI_BOOT_SCRIPT_DISPATCH_OPCODE 0x08
66 // Extensions to boot script definitions
69 /// Inconsistent with specification here:
70 /// Follow OPCODEs are not defined in Framework Spec BootScript_0.91, but in
71 /// PI1.0 Spec. And OPCODEs which are needed in the implementation
74 /// The opcode is to add a record for memory reads of the memory location and continues when the
75 /// exit criteria is satisfied or after a defined duration.
77 #define EFI_BOOT_SCRIPT_MEM_POLL_OPCODE 0x09
79 /// The opcode is to store arbitrary information in the boot script table which is a no-op on dispatch
80 /// and is only used for debugging script issues.
82 #define EFI_BOOT_SCRIPT_INFORMATION_OPCODE 0x0A
84 /// The opcode is to add a record for a PCI configuration space write operation into a
85 /// specified boot script table.
87 #define EFI_BOOT_SCRIPT_PCI_CONFIG2_WRITE_OPCODE 0x0B
89 /// The opcode is to add a record for a PCI configuration space modify operation into a specified
90 /// boot script table.
92 #define EFI_BOOT_SCRIPT_PCI_CONFIG2_READ_WRITE_OPCODE 0x0C
94 /// The opcode is to add a record for dispatching specified arbitrary code into a specified
95 /// boot script table.
97 #define EFI_BOOT_SCRIPT_DISPATCH_2_OPCODE 0x0D
100 /// The opcode indicate the start of the boot script table.
102 #define EFI_BOOT_SCRIPT_TABLE_OPCODE 0xAA
104 /// The opcode indicate the end of the boot script table.
106 #define EFI_BOOT_SCRIPT_TERMINATE_OPCODE 0xFF
109 /// EFI Boot Script Width
112 EfiBootScriptWidthUint8
,
113 EfiBootScriptWidthUint16
,
114 EfiBootScriptWidthUint32
,
115 EfiBootScriptWidthUint64
,
116 EfiBootScriptWidthFifoUint8
,
117 EfiBootScriptWidthFifoUint16
,
118 EfiBootScriptWidthFifoUint32
,
119 EfiBootScriptWidthFifoUint64
,
120 EfiBootScriptWidthFillUint8
,
121 EfiBootScriptWidthFillUint16
,
122 EfiBootScriptWidthFillUint32
,
123 EfiBootScriptWidthFillUint64
,
124 EfiBootScriptWidthMaximum
125 } EFI_BOOT_SCRIPT_WIDTH
;