]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Pi/PiS3BootScript.h
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Include / Pi / PiS3BootScript.h
CommitLineData
8c803876 1/** @file\r
9095d37b 2 This file contains the boot script defintions that are shared between the\r
8c803876 3 Boot Script Executor PPI and the Boot Script Save Protocol.\r
4\r
9095d37b 5 Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
9344f092 6 SPDX-License-Identifier: BSD-2-Clause-Patent\r
8c803876 7\r
8**/\r
9\r
10#ifndef _PI_S3_BOOT_SCRIPT_H_\r
11#define _PI_S3_BOOT_SCRIPT_H_\r
12\r
13//*******************************************\r
14// EFI Boot Script Opcode definitions\r
15//*******************************************\r
16#define EFI_BOOT_SCRIPT_IO_WRITE_OPCODE 0x00\r
17#define EFI_BOOT_SCRIPT_IO_READ_WRITE_OPCODE 0x01\r
18#define EFI_BOOT_SCRIPT_MEM_WRITE_OPCODE 0x02\r
19#define EFI_BOOT_SCRIPT_MEM_READ_WRITE_OPCODE 0x03\r
20#define EFI_BOOT_SCRIPT_PCI_CONFIG_WRITE_OPCODE 0x04\r
21#define EFI_BOOT_SCRIPT_PCI_CONFIG_READ_WRITE_OPCODE 0x05\r
22#define EFI_BOOT_SCRIPT_SMBUS_EXECUTE_OPCODE 0x06\r
23#define EFI_BOOT_SCRIPT_STALL_OPCODE 0x07\r
24#define EFI_BOOT_SCRIPT_DISPATCH_OPCODE 0x08\r
25#define EFI_BOOT_SCRIPT_DISPATCH_2_OPCODE 0x09\r
26#define EFI_BOOT_SCRIPT_INFORMATION_OPCODE 0x0A\r
27#define EFI_BOOT_SCRIPT_PCI_CONFIG2_WRITE_OPCODE 0x0B\r
28#define EFI_BOOT_SCRIPT_PCI_CONFIG2_READ_WRITE_OPCODE 0x0C\r
29#define EFI_BOOT_SCRIPT_IO_POLL_OPCODE 0x0D\r
30#define EFI_BOOT_SCRIPT_MEM_POLL_OPCODE 0x0E\r
31#define EFI_BOOT_SCRIPT_PCI_CONFIG_POLL_OPCODE 0x0F\r
32#define EFI_BOOT_SCRIPT_PCI_CONFIG2_POLL_OPCODE 0x10\r
33\r
34//*******************************************\r
35// EFI_BOOT_SCRIPT_WIDTH\r
36//*******************************************\r
37typedef enum {\r
38 EfiBootScriptWidthUint8,\r
39 EfiBootScriptWidthUint16,\r
40 EfiBootScriptWidthUint32,\r
41 EfiBootScriptWidthUint64,\r
42 EfiBootScriptWidthFifoUint8,\r
43 EfiBootScriptWidthFifoUint16,\r
44 EfiBootScriptWidthFifoUint32,\r
45 EfiBootScriptWidthFifoUint64,\r
46 EfiBootScriptWidthFillUint8,\r
47 EfiBootScriptWidthFillUint16,\r
48 EfiBootScriptWidthFillUint32,\r
49 EfiBootScriptWidthFillUint64,\r
50 EfiBootScriptWidthMaximum\r
51} EFI_BOOT_SCRIPT_WIDTH;\r
52\r
53#endif\r