Add Information Opcode in S3 modules.
authorxgu3 <xgu3@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 30 Nov 2006 09:14:25 +0000 (09:14 +0000)
committerxgu3 <xgu3@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 30 Nov 2006 09:14:25 +0000 (09:14 +0000)
   Information Opcode is a new opcode that allows driver to record any information in script table.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2041 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Common/BootScript.h

index a6b6f50..8b3b410 100644 (file)
@@ -36,6 +36,7 @@
 #define EFI_BOOT_SCRIPT_STALL_OPCODE                  0x07\r
 #define EFI_BOOT_SCRIPT_DISPATCH_OPCODE               0x08\r
 #define EFI_BOOT_SCRIPT_DISPATCH_2_OPCODE             0x09\r
+#define EFI_BOOT_SCRIPT_INFORMATION_OPCODE            0x0A\r
 \r
 #define EFI_BOOT_SCRIPT_TABLE_OPCODE                  0xAA\r
 #define EFI_BOOT_SCRIPT_TERMINATE_OPCODE              0xFF\r
@@ -185,6 +186,13 @@ typedef struct {
   EFI_PHYSICAL_ADDRESS  Context;\r
 } EFI_BOOT_SCRIPT_DISPATCH_2;\r
 \r
+typedef struct {\r
+  UINT16  OpCode;\r
+  UINT8   Length;\r
+  UINT32                InformationLength;  \r
+  EFI_PHYSICAL_ADDRESS  Information;\r
+} EFI_BOOT_SCRIPT_INFORMATION;\r
+\r
 typedef struct {\r
   UINT16  OpCode;\r
   UINT8   Length;\r
@@ -203,6 +211,7 @@ typedef union {
   EFI_BOOT_SCRIPT_STALL                 *Stall;\r
   EFI_BOOT_SCRIPT_DISPATCH              *Dispatch;\r
   EFI_BOOT_SCRIPT_DISPATCH_2            *Dispatch2;  \r
+  EFI_BOOT_SCRIPT_INFORMATION           *Information;\r
   EFI_BOOT_SCRIPT_TERMINATE             *Terminate;\r
   EFI_BOOT_SCRIPT_COMMON_HEADER         *CommonHeader;\r
   UINT8                                 *Raw;\r