iPXE
HARDDRIVE_DEVICE_PATH Struct Reference

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

#include <DevicePath.h>

Data Fields

EFI_DEVICE_PATH_PROTOCOL Header
UINT32 PartitionNumber
 Describes the entry in a partition table, starting with entry 1.
UINT64 PartitionStart
 Starting LBA of the partition on the hard drive.
UINT64 PartitionSize
 Size of the partition in units of Logical Blocks.
UINT8 Signature [16]
 Signature unique to this partition: If SignatureType is 0, this field has to be initialized with 16 zeros.
UINT8 MBRType
 Partition Format: (Unused values reserved).
UINT8 SignatureType
 Type of Disk Signature: (Unused values reserved).

Detailed Description

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

Definition at line 1022 of file DevicePath.h.

Field Documentation

◆ Header

EFI_DEVICE_PATH_PROTOCOL HARDDRIVE_DEVICE_PATH::Header

Definition at line 1023 of file DevicePath.h.

◆ PartitionNumber

UINT32 HARDDRIVE_DEVICE_PATH::PartitionNumber

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].

Definition at line 1030 of file DevicePath.h.

◆ PartitionStart

UINT64 HARDDRIVE_DEVICE_PATH::PartitionStart

Starting LBA of the partition on the hard drive.

Definition at line 1034 of file DevicePath.h.

◆ PartitionSize

UINT64 HARDDRIVE_DEVICE_PATH::PartitionSize

Size of the partition in units of Logical Blocks.

Definition at line 1038 of file DevicePath.h.

◆ Signature

UINT8 HARDDRIVE_DEVICE_PATH::Signature[16]

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.

Definition at line 1046 of file DevicePath.h.

Referenced by efi_path_guid().

◆ MBRType

UINT8 HARDDRIVE_DEVICE_PATH::MBRType

Partition Format: (Unused values reserved).

0x01 - PC-AT compatible legacy MBR. 0x02 - GUID Partition Table.

Definition at line 1052 of file DevicePath.h.

◆ SignatureType

UINT8 HARDDRIVE_DEVICE_PATH::SignatureType

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.

Definition at line 1059 of file DevicePath.h.

Referenced by efi_path_guid().


The documentation for this struct was generated from the following file: