-/*++\r
+/** @file\r
+\r
+Copyright (c) 1999-2008 Intel Corporation. All rights reserved\r
+This program and the accompanying materials are licensed and made available \r
+under the terms and conditions of the BSD License which accompanies this \r
+distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
\r
-Copyright (c) 1999 - 2007 Intel Corporation. All rights reserved\r
-This software and associated documentation (if any) is furnished\r
-under a license and may only be used or copied in accordance\r
-with the terms of the license. Except as permitted by such\r
-license, no part of this software or documentation may be\r
-reproduced, stored in a retrieval system, or transmitted in any\r
-form or by any means without the express written consent of\r
-Intel Corporation.\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
\r
Module Name: \r
This file contains the relevant declarations required\r
to generate Option Rom File\r
\r
---*/\r
+**/\r
\r
#ifndef __EFI_ROM_H__\r
#define __EFI_ROM_H__\r
#define UTILITY_MAJOR_VERSION 0\r
#define UTILITY_MINOR_VERSION 1\r
\r
-//\r
-// Define some status return values\r
-//\r
-#define STATUS_SUCCESS 0\r
-#define STATUS_WARNING 1\r
-#define STATUS_ERROR 2\r
-\r
//\r
// Define the max length of a filename\r
//\r
#define FILE_FLAG_EFI 0x02\r
#define FILE_FLAG_COMPRESS 0x04\r
\r
-//\r
-// global variables\r
-//\r
-UINTN DebugLevel = 0;\r
-\r
//\r
// Use this linked list structure to keep track of all the filenames\r
// specified on the command line.\r
//\r
typedef struct _FILE_LIST {\r
struct _FILE_LIST *Next;\r
- INT8 *FileName;\r
+ CHAR8 *FileName;\r
UINT32 FileFlags;\r
UINT32 ClassCode;\r
UINT16 CodeRevision;\r
// Use this to track our command-line options\r
//\r
typedef struct {\r
- INT8 OutFileName[MAX_PATH];\r
- INT8 *EfiFileName;\r
- INT8 *BinFileName;\r
- INT8 Compress;\r
+ CHAR8 OutFileName[MAX_PATH];\r
INT8 NoLast;\r
UINT16 ClassCode;\r
UINT16 PciRevision;\r
//\r
typedef struct {\r
UINT16 Value;\r
- char *Name;\r
+ CHAR8 *Name;\r
} STRING_LOOKUP;\r
\r
//\r
// Machine Types\r
//\r
static STRING_LOOKUP mMachineTypes[] = {\r
- EFI_IMAGE_MACHINE_IA32,\r
- "IA32",\r
- EFI_IMAGE_MACHINE_IA64,\r
- "IA64",\r
- EFI_IMAGE_MACHINE_EBC,\r
- "EBC",\r
- 0,\r
- NULL\r
+ { EFI_IMAGE_MACHINE_IA32, "IA32" },\r
+ { EFI_IMAGE_MACHINE_IA64, "IA64" },\r
+ { EFI_IMAGE_MACHINE_EBC, "EBC" },\r
+ { 0, NULL }\r
};\r
\r
//\r
// Subsystem Types\r
//\r
static STRING_LOOKUP mSubsystemTypes[] = {\r
- EFI_IMAGE_SUBSYSTEM_EFI_APPLICATION,\r
- "EFI application",\r
- EFI_IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER,\r
- "EFI boot service driver",\r
- EFI_IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER,\r
- "EFI runtime driver",\r
- 0,\r
- NULL\r
+ { EFI_IMAGE_SUBSYSTEM_EFI_APPLICATION, "EFI application" },\r
+ { EFI_IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER, "EFI boot service driver" },\r
+ { EFI_IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER, "EFI runtime driver" },\r
+ { 0, NULL }\r
};\r
\r
//\r