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