2007-06-15 12:02:42 +02:00
|
|
|
/** @file
|
2018-06-27 15:06:55 +02:00
|
|
|
This protocol is used to store or record various boot scripts into boot
|
2008-04-08 08:29:25 +02:00
|
|
|
script tables.
|
2007-06-15 12:02:42 +02:00
|
|
|
|
2018-06-27 15:06:55 +02:00
|
|
|
Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
|
|
|
This program and the accompanying materials are licensed and made available under
|
|
|
|
the terms and conditions of the BSD License that accompanies this distribution.
|
2010-03-16 02:53:11 +01:00
|
|
|
The full text of the license may be found at
|
2018-06-27 15:06:55 +02:00
|
|
|
http://opensource.org/licenses/bsd-license.php.
|
|
|
|
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
2010-03-16 02:53:11 +01:00
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
2007-06-15 12:02:42 +02:00
|
|
|
|
|
|
|
@par Revision Reference:
|
|
|
|
This protocol defined in the Boot Script Specification, Version 0.91.
|
|
|
|
|
|
|
|
**/
|
|
|
|
|
2008-12-04 07:12:44 +01:00
|
|
|
#ifndef _BOOT_SCRIPT_SAVE_PROTOCOL_H_
|
|
|
|
#define _BOOT_SCRIPT_SAVE_PROTOCOL_H_
|
2007-06-15 12:02:42 +02:00
|
|
|
|
2009-07-12 01:25:44 +02:00
|
|
|
///
|
2010-03-16 02:53:11 +01:00
|
|
|
/// S3 Save Protocol GUID.
|
2009-07-12 01:25:44 +02:00
|
|
|
///
|
2007-06-15 12:02:42 +02:00
|
|
|
#define EFI_BOOT_SCRIPT_SAVE_PROTOCOL_GUID \
|
|
|
|
{ \
|
|
|
|
0x470e1529, 0xb79e, 0x4e32, {0xa0, 0xfe, 0x6a, 0x15, 0x6d, 0x29, 0xf9, 0xb2 } \
|
|
|
|
}
|
|
|
|
|
|
|
|
typedef struct _EFI_BOOT_SCRIPT_SAVE_PROTOCOL EFI_BOOT_SCRIPT_SAVE_PROTOCOL;
|
|
|
|
|
|
|
|
/**
|
|
|
|
Adds a record into a specified Framework boot script table.
|
|
|
|
|
|
|
|
@param This A pointer to the EFI_BOOT_SCRIPT_SAVE_PROTOCOL instance.
|
2010-03-16 02:53:11 +01:00
|
|
|
@param TableName The name of the script table. Currently, the only meaningful
|
2007-06-15 12:02:42 +02:00
|
|
|
value is EFI_ACPI_S3_RESUME_SCRIPT_TABLE.
|
|
|
|
@param OpCode The operation code (opcode) number.
|
2010-03-16 02:53:11 +01:00
|
|
|
@param ... The argument list that is specific to each opcode.
|
2007-06-15 12:02:42 +02:00
|
|
|
|
|
|
|
@retval EFI_SUCCESS The operation succeeded. A record was added into the specified script table.
|
2010-03-16 02:53:11 +01:00
|
|
|
@retval EFI_INVALID_PARAMETER The parameter is illegal, or the given boot script is not supported.
|
2007-06-15 12:02:42 +02:00
|
|
|
@retval EFI_OUT_OF_RESOURCES There is insufficient memory to store the boot script.
|
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
EFI_STATUS
|
2008-07-31 09:44:54 +02:00
|
|
|
(EFIAPI *EFI_BOOT_SCRIPT_WRITE)(
|
2007-06-15 12:02:42 +02:00
|
|
|
IN EFI_BOOT_SCRIPT_SAVE_PROTOCOL *This,
|
|
|
|
IN UINT16 TableName,
|
|
|
|
IN UINT16 OpCode,
|
|
|
|
...
|
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Closes the specified script table.
|
|
|
|
|
|
|
|
@param This A pointer to the EFI_BOOT_SCRIPT_SAVE_PROTOCOL instance.
|
2010-03-16 02:53:11 +01:00
|
|
|
@param TableName The name of the script table.
|
2007-06-15 12:02:42 +02:00
|
|
|
@param Address A pointer to the physical address where the table begins.
|
|
|
|
|
|
|
|
@retval EFI_SUCCESS The table was successfully returned.
|
|
|
|
@retval EFI_NOT_FOUND The specified table was not created previously.
|
|
|
|
@retval EFI_OUT_OF_RESOURCES Memory is insufficient to hold the reorganized boot script table.
|
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
EFI_STATUS
|
2008-07-31 09:44:54 +02:00
|
|
|
(EFIAPI *EFI_BOOT_SCRIPT_CLOSE_TABLE)(
|
2007-06-15 12:02:42 +02:00
|
|
|
IN EFI_BOOT_SCRIPT_SAVE_PROTOCOL *This,
|
|
|
|
IN UINT16 TableName,
|
|
|
|
OUT EFI_PHYSICAL_ADDRESS *Address
|
|
|
|
);
|
|
|
|
|
2009-07-12 01:25:44 +02:00
|
|
|
///
|
|
|
|
/// The EFI_BOOT_SCRIPT_SAVE_PROTOCOL publishes the Framework boot script abstractions
|
|
|
|
/// to store or record various boot scripts into boot script tables.
|
|
|
|
///
|
2007-06-15 12:02:42 +02:00
|
|
|
struct _EFI_BOOT_SCRIPT_SAVE_PROTOCOL {
|
2009-07-12 01:25:44 +02:00
|
|
|
EFI_BOOT_SCRIPT_WRITE Write; ///< Writes various boot scripts to a boot script table.
|
|
|
|
EFI_BOOT_SCRIPT_CLOSE_TABLE CloseTable; ///< Retrieves and closes a script table.
|
2007-06-15 12:02:42 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
extern EFI_GUID gEfiBootScriptSaveProtocolGuid;
|
|
|
|
|
|
|
|
#endif
|