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. All rights reserved.<BR>
6 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 _PI_S3_BOOT_SCRIPT_H_
17 #define _PI_S3_BOOT_SCRIPT_H_
19 FILE_LICENCE ( BSD3 );
21 //*******************************************
22 // EFI Boot Script Opcode definitions
23 //*******************************************
24 #define EFI_BOOT_SCRIPT_IO_WRITE_OPCODE 0x00
25 #define EFI_BOOT_SCRIPT_IO_READ_WRITE_OPCODE 0x01
26 #define EFI_BOOT_SCRIPT_MEM_WRITE_OPCODE 0x02
27 #define EFI_BOOT_SCRIPT_MEM_READ_WRITE_OPCODE 0x03
28 #define EFI_BOOT_SCRIPT_PCI_CONFIG_WRITE_OPCODE 0x04
29 #define EFI_BOOT_SCRIPT_PCI_CONFIG_READ_WRITE_OPCODE 0x05
30 #define EFI_BOOT_SCRIPT_SMBUS_EXECUTE_OPCODE 0x06
31 #define EFI_BOOT_SCRIPT_STALL_OPCODE 0x07
32 #define EFI_BOOT_SCRIPT_DISPATCH_OPCODE 0x08
33 #define EFI_BOOT_SCRIPT_DISPATCH_2_OPCODE 0x09
34 #define EFI_BOOT_SCRIPT_INFORMATION_OPCODE 0x0A
35 #define EFI_BOOT_SCRIPT_PCI_CONFIG2_WRITE_OPCODE 0x0B
36 #define EFI_BOOT_SCRIPT_PCI_CONFIG2_READ_WRITE_OPCODE 0x0C
37 #define EFI_BOOT_SCRIPT_IO_POLL_OPCODE 0x0D
38 #define EFI_BOOT_SCRIPT_MEM_POLL_OPCODE 0x0E
39 #define EFI_BOOT_SCRIPT_PCI_CONFIG_POLL_OPCODE 0x0F
40 #define EFI_BOOT_SCRIPT_PCI_CONFIG2_POLL_OPCODE 0x10
42 //*******************************************
43 // EFI_BOOT_SCRIPT_WIDTH
44 //*******************************************
46 EfiBootScriptWidthUint8,
47 EfiBootScriptWidthUint16,
48 EfiBootScriptWidthUint32,
49 EfiBootScriptWidthUint64,
50 EfiBootScriptWidthFifoUint8,
51 EfiBootScriptWidthFifoUint16,
52 EfiBootScriptWidthFifoUint32,
53 EfiBootScriptWidthFifoUint64,
54 EfiBootScriptWidthFillUint8,
55 EfiBootScriptWidthFillUint16,
56 EfiBootScriptWidthFillUint32,
57 EfiBootScriptWidthFillUint64,
58 EfiBootScriptWidthMaximum
59 } EFI_BOOT_SCRIPT_WIDTH;