Code Scrub the common includes in MdePkg.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5493 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
yshang1
2008-07-16 06:31:22 +00:00
parent f824f71e4b
commit 373b5cf97c
17 changed files with 303 additions and 65 deletions

View File

@@ -18,7 +18,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#ifndef _ATAPI_H
#define _ATAPI_H
#pragma pack(push, 1)
#pragma pack(1)
//
// ATA_IDENTIFY_DATA is defined in ATA-5
@@ -369,7 +369,7 @@ typedef union {
ATAPI_READ_FORMAT_CAP_CMD ReadFormatCapacity;
} ATAPI_PACKET_COMMAND;
#pragma pack(pop)
#pragma pack()
#define ATAPI_MAX_DMA_EXT_CMD_SECTORS 0x10000

View File

@@ -27,7 +27,7 @@
//
#define PCI_VGA_PALETTE_SNOOP_DISABLED 0x20
#pragma pack(push, 1)
#pragma pack(1)
typedef struct {
UINT16 VendorId;
UINT16 DeviceId;
@@ -569,6 +569,6 @@ typedef union {
EFI_LEGACY_EXPANSION_ROM_HEADER *PcAt;
} EFI_PCI_ROM_HEADER;
#pragma pack(pop)
#pragma pack()
#endif

View File

@@ -18,7 +18,7 @@
#define PCI_CLASS_MASS_STORAGE_SATADPA 0x06
#define PCI_CLASS_MASS_STORAGE_AHCI PCI_CLASS_MASS_STORAGE_SATADPA
#pragma pack(push, 1)
#pragma pack(1)
typedef struct {
UINT32 Signature; // "PCIR"
@@ -37,7 +37,7 @@ typedef struct {
UINT16 DMTFCLPEntryPointOffset;
} PCI_3_0_DATA_STRUCTURE;
#pragma pack(pop)
#pragma pack()
#include <IndustryStandard/Pci23.h>

View File

@@ -21,9 +21,7 @@
//
// Ensure proper structure formats
//
#ifdef _MSC_EXTENSIONS
#pragma pack(1)
#endif
//
// SPCR Revision (defined in spec)
@@ -57,9 +55,7 @@ typedef struct {
UINT32 Reserved2;
} EFI_ACPI_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE;
#ifdef _MSC_EXTENSIONS
#pragma pack()
#endif
//
// SPCR Definitions

View File

@@ -406,13 +406,13 @@ typedef struct tdTPM_KEY_HANDLE_LIST {
//
// Part 2, section 5.10: TPM_KEY_FLAGS
//
enum tdTPM_KEY_FLAGS {
typedef enum tdTPM_KEY_FLAGS {
redirection = 0x00000001,
migratable = 0x00000002,
isVolatile = 0x00000004,
pcrIgnoredOnRead = 0x00000008,
migrateAuthority = 0x00000010
};
} TPM_KEY_FLAGS;
//
// Part 2, section 5.11: TPM_CHANGEAUTH_VALIDATE

View File

@@ -56,7 +56,7 @@ typedef struct {
//
// WDAT Revision (defined in spec)
//
#define EFI_ACPI_WATCHDOG_ACTION_1_0_TABLE_REVISION 0x01
#define EFI_ACPI_WATCHDOG_ACTION_1_0_TABLE_REVISION 0x01
//
// WDAT 1.0 Flags