HARDDRIVE_DEVICE_PATH Struct Reference


Data Fields

EFI_DEVICE_PATH_PROTOCOL Header
UINT32 PartitionNumber
UINT64 PartitionStart
UINT64 PartitionSize
UINT8 Signature [16]
UINT8 MBRType
UINT8 SignatureType

Detailed Description

The Hard Drive Media Device Path is used to represent a partition on a hard drive.

Field Documentation

Partition Format: (Unused values reserved). 0x01 - PC-AT compatible legacy MBR. 0x02 - GUID Partition Table.

Referenced by DevPathFromTextHD().

Describes the entry in a partition table, starting with entry 1. Partition number zero represents the entire device. Valid partition numbers for a MBR partition are [1, 4]. Valid partition numbers for a GPT partition are [1, NumberOfPartitionEntries].

Referenced by DevPathFromTextHD(), and DevPathToTextHardDrive().

Size of the partition in units of Logical Blocks.

Referenced by DevPathFromTextHD(), and DevPathToTextHardDrive().

Starting LBA of the partition on the hard drive.

Referenced by DevPathFromTextHD(), and DevPathToTextHardDrive().

Signature unique to this partition: If SignatureType is 0, this field has to be initialized with 16 zeros. If SignatureType is 1, the MBR signature is stored in the first 4 bytes of this field. The other 12 bytes are initialized with zeros. If SignatureType is 2, this field contains a 16 byte signature.

Referenced by DevPathFromTextHD(), and DevPathToTextHardDrive().

Type of Disk Signature: (Unused values reserved). 0x00 - No Disk Signature. 0x01 - 32-bit signature from address 0x1b8 of the type 0x01 MBR. 0x02 - GUID signature.

Referenced by DevPathFromTextHD(), and DevPathToTextHardDrive().


Generated on Thu Sep 24 23:14:28 2015 for MdePkg[ALL] by  doxygen 1.5.7.1