diff options
Diffstat (limited to 'EDK/Foundation/Framework/Protocol/BootScriptSave')
-rw-r--r-- | EDK/Foundation/Framework/Protocol/BootScriptSave/BootScriptSave.c | 28 | ||||
-rw-r--r-- | EDK/Foundation/Framework/Protocol/BootScriptSave/BootScriptSave.h | 75 |
2 files changed, 103 insertions, 0 deletions
diff --git a/EDK/Foundation/Framework/Protocol/BootScriptSave/BootScriptSave.c b/EDK/Foundation/Framework/Protocol/BootScriptSave/BootScriptSave.c new file mode 100644 index 0000000..d196780 --- /dev/null +++ b/EDK/Foundation/Framework/Protocol/BootScriptSave/BootScriptSave.c @@ -0,0 +1,28 @@ +/*++ + +Copyright (c) 1999 - 2006, Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +Module Name: + + BootScriptSave.c + +Abstract: + + S3 Save Protocol + +--*/ + +#include "Tiano.h" + +#include EFI_PROTOCOL_DEFINITION (BootScriptSave) + +EFI_GUID gEfiBootScriptSaveGuid = EFI_BOOT_SCRIPT_SAVE_PROTOCOL_GUID; + +EFI_GUID_STRING(&gEfiBootScriptSaveGuid, "EFI Boot Script Save Protocol", "EFI Boot Script Save Protocol"); diff --git a/EDK/Foundation/Framework/Protocol/BootScriptSave/BootScriptSave.h b/EDK/Foundation/Framework/Protocol/BootScriptSave/BootScriptSave.h new file mode 100644 index 0000000..ff103e8 --- /dev/null +++ b/EDK/Foundation/Framework/Protocol/BootScriptSave/BootScriptSave.h @@ -0,0 +1,75 @@ +/*++ + +Copyright (c) 1999 - 2006, Intel Corporation +All rights reserved. This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. + +Module Name: + + BootScriptSave.h + +Abstract: + + S3 Save Protocol + +--*/ + +#ifndef _BOOT_SCRIPT_SAVE_PROTOCOL_H +#define _BOOT_SCRIPT_SAVE_PROTOCOL_H + +// +// Includes +// +#include "Tiano.h" + +// +// Forward reference for pure ANSI compatability +// +EFI_FORWARD_DECLARATION (EFI_BOOT_SCRIPT_SAVE_PROTOCOL); + +// +// S3 Save Protocol GUID +// +#define EFI_BOOT_SCRIPT_SAVE_PROTOCOL_GUID \ + { \ + 0x470e1529, 0xb79e, 0x4e32, 0xa0, 0xfe, 0x6a, 0x15, 0x6d, 0x29, 0xf9, 0xb2 \ + } + +// +// Protocol Data Structures +// +typedef +EFI_STATUS +EFI_BOOTSERVICE +(EFIAPI *EFI_BOOT_SCRIPT_WRITE) ( + IN EFI_BOOT_SCRIPT_SAVE_PROTOCOL * This, + IN UINT16 TableName, + IN UINT16 OpCode, + ... + ); + +typedef +EFI_STATUS +EFI_BOOTSERVICE +(EFIAPI *EFI_BOOT_SCRIPT_CLOSE_TABLE) ( + IN EFI_BOOT_SCRIPT_SAVE_PROTOCOL * This, + IN UINT16 TableName, + OUT EFI_PHYSICAL_ADDRESS * Address + ); + +// +// S3 Save Protocol data structure +// +typedef struct _EFI_BOOT_SCRIPT_SAVE_PROTOCOL { + EFI_BOOT_SCRIPT_WRITE Write; + EFI_BOOT_SCRIPT_CLOSE_TABLE CloseTable; +} EFI_BOOT_SCRIPT_SAVE_PROTOCOL; + +extern EFI_GUID gEfiBootScriptSaveGuid; + +#endif |