mirror of
				https://github.com/acidanthera/audk.git
				synced 2025-10-31 11:13:53 +01:00 
			
		
		
		
	clean up according to code review comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6197 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
		
							parent
							
								
									c2049caa25
								
							
						
					
					
						commit
						000f6a288d
					
				| @ -1,9 +1,8 @@ | |||||||
| /** @file
 | /** @file
 | ||||||
|   ACPI high precision event timer table definition, defined at  |   ACPI high precision event timer table definition, at www.intel.com | ||||||
|   ftp://download.intel.com/labs/platcomp/hpet/download/hpetspec098a.pdf.
 |  | ||||||
|   Specification name is IA-PC HPET (High Precision Event Timers) Specification. |   Specification name is IA-PC HPET (High Precision Event Timers) Specification. | ||||||
|      |      | ||||||
|   Copyright (c) 2007, Intel Corporation |   Copyright (c) 2007 - 2008, Intel Corporation | ||||||
|   All rights reserved. This program and the accompanying materials                           |   All rights reserved. This program and the accompanying materials                           | ||||||
|   are licensed and made available under the terms and conditions of the BSD License          |   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         |   which accompanies this distribution.  The full text of the license may be found at         | ||||||
|  | |||||||
| @ -1,9 +1,8 @@ | |||||||
| /** @file
 | /** @file
 | ||||||
| 
 |  | ||||||
|   The definition for iSCSI Boot Firmware Table, it's defined in |   The definition for iSCSI Boot Firmware Table, it's defined in | ||||||
|   Microsoft iBFT document.  |   Microsoft iBFT document.  | ||||||
|    |    | ||||||
|   Copyright (c) 2006 - 2007, Intel Corporation |   Copyright (c) 2006 - 2008, Intel Corporation | ||||||
|   All rights reserved. This program and the accompanying materials                           |   All rights reserved. This program and the accompanying materials                           | ||||||
|   are licensed and made available under the terms and conditions of the BSD License          |   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         |   which accompanies this distribution.  The full text of the license may be found at         | ||||||
| @ -22,6 +21,9 @@ | |||||||
| #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_REVISION            0x01 | #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_REVISION            0x01 | ||||||
| #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_STRUCTURE_ALIGNMENT 8 | #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_STRUCTURE_ALIGNMENT 8 | ||||||
| 
 | 
 | ||||||
|  | ///
 | ||||||
|  | /// Structure Type/ID
 | ||||||
|  | ///
 | ||||||
| typedef enum { | typedef enum { | ||||||
|   EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_RESERVED_STRUCTURE_ID = 0, |   EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_RESERVED_STRUCTURE_ID = 0, | ||||||
|   EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_CONTROL_STRUCTURE_ID, |   EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_CONTROL_STRUCTURE_ID, | ||||||
| @ -31,6 +33,10 @@ typedef enum { | |||||||
|   EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_EXTERNSIONS_STRUCTURE_ID |   EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_EXTERNSIONS_STRUCTURE_ID | ||||||
| } EFI_ACPI_ISCSI_ID_DEFINITIONS; | } EFI_ACPI_ISCSI_ID_DEFINITIONS; | ||||||
| 
 | 
 | ||||||
|  | ///
 | ||||||
|  | /// from the definition of IP_PREFIX_ORIGIN Enumeration in MSDN,
 | ||||||
|  | /// not defined in Microsoft iBFT document.
 | ||||||
|  | ///
 | ||||||
| typedef enum { | typedef enum { | ||||||
|   IpPrefixOriginOther = 0, |   IpPrefixOriginOther = 0, | ||||||
|   IpPrefixOriginManual, |   IpPrefixOriginManual, | ||||||
| @ -42,6 +48,9 @@ typedef enum { | |||||||
| 
 | 
 | ||||||
| #pragma pack(1) | #pragma pack(1) | ||||||
| 
 | 
 | ||||||
|  | ///
 | ||||||
|  | /// iBF Table Header
 | ||||||
|  | ///
 | ||||||
| typedef struct { | typedef struct { | ||||||
|   UINT32  Signature; |   UINT32  Signature; | ||||||
|   UINT32  Length; |   UINT32  Length; | ||||||
| @ -52,6 +61,9 @@ typedef struct { | |||||||
|   UINT8   Reserved[24]; |   UINT8   Reserved[24]; | ||||||
| } EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_HEADER; | } EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_HEADER; | ||||||
| 
 | 
 | ||||||
|  | ///
 | ||||||
|  | /// Common Header of Boot Firmware Table Structure 
 | ||||||
|  | ///
 | ||||||
| typedef struct { | typedef struct { | ||||||
|   UINT8   StructureId; |   UINT8   StructureId; | ||||||
|   UINT8   Version; |   UINT8   Version; | ||||||
| @ -60,9 +72,9 @@ typedef struct { | |||||||
|   UINT8   Flags; |   UINT8   Flags; | ||||||
| } EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_STRUCTURE_HEADER; | } EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_STRUCTURE_HEADER; | ||||||
| 
 | 
 | ||||||
| #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_CONTROL_STRUCTURE_VERSION            0x1 | ///
 | ||||||
| #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_CONTROL_STRUCTURE_FLAG_BOOT_FAILOVER 0x1 | /// Control Structure
 | ||||||
| 
 | ///
 | ||||||
| typedef struct { | typedef struct { | ||||||
|   EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_STRUCTURE_HEADER  Header; |   EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_STRUCTURE_HEADER  Header; | ||||||
|   UINT16                                               Extensions; |   UINT16                                               Extensions; | ||||||
| @ -73,10 +85,12 @@ typedef struct { | |||||||
|   UINT16                                               Target1Offset;   |   UINT16                                               Target1Offset;   | ||||||
| } EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_CONTROL_STRUCTURE; | } EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_CONTROL_STRUCTURE; | ||||||
| 
 | 
 | ||||||
| #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_INITIATOR_STRUCTURE_VERSION            0x1 | #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_CONTROL_STRUCTURE_VERSION            0x1 | ||||||
| #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_INITIATOR_STRUCTURE_FLAG_BLOCK_VALID   0x1 | #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_CONTROL_STRUCTURE_FLAG_BOOT_FAILOVER 0x1 | ||||||
| #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_INITIATOR_STRUCTURE_FLAG_BOOT_SELECTED 0x2 |  | ||||||
| 
 | 
 | ||||||
|  | ///
 | ||||||
|  | /// Initiator Structure
 | ||||||
|  | ///
 | ||||||
| typedef struct { | typedef struct { | ||||||
|   EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_STRUCTURE_HEADER  Header; |   EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_STRUCTURE_HEADER  Header; | ||||||
|   EFI_IPv6_ADDRESS                                     ISnsServer; |   EFI_IPv6_ADDRESS                                     ISnsServer; | ||||||
| @ -87,11 +101,13 @@ typedef struct { | |||||||
|   UINT16                                               IScsiNameOffset; |   UINT16                                               IScsiNameOffset; | ||||||
| } EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_INITIATOR_STRUCTURE; | } EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_INITIATOR_STRUCTURE; | ||||||
| 
 | 
 | ||||||
| #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_NIC_STRUCTURE_VERSION            0x1 | #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_INITIATOR_STRUCTURE_VERSION            0x1 | ||||||
| #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_NIC_STRUCTURE_FLAG_BLOCK_VALID   0x1 | #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_INITIATOR_STRUCTURE_FLAG_BLOCK_VALID   0x1  | ||||||
| #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_NIC_STRUCTURE_FLAG_BOOT_SELECTED 0x2 | #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_INITIATOR_STRUCTURE_FLAG_BOOT_SELECTED 0x2  | ||||||
| #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_NIC_STRUCTURE_FLAG_GLOBAL        0x4 |  | ||||||
| 
 | 
 | ||||||
|  | ///
 | ||||||
|  | /// NIC Structure
 | ||||||
|  | ///
 | ||||||
| typedef struct { | typedef struct { | ||||||
|   EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_STRUCTURE_HEADER  Header; |   EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_STRUCTURE_HEADER  Header; | ||||||
|   EFI_IPv6_ADDRESS                                     Ip; |   EFI_IPv6_ADDRESS                                     Ip; | ||||||
| @ -108,12 +124,14 @@ typedef struct { | |||||||
|   UINT16                                               HostNameOffset; |   UINT16                                               HostNameOffset; | ||||||
| } EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_NIC_STRUCTURE; | } EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_NIC_STRUCTURE; | ||||||
| 
 | 
 | ||||||
| #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_TARGET_STRUCTURE_VERSION            0x1 | #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_NIC_STRUCTURE_VERSION            0x1 | ||||||
| #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_TARGET_STRUCTURE_FLAG_BLOCK_VALID   0x1 | #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_NIC_STRUCTURE_FLAG_BLOCK_VALID   0x1 | ||||||
| #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_TARGET_STRUCTURE_FLAG_BOOT_SELECTED 0x2 | #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_NIC_STRUCTURE_FLAG_BOOT_SELECTED 0x2 | ||||||
| #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_TARGET_STRUCTURE_FLAG_RADIUS_CHAP   0x4 | #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_NIC_STRUCTURE_FLAG_GLOBAL        0x4 | ||||||
| #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_TARGET_STRUCTURE_FLAG_RADIUS_RCHAP  0x8 |  | ||||||
| 
 | 
 | ||||||
|  | ///
 | ||||||
|  | /// Target Structure
 | ||||||
|  | ///
 | ||||||
| typedef struct { | typedef struct { | ||||||
|   EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_STRUCTURE_HEADER  Header; |   EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_STRUCTURE_HEADER  Header; | ||||||
|   EFI_IPv6_ADDRESS                                     Ip; |   EFI_IPv6_ADDRESS                                     Ip; | ||||||
| @ -133,6 +151,12 @@ typedef struct { | |||||||
|   UINT16                                               ReverseCHAPSecretOffset; |   UINT16                                               ReverseCHAPSecretOffset; | ||||||
| } EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_TARGET_STRUCTURE; | } EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_TARGET_STRUCTURE; | ||||||
| 
 | 
 | ||||||
|  | #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_TARGET_STRUCTURE_VERSION            0x1 | ||||||
|  | #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_TARGET_STRUCTURE_FLAG_BLOCK_VALID   0x1 | ||||||
|  | #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_TARGET_STRUCTURE_FLAG_BOOT_SELECTED 0x2 | ||||||
|  | #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_TARGET_STRUCTURE_FLAG_RADIUS_CHAP   0x4 | ||||||
|  | #define EFI_ACPI_ISCSI_BOOT_FIRMWARE_TABLE_TARGET_STRUCTURE_FLAG_RADIUS_RCHAP  0x8 | ||||||
|  | 
 | ||||||
| #pragma pack() | #pragma pack() | ||||||
| 
 | 
 | ||||||
| #endif | #endif | ||||||
|  | |||||||
| @ -1,7 +1,7 @@ | |||||||
| /** @file
 | /** @file
 | ||||||
|   Legacy Master Boot Record Format Definition. |   Legacy Master Boot Record Format Definition. | ||||||
| 
 | 
 | ||||||
| Copyright (c) 2006, Intel Corporation                                                          | Copyright (c) 2006 - 2008, Intel Corporation                                                          | ||||||
| All rights reserved. This program and the accompanying materials                           | All rights reserved. This program and the accompanying materials                           | ||||||
| are licensed and made available under the terms and conditions of the BSD License          | 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         | which accompanies this distribution.  The full text of the license may be found at         | ||||||
| @ -16,8 +16,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. | |||||||
| #define _MBR_H_ | #define _MBR_H_ | ||||||
| 
 | 
 | ||||||
| #define MBR_SIGNATURE               0xaa55 | #define MBR_SIGNATURE               0xaa55 | ||||||
| #define MIN_MBR_DEVICE_SIZE         0x80000 |  | ||||||
| #define MBR_ERRATA_PAD              0x40000 // 128 MB
 |  | ||||||
| 
 | 
 | ||||||
| #define EXTENDED_DOS_PARTITION      0x05 | #define EXTENDED_DOS_PARTITION      0x05 | ||||||
| #define EXTENDED_WINDOWS_PARTITION  0x0F | #define EXTENDED_WINDOWS_PARTITION  0x0F | ||||||
|  | |||||||
| @ -1,9 +1,9 @@ | |||||||
| /** @file
 | /** @file
 | ||||||
|   ACPI memory mapped configuration space access table definition, defined at  |   ACPI memory mapped configuration space access table definition, defined at  | ||||||
|   in the PCI Firmware Specification, version 3.0 draft version 0.5. |   in the PCI Firmware Specification, version 3.0. | ||||||
|   Specification is available at http://www.pcisig.com.
 |   Specification is available at http://www.pcisig.com.
 | ||||||
|      |      | ||||||
|   Copyright (c) 2007, Intel Corporation |   Copyright (c) 2007 - 2008, Intel Corporation | ||||||
|   All rights reserved. This program and the accompanying materials                           |   All rights reserved. This program and the accompanying materials                           | ||||||
|   are licensed and made available under the terms and conditions of the BSD License          |   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         |   which accompanies this distribution.  The full text of the license may be found at         | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user