2007-06-19 12:12:02 +02:00
|
|
|
/** @file
|
2007-11-22 07:00:39 +01:00
|
|
|
The device path protocol as defined in UEFI 2.0.
|
2007-06-08 13:31:52 +02:00
|
|
|
|
2009-06-04 07:49:29 +02:00
|
|
|
The device path represents a programmatic path to a device,
|
2018-06-27 15:11:33 +02:00
|
|
|
from a software point of view. The path must persist from boot to boot, so
|
2007-06-19 12:12:02 +02:00
|
|
|
it can not contain things like PCI bus numbers that change from boot to boot.
|
2007-06-08 13:31:52 +02:00
|
|
|
|
2018-06-27 15:11:33 +02:00
|
|
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
|
|
|
This program and the accompanying materials are licensed and made available under
|
|
|
|
the terms and conditions of the BSD License that accompanies this distribution.
|
2010-03-12 23:19:12 +01:00
|
|
|
The full text of the license may be found at
|
2018-06-27 15:11:33 +02:00
|
|
|
http://opensource.org/licenses/bsd-license.php.
|
|
|
|
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
2007-06-08 13:31:52 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
2007-06-19 12:12:02 +02:00
|
|
|
#ifndef __EFI_DEVICE_PATH_PROTOCOL_H__
|
|
|
|
#define __EFI_DEVICE_PATH_PROTOCOL_H__
|
|
|
|
|
2007-07-31 14:38:05 +02:00
|
|
|
#include <Guid/PcAnsi.h>
|
2015-05-06 04:21:48 +02:00
|
|
|
#include <IndustryStandard/Bluetooth.h>
|
2015-07-08 07:49:07 +02:00
|
|
|
#include <IndustryStandard/Acpi60.h>
|
|
|
|
|
2008-08-14 06:29:48 +02:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Device Path protocol.
|
2008-08-14 06:29:48 +02:00
|
|
|
///
|
2007-06-19 12:12:02 +02:00
|
|
|
#define EFI_DEVICE_PATH_PROTOCOL_GUID \
|
|
|
|
{ \
|
|
|
|
0x9576e91, 0x6d3f, 0x11d2, {0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b } \
|
|
|
|
}
|
2007-06-08 13:31:52 +02:00
|
|
|
|
2008-08-14 06:29:48 +02:00
|
|
|
///
|
2008-12-08 15:48:27 +01:00
|
|
|
/// Device Path guid definition for backward-compatible with EFI1.1.
|
2008-08-14 06:29:48 +02:00
|
|
|
///
|
2007-06-21 09:16:27 +02:00
|
|
|
#define DEVICE_PATH_PROTOCOL EFI_DEVICE_PATH_PROTOCOL_GUID
|
2007-06-08 13:31:52 +02:00
|
|
|
|
|
|
|
#pragma pack(1)
|
|
|
|
|
2008-10-21 20:04:22 +02:00
|
|
|
/**
|
2018-06-27 15:11:33 +02:00
|
|
|
This protocol can be used on any device handle to obtain generic path/location
|
|
|
|
information concerning the physical device or logical device. If the handle does
|
|
|
|
not logically map to a physical device, the handle may not necessarily support
|
|
|
|
the device path protocol. The device path describes the location of the device
|
|
|
|
the handle is for. The size of the Device Path can be determined from the structures
|
2008-10-21 20:04:22 +02:00
|
|
|
that make up the Device Path.
|
|
|
|
**/
|
2007-06-19 12:12:02 +02:00
|
|
|
typedef struct {
|
2010-03-12 23:19:12 +01:00
|
|
|
UINT8 Type; ///< 0x01 Hardware Device Path.
|
|
|
|
///< 0x02 ACPI Device Path.
|
|
|
|
///< 0x03 Messaging Device Path.
|
|
|
|
///< 0x04 Media Device Path.
|
|
|
|
///< 0x05 BIOS Boot Specification Device Path.
|
|
|
|
///< 0x7F End of Hardware Device Path.
|
2018-06-27 15:11:33 +02:00
|
|
|
|
2008-10-21 20:04:22 +02:00
|
|
|
UINT8 SubType; ///< Varies by Type
|
2008-10-21 20:39:04 +02:00
|
|
|
///< 0xFF End Entire Device Path, or
|
|
|
|
///< 0x01 End This Instance of a Device Path and start a new
|
2010-03-12 23:19:12 +01:00
|
|
|
///< Device Path.
|
2018-06-27 15:11:33 +02:00
|
|
|
|
2008-10-21 20:04:22 +02:00
|
|
|
UINT8 Length[2]; ///< Specific Device Path data. Type and Sub-Type define
|
|
|
|
///< type of data. Size of data is included in Length.
|
2018-06-27 15:11:33 +02:00
|
|
|
|
2007-06-19 12:12:02 +02:00
|
|
|
} EFI_DEVICE_PATH_PROTOCOL;
|
|
|
|
|
2008-08-14 06:29:48 +02:00
|
|
|
///
|
2008-12-08 15:48:27 +01:00
|
|
|
/// Device Path protocol definition for backward-compatible with EFI1.1.
|
2018-06-27 15:11:33 +02:00
|
|
|
///
|
2007-06-21 09:16:27 +02:00
|
|
|
typedef EFI_DEVICE_PATH_PROTOCOL EFI_DEVICE_PATH;
|
|
|
|
|
2008-08-14 06:29:48 +02:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Hardware Device Paths.
|
2008-08-14 06:29:48 +02:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define HARDWARE_DEVICE_PATH 0x01
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// PCI Device Path SubType.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define HW_PCI_DP 0x01
|
2008-12-07 23:59:27 +01:00
|
|
|
|
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// PCI Device Path.
|
2008-12-07 23:59:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// PCI Function Number.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT8 Function;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// PCI Device Number.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT8 Device;
|
|
|
|
} PCI_DEVICE_PATH;
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// PCCARD Device Path SubType.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define HW_PCCARD_DP 0x02
|
2008-12-07 23:59:27 +01:00
|
|
|
|
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// PCCARD Device Path.
|
2008-12-07 23:59:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Function Number (0 = First Function).
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT8 FunctionNumber;
|
|
|
|
} PCCARD_DEVICE_PATH;
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Memory Mapped Device Path SubType.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define HW_MEMMAP_DP 0x03
|
2008-12-08 15:48:27 +01:00
|
|
|
|
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Memory Mapped Device Path.
|
2008-12-08 15:48:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// EFI_MEMORY_TYPE
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT32 MemoryType;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// Starting Memory Address.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
EFI_PHYSICAL_ADDRESS StartingAddress;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Ending Memory Address.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
EFI_PHYSICAL_ADDRESS EndingAddress;
|
|
|
|
} MEMMAP_DEVICE_PATH;
|
|
|
|
|
2008-12-08 15:48:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Hardware Vendor Device Path SubType.
|
2008-12-08 15:48:27 +01:00
|
|
|
///
|
|
|
|
#define HW_VENDOR_DP 0x04
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// The Vendor Device Path allows the creation of vendor-defined Device Paths. A vendor must
|
|
|
|
/// allocate a Vendor GUID for a Device Path. The Vendor GUID can then be used to define the
|
|
|
|
/// contents on the n bytes that follow in the Vendor Device Path node.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// Vendor-assigned GUID that defines the data that follows.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
EFI_GUID Guid;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// Vendor-defined variable size data.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
} VENDOR_DEVICE_PATH;
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Controller Device Path SubType.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define HW_CONTROLLER_DP 0x05
|
2008-12-08 15:48:27 +01:00
|
|
|
|
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Controller Device Path.
|
2008-12-08 15:48:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// Controller number.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT32 ControllerNumber;
|
|
|
|
} CONTROLLER_DEVICE_PATH;
|
|
|
|
|
2015-07-15 05:16:42 +02:00
|
|
|
///
|
|
|
|
/// BMC Device Path SubType.
|
|
|
|
///
|
|
|
|
#define HW_BMC_DP 0x06
|
|
|
|
|
|
|
|
///
|
|
|
|
/// BMC Device Path.
|
|
|
|
///
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
|
|
|
///
|
|
|
|
/// Interface Type.
|
|
|
|
///
|
|
|
|
UINT8 InterfaceType;
|
|
|
|
///
|
|
|
|
/// Base Address.
|
|
|
|
///
|
|
|
|
UINT8 BaseAddress[8];
|
|
|
|
} BMC_DEVICE_PATH;
|
|
|
|
|
2008-08-14 06:29:48 +02:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// ACPI Device Paths.
|
2008-08-14 06:29:48 +02:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define ACPI_DEVICE_PATH 0x02
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// ACPI Device Path SubType.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define ACPI_DP 0x01
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// Device's PnP hardware ID stored in a numeric 32-bit
|
|
|
|
/// compressed EISA-type ID. This value must match the
|
|
|
|
/// corresponding _HID in the ACPI name space.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT32 HID;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// Unique ID that is required by ACPI if two devices have the
|
|
|
|
/// same _HID. This value must also match the corresponding
|
|
|
|
/// _UID/_HID pair in the ACPI name space. Only the 32-bit
|
2010-03-12 23:19:12 +01:00
|
|
|
/// numeric value type of _UID is supported. Thus, strings must
|
2008-11-19 15:24:27 +01:00
|
|
|
/// not be used for the _UID in the ACPI name space.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT32 UID;
|
|
|
|
} ACPI_HID_DEVICE_PATH;
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Expanded ACPI Device Path SubType.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define ACPI_EXTENDED_DP 0x02
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// Device's PnP hardware ID stored in a numeric 32-bit
|
|
|
|
/// compressed EISA-type ID. This value must match the
|
|
|
|
/// corresponding _HID in the ACPI name space.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT32 HID;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// Unique ID that is required by ACPI if two devices have the
|
|
|
|
/// same _HID. This value must also match the corresponding
|
|
|
|
/// _UID/_HID pair in the ACPI name space.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT32 UID;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2008-12-01 15:06:25 +01:00
|
|
|
/// Device's compatible PnP hardware ID stored in a numeric
|
2008-11-19 15:24:27 +01:00
|
|
|
/// 32-bit compressed EISA-type ID. This value must match at
|
|
|
|
/// least one of the compatible device IDs returned by the
|
|
|
|
/// corresponding _CID in the ACPI name space.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT32 CID;
|
2008-08-14 06:29:48 +02:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Optional variable length _HIDSTR.
|
|
|
|
/// Optional variable length _UIDSTR.
|
|
|
|
/// Optional variable length _CIDSTR.
|
2008-08-14 06:29:48 +02:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
} ACPI_EXTENDED_HID_DEVICE_PATH;
|
|
|
|
|
|
|
|
//
|
|
|
|
// EISA ID Macro
|
|
|
|
// EISA ID Definition 32-bits
|
|
|
|
// bits[15:0] - three character compressed ASCII EISA ID.
|
|
|
|
// bits[31:16] - binary number
|
|
|
|
// Compressed ASCII is 5 bits per character 0b00001 = 'A' 0b11010 = 'Z'
|
|
|
|
//
|
|
|
|
#define PNP_EISA_ID_CONST 0x41d0
|
2008-06-24 09:14:18 +02:00
|
|
|
#define EISA_ID(_Name, _Num) ((UINT32)((_Name) | (_Num) << 16))
|
2007-06-08 13:31:52 +02:00
|
|
|
#define EISA_PNP_ID(_PNPId) (EISA_ID(PNP_EISA_ID_CONST, (_PNPId)))
|
|
|
|
#define EFI_PNP_ID(_PNPId) (EISA_ID(PNP_EISA_ID_CONST, (_PNPId)))
|
|
|
|
|
|
|
|
#define PNP_EISA_ID_MASK 0xffff
|
|
|
|
#define EISA_ID_TO_NUM(_Id) ((_Id) >> 16)
|
|
|
|
|
2008-12-08 15:48:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// ACPI _ADR Device Path SubType.
|
2008-12-08 15:48:27 +01:00
|
|
|
///
|
|
|
|
#define ACPI_ADR_DP 0x03
|
2007-06-08 13:31:52 +02:00
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// The _ADR device path is used to contain video output device attributes to support the Graphics
|
|
|
|
/// Output Protocol. The device path can contain multiple _ADR entries if multiple video output
|
|
|
|
/// devices are displaying the same output.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// _ADR value. For video output devices the value of this
|
2010-03-12 23:19:12 +01:00
|
|
|
/// field comes from Table B-2 of the ACPI 3.0 specification. At
|
2008-11-19 15:24:27 +01:00
|
|
|
/// least one _ADR value is required.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT32 ADR;
|
2008-12-08 15:48:27 +01:00
|
|
|
//
|
|
|
|
// This device path may optionally contain more than one _ADR entry.
|
|
|
|
//
|
2007-06-08 13:31:52 +02:00
|
|
|
} ACPI_ADR_DEVICE_PATH;
|
|
|
|
|
2008-05-30 01:14:40 +02:00
|
|
|
#define ACPI_ADR_DISPLAY_TYPE_OTHER 0
|
|
|
|
#define ACPI_ADR_DISPLAY_TYPE_VGA 1
|
|
|
|
#define ACPI_ADR_DISPLAY_TYPE_TV 2
|
|
|
|
#define ACPI_ADR_DISPLAY_TYPE_EXTERNAL_DIGITAL 3
|
|
|
|
#define ACPI_ADR_DISPLAY_TYPE_INTERNAL_DIGITAL 4
|
|
|
|
|
|
|
|
#define ACPI_DISPLAY_ADR(_DeviceIdScheme, _HeadId, _NonVgaOutput, _BiosCanDetect, _VendorInfo, _Type, _Port, _Index) \
|
2015-04-15 06:46:50 +02:00
|
|
|
((UINT32)( ((UINT32)((_DeviceIdScheme) & 0x1) << 31) | \
|
|
|
|
(((_HeadId) & 0x7) << 18) | \
|
|
|
|
(((_NonVgaOutput) & 0x1) << 17) | \
|
|
|
|
(((_BiosCanDetect) & 0x1) << 16) | \
|
|
|
|
(((_VendorInfo) & 0xf) << 12) | \
|
|
|
|
(((_Type) & 0xf) << 8) | \
|
|
|
|
(((_Port) & 0xf) << 4) | \
|
|
|
|
((_Index) & 0xf) ))
|
2007-06-08 13:31:52 +02:00
|
|
|
|
2008-08-14 06:29:48 +02:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Messaging Device Paths.
|
2008-11-19 15:24:27 +01:00
|
|
|
/// This Device Path is used to describe the connection of devices outside the resource domain of the
|
|
|
|
/// system. This Device Path can describe physical messaging information like SCSI ID, or abstract
|
|
|
|
/// information like networking protocol IP addresses.
|
2008-08-14 06:29:48 +02:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define MESSAGING_DEVICE_PATH 0x03
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2008-12-08 15:48:27 +01:00
|
|
|
/// ATAPI Device Path SubType
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define MSG_ATAPI_DP 0x01
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Set to zero for primary, or one for secondary.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT8 PrimarySecondary;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Set to zero for master, or one for slave mode.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT8 SlaveMaster;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Logical Unit Number.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT16 Lun;
|
|
|
|
} ATAPI_DEVICE_PATH;
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// SCSI Device Path SubType.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define MSG_SCSI_DP 0x02
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Target ID on the SCSI bus (PUN).
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT16 Pun;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Logical Unit Number (LUN).
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT16 Lun;
|
|
|
|
} SCSI_DEVICE_PATH;
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Fibre Channel SubType.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define MSG_FIBRECHANNEL_DP 0x03
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// Reserved for the future.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT32 Reserved;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// Fibre Channel World Wide Number.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT64 WWN;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// Fibre Channel Logical Unit Number.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT64 Lun;
|
|
|
|
} FIBRECHANNEL_DEVICE_PATH;
|
|
|
|
|
2011-09-05 06:49:22 +02:00
|
|
|
///
|
|
|
|
/// Fibre Channel Ex SubType.
|
|
|
|
///
|
|
|
|
#define MSG_FIBRECHANNELEX_DP 0x15
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
|
|
|
///
|
|
|
|
/// Reserved for the future.
|
|
|
|
///
|
|
|
|
UINT32 Reserved;
|
|
|
|
///
|
|
|
|
/// 8 byte array containing Fibre Channel End Device Port Name.
|
|
|
|
///
|
|
|
|
UINT8 WWN[8];
|
|
|
|
///
|
|
|
|
/// 8 byte array containing Fibre Channel Logical Unit Number.
|
|
|
|
///
|
|
|
|
UINT8 Lun[8];
|
|
|
|
} FIBRECHANNELEX_DEVICE_PATH;
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2008-12-08 15:48:27 +01:00
|
|
|
/// 1394 Device Path SubType
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define MSG_1394_DP 0x04
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// Reserved for the future.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT32 Reserved;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// 1394 Global Unique ID (GUID).
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT64 Guid;
|
|
|
|
} F1394_DEVICE_PATH;
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// USB Device Path SubType.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define MSG_USB_DP 0x05
|
|
|
|
typedef struct {
|
2008-11-19 15:24:27 +01:00
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// USB Parent Port Number.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
UINT8 ParentPortNumber;
|
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// USB Interface Number.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
UINT8 InterfaceNumber;
|
2007-06-08 13:31:52 +02:00
|
|
|
} USB_DEVICE_PATH;
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// USB Class Device Path SubType.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define MSG_USB_CLASS_DP 0x0f
|
|
|
|
typedef struct {
|
2008-11-19 15:24:27 +01:00
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
|
|
|
///
|
|
|
|
/// Vendor ID assigned by USB-IF. A value of 0xFFFF will
|
|
|
|
/// match any Vendor ID.
|
|
|
|
///
|
|
|
|
UINT16 VendorId;
|
|
|
|
///
|
|
|
|
/// Product ID assigned by USB-IF. A value of 0xFFFF will
|
|
|
|
/// match any Product ID.
|
|
|
|
///
|
|
|
|
UINT16 ProductId;
|
|
|
|
///
|
|
|
|
/// The class code assigned by the USB-IF. A value of 0xFF
|
|
|
|
/// will match any class code.
|
|
|
|
///
|
|
|
|
UINT8 DeviceClass;
|
|
|
|
///
|
|
|
|
/// The subclass code assigned by the USB-IF. A value of
|
|
|
|
/// 0xFF will match any subclass code.
|
|
|
|
///
|
|
|
|
UINT8 DeviceSubClass;
|
|
|
|
///
|
|
|
|
/// The protocol code assigned by the USB-IF. A value of
|
|
|
|
/// 0xFF will match any protocol code.
|
|
|
|
///
|
|
|
|
UINT8 DeviceProtocol;
|
2007-06-08 13:31:52 +02:00
|
|
|
} USB_CLASS_DEVICE_PATH;
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// USB WWID Device Path SubType.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define MSG_USB_WWID_DP 0x10
|
2008-12-08 15:48:27 +01:00
|
|
|
|
|
|
|
///
|
|
|
|
/// This device path describes a USB device using its serial number.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
typedef struct {
|
2008-11-19 15:24:27 +01:00
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// USB interface number.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
UINT16 InterfaceNumber;
|
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// USB vendor id of the device.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
UINT16 VendorId;
|
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// USB product id of the device.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
UINT16 ProductId;
|
|
|
|
///
|
|
|
|
/// Last 64-or-fewer UTF-16 characters of the USB
|
|
|
|
/// serial number. The length of the string is
|
|
|
|
/// determined by the Length field less the offset of the
|
|
|
|
/// Serial Number field (10)
|
|
|
|
///
|
|
|
|
/// CHAR16 SerialNumber[...];
|
2007-06-08 13:31:52 +02:00
|
|
|
} USB_WWID_DEVICE_PATH;
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Device Logical Unit SubType.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define MSG_DEVICE_LOGICAL_UNIT_DP 0x11
|
|
|
|
typedef struct {
|
2008-11-19 15:24:27 +01:00
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Logical Unit Number for the interface.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
UINT8 Lun;
|
2007-06-08 13:31:52 +02:00
|
|
|
} DEVICE_LOGICAL_UNIT_DEVICE_PATH;
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// SATA Device Path SubType.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-18 22:28:02 +02:00
|
|
|
#define MSG_SATA_DP 0x12
|
2007-06-08 13:31:52 +02:00
|
|
|
typedef struct {
|
2007-06-18 22:28:02 +02:00
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// The HBA port number that facilitates the connection to the
|
|
|
|
/// device or a port multiplier. The value 0xFFFF is reserved.
|
|
|
|
///
|
2008-01-21 15:41:31 +01:00
|
|
|
UINT16 HBAPortNumber;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// The Port multiplier port number that facilitates the connection
|
2016-04-08 10:14:16 +02:00
|
|
|
/// to the device. Must be set to 0xFFFF if the device is directly
|
2008-11-19 15:24:27 +01:00
|
|
|
/// connected to the HBA.
|
|
|
|
///
|
2008-01-21 15:41:31 +01:00
|
|
|
UINT16 PortMultiplierPortNumber;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// Logical Unit Number.
|
|
|
|
///
|
2008-01-21 15:41:31 +01:00
|
|
|
UINT16 Lun;
|
2007-06-08 13:31:52 +02:00
|
|
|
} SATA_DEVICE_PATH;
|
|
|
|
|
2009-04-02 03:39:05 +02:00
|
|
|
///
|
|
|
|
/// Flag for if the device is directly connected to the HBA.
|
|
|
|
///
|
|
|
|
#define SATA_HBA_DIRECT_CONNECT_FLAG 0x8000
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// I2O Device Path SubType.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define MSG_I2O_DP 0x06
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Target ID (TID) for a device.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT32 Tid;
|
|
|
|
} I2O_DEVICE_PATH;
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// MAC Address Device Path SubType.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define MSG_MAC_ADDR_DP 0x0b
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// The MAC address for a network interface padded with 0s.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
EFI_MAC_ADDRESS MacAddress;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// Network interface type(i.e. 802.3, FDDI).
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT8 IfType;
|
|
|
|
} MAC_ADDR_DEVICE_PATH;
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2008-12-08 15:48:27 +01:00
|
|
|
/// IPv4 Device Path SubType
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define MSG_IPv4_DP 0x0c
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// The local IPv4 address.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
EFI_IPv4_ADDRESS LocalIpAddress;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// The remote IPv4 address.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
EFI_IPv4_ADDRESS RemoteIpAddress;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// The local port number.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT16 LocalPort;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// The remote port number.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT16 RemotePort;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// The network protocol(i.e. UDP, TCP).
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT16 Protocol;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// 0x00 - The Source IP Address was assigned though DHCP.
|
|
|
|
/// 0x01 - The Source IP Address is statically bound.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
BOOLEAN StaticIpAddress;
|
2011-09-05 06:49:22 +02:00
|
|
|
///
|
|
|
|
/// The gateway IP address
|
|
|
|
///
|
|
|
|
EFI_IPv4_ADDRESS GatewayIpAddress;
|
|
|
|
///
|
|
|
|
/// The subnet mask
|
|
|
|
///
|
|
|
|
EFI_IPv4_ADDRESS SubnetMask;
|
2007-06-08 13:31:52 +02:00
|
|
|
} IPv4_DEVICE_PATH;
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// IPv6 Device Path SubType.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define MSG_IPv6_DP 0x0d
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// The local IPv6 address.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
EFI_IPv6_ADDRESS LocalIpAddress;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// The remote IPv6 address.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
EFI_IPv6_ADDRESS RemoteIpAddress;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// The local port number.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT16 LocalPort;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// The remote port number.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT16 RemotePort;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// The network protocol(i.e. UDP, TCP).
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT16 Protocol;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2011-10-26 11:29:46 +02:00
|
|
|
/// 0x00 - The Local IP Address was manually configured.
|
|
|
|
/// 0x01 - The Local IP Address is assigned through IPv6
|
|
|
|
/// stateless auto-configuration.
|
|
|
|
/// 0x02 - The Local IP Address is assigned through IPv6
|
|
|
|
/// stateful configuration.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2011-10-26 11:29:46 +02:00
|
|
|
UINT8 IpAddressOrigin;
|
|
|
|
///
|
|
|
|
/// The prefix length
|
|
|
|
///
|
|
|
|
UINT8 PrefixLength;
|
|
|
|
///
|
|
|
|
/// The gateway IP address
|
|
|
|
///
|
|
|
|
EFI_IPv6_ADDRESS GatewayIpAddress;
|
2007-06-08 13:31:52 +02:00
|
|
|
} IPv6_DEVICE_PATH;
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// InfiniBand Device Path SubType.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define MSG_INFINIBAND_DP 0x09
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// Flags to help identify/manage InfiniBand device path elements:
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Bit 0 - IOC/Service (0b = IOC, 1b = Service).
|
|
|
|
/// Bit 1 - Extend Boot Environment.
|
|
|
|
/// Bit 2 - Console Protocol.
|
|
|
|
/// Bit 3 - Storage Protocol.
|
|
|
|
/// Bit 4 - Network Protocol.
|
2008-11-19 15:24:27 +01:00
|
|
|
/// All other bits are reserved.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT32 ResourceFlags;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// 128-bit Global Identifier for remote fabric port.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT8 PortGid[16];
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// 64-bit unique identifier to remote IOC or server process.
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Interpretation of field specified by Resource Flags (bit 0).
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT64 ServiceId;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// 64-bit persistent ID of remote IOC port.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT64 TargetPortId;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// 64-bit persistent ID of remote device.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT64 DeviceId;
|
|
|
|
} INFINIBAND_DEVICE_PATH;
|
|
|
|
|
|
|
|
#define INFINIBAND_RESOURCE_FLAG_IOC_SERVICE 0x01
|
|
|
|
#define INFINIBAND_RESOURCE_FLAG_EXTENDED_BOOT_ENVIRONMENT 0x02
|
|
|
|
#define INFINIBAND_RESOURCE_FLAG_CONSOLE_PROTOCOL 0x04
|
|
|
|
#define INFINIBAND_RESOURCE_FLAG_STORAGE_PROTOCOL 0x08
|
|
|
|
#define INFINIBAND_RESOURCE_FLAG_NETWORK_PROTOCOL 0x10
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// UART Device Path SubType.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define MSG_UART_DP 0x0e
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Reserved.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT32 Reserved;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// The baud rate setting for the UART style device. A value of 0
|
|
|
|
/// means that the device's default baud rate will be used.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT64 BaudRate;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// The number of data bits for the UART style device. A value
|
|
|
|
/// of 0 means that the device's default number of data bits will be used.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT8 DataBits;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// The parity setting for the UART style device.
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Parity 0x00 - Default Parity.
|
|
|
|
/// Parity 0x01 - No Parity.
|
|
|
|
/// Parity 0x02 - Even Parity.
|
|
|
|
/// Parity 0x03 - Odd Parity.
|
|
|
|
/// Parity 0x04 - Mark Parity.
|
|
|
|
/// Parity 0x05 - Space Parity.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT8 Parity;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// The number of stop bits for the UART style device.
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Stop Bits 0x00 - Default Stop Bits.
|
|
|
|
/// Stop Bits 0x01 - 1 Stop Bit.
|
|
|
|
/// Stop Bits 0x02 - 1.5 Stop Bits.
|
|
|
|
/// Stop Bits 0x03 - 2 Stop Bits.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT8 StopBits;
|
|
|
|
} UART_DEVICE_PATH;
|
|
|
|
|
|
|
|
//
|
|
|
|
// Use VENDOR_DEVICE_PATH struct
|
|
|
|
//
|
|
|
|
#define MSG_VENDOR_DP 0x0a
|
2007-06-18 22:28:02 +02:00
|
|
|
typedef VENDOR_DEVICE_PATH VENDOR_DEFINED_DEVICE_PATH;
|
2007-06-08 13:31:52 +02:00
|
|
|
|
|
|
|
#define DEVICE_PATH_MESSAGING_PC_ANSI EFI_PC_ANSI_GUID
|
|
|
|
#define DEVICE_PATH_MESSAGING_VT_100 EFI_VT_100_GUID
|
|
|
|
#define DEVICE_PATH_MESSAGING_VT_100_PLUS EFI_VT_100_PLUS_GUID
|
|
|
|
#define DEVICE_PATH_MESSAGING_VT_UTF8 EFI_VT_UTF8_GUID
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// A new device path node is defined to declare flow control characteristics.
|
|
|
|
/// UART Flow Control Messaging Device Path
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// DEVICE_PATH_MESSAGING_UART_FLOW_CONTROL GUID.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
EFI_GUID Guid;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// Bitmap of supported flow control types.
|
|
|
|
/// Bit 0 set indicates hardware flow control.
|
|
|
|
/// Bit 1 set indicates Xon/Xoff flow control.
|
|
|
|
/// All other bits are reserved and are clear.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT32 FlowControlMap;
|
|
|
|
} UART_FLOW_CONTROL_DEVICE_PATH;
|
|
|
|
|
2010-04-09 10:42:07 +02:00
|
|
|
#define UART_FLOW_CONTROL_HARDWARE 0x00000001
|
|
|
|
#define UART_FLOW_CONTROL_XON_XOFF 0x00000010
|
|
|
|
|
2011-05-13 08:17:10 +02:00
|
|
|
#define DEVICE_PATH_MESSAGING_SAS EFI_SAS_DEVICE_PATH_GUID
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2011-05-13 08:17:10 +02:00
|
|
|
/// Serial Attached SCSI (SAS) Device Path.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// DEVICE_PATH_MESSAGING_SAS GUID.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
EFI_GUID Guid;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// Reserved for future use.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT32 Reserved;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// SAS Address for Serial Attached SCSI Target.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT64 SasAddress;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// SAS Logical Unit Number.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT64 Lun;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// More Information about the device and its interconnect.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT16 DeviceTopology;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Relative Target Port (RTP).
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT16 RelativeTargetPort;
|
|
|
|
} SAS_DEVICE_PATH;
|
|
|
|
|
2011-10-26 11:29:46 +02:00
|
|
|
///
|
|
|
|
/// Serial Attached SCSI (SAS) Ex Device Path SubType
|
|
|
|
///
|
|
|
|
#define MSG_SASEX_DP 0x16
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
|
|
|
///
|
|
|
|
/// 8-byte array of the SAS Address for Serial Attached SCSI Target Port.
|
|
|
|
///
|
|
|
|
UINT8 SasAddress[8];
|
|
|
|
///
|
|
|
|
/// 8-byte array of the SAS Logical Unit Number.
|
|
|
|
///
|
|
|
|
UINT8 Lun[8];
|
|
|
|
///
|
|
|
|
/// More Information about the device and its interconnect.
|
|
|
|
///
|
|
|
|
UINT16 DeviceTopology;
|
|
|
|
///
|
|
|
|
/// Relative Target Port (RTP).
|
|
|
|
///
|
|
|
|
UINT16 RelativeTargetPort;
|
|
|
|
} SASEX_DEVICE_PATH;
|
|
|
|
|
2013-08-12 08:12:44 +02:00
|
|
|
///
|
|
|
|
/// NvmExpress Namespace Device Path SubType.
|
|
|
|
///
|
|
|
|
#define MSG_NVME_NAMESPACE_DP 0x17
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
|
|
|
UINT32 NamespaceId;
|
|
|
|
UINT64 NamespaceUuid;
|
|
|
|
} NVME_NAMESPACE_DEVICE_PATH;
|
|
|
|
|
2017-01-23 03:17:58 +01:00
|
|
|
///
|
|
|
|
/// DNS Device Path SubType
|
|
|
|
///
|
|
|
|
#define MSG_DNS_DP 0x1F
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
|
|
|
///
|
|
|
|
/// Indicates the DNS server address is IPv4 or IPv6 address.
|
|
|
|
///
|
|
|
|
UINT8 IsIPv6;
|
|
|
|
///
|
|
|
|
/// Instance of the DNS server address.
|
|
|
|
///
|
|
|
|
EFI_IP_ADDRESS DnsServerIp[];
|
|
|
|
} DNS_DEVICE_PATH;
|
|
|
|
|
2015-05-08 09:31:12 +02:00
|
|
|
///
|
|
|
|
/// Uniform Resource Identifiers (URI) Device Path SubType
|
|
|
|
///
|
|
|
|
#define MSG_URI_DP 0x18
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
|
|
|
///
|
|
|
|
/// Instance of the URI pursuant to RFC 3986.
|
|
|
|
///
|
|
|
|
CHAR8 Uri[];
|
|
|
|
} URI_DEVICE_PATH;
|
|
|
|
|
2015-04-29 04:37:30 +02:00
|
|
|
///
|
|
|
|
/// Universal Flash Storage (UFS) Device Path SubType.
|
|
|
|
///
|
|
|
|
#define MSG_UFS_DP 0x19
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
|
|
|
///
|
|
|
|
/// Target ID on the UFS bus (PUN).
|
|
|
|
///
|
|
|
|
UINT8 Pun;
|
|
|
|
///
|
|
|
|
/// Logical Unit Number (LUN).
|
|
|
|
///
|
|
|
|
UINT8 Lun;
|
|
|
|
} UFS_DEVICE_PATH;
|
|
|
|
|
2015-05-08 16:18:42 +02:00
|
|
|
///
|
|
|
|
/// SD (Secure Digital) Device Path SubType.
|
|
|
|
///
|
|
|
|
#define MSG_SD_DP 0x1A
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
|
|
|
UINT8 SlotNumber;
|
|
|
|
} SD_DEVICE_PATH;
|
|
|
|
|
2016-03-22 16:15:53 +01:00
|
|
|
///
|
|
|
|
/// EMMC (Embedded MMC) Device Path SubType.
|
|
|
|
///
|
|
|
|
#define MSG_EMMC_DP 0x1D
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
|
|
|
UINT8 SlotNumber;
|
|
|
|
} EMMC_DEVICE_PATH;
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2008-12-08 15:48:27 +01:00
|
|
|
/// iSCSI Device Path SubType
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define MSG_ISCSI_DP 0x13
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Network Protocol (0 = TCP, 1+ = reserved).
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT16 NetworkProtocol;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// iSCSI Login Options.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT16 LoginOption;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// iSCSI Logical Unit Number.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-09-26 08:52:57 +02:00
|
|
|
UINT64 Lun;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// iSCSI Target Portal group tag the initiator intends
|
|
|
|
/// to establish a session with.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT16 TargetPortalGroupTag;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// iSCSI NodeTarget Name. The length of the name
|
|
|
|
/// is determined by subtracting the offset of this field from Length.
|
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// CHAR8 iSCSI Target Name.
|
2007-06-08 13:31:52 +02:00
|
|
|
} ISCSI_DEVICE_PATH;
|
|
|
|
|
|
|
|
#define ISCSI_LOGIN_OPTION_NO_HEADER_DIGEST 0x0000
|
|
|
|
#define ISCSI_LOGIN_OPTION_HEADER_DIGEST_USING_CRC32C 0x0002
|
|
|
|
#define ISCSI_LOGIN_OPTION_NO_DATA_DIGEST 0x0000
|
|
|
|
#define ISCSI_LOGIN_OPTION_DATA_DIGEST_USING_CRC32C 0x0008
|
|
|
|
#define ISCSI_LOGIN_OPTION_AUTHMETHOD_CHAP 0x0000
|
|
|
|
#define ISCSI_LOGIN_OPTION_AUTHMETHOD_NON 0x1000
|
|
|
|
#define ISCSI_LOGIN_OPTION_CHAP_BI 0x0000
|
|
|
|
#define ISCSI_LOGIN_OPTION_CHAP_UNI 0x2000
|
|
|
|
|
2009-11-12 11:40:58 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// VLAN Device Path SubType.
|
2009-11-12 11:40:58 +01:00
|
|
|
///
|
|
|
|
#define MSG_VLAN_DP 0x14
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// VLAN identifier (0-4094).
|
2009-11-12 11:40:58 +01:00
|
|
|
///
|
|
|
|
UINT16 VlanId;
|
|
|
|
} VLAN_DEVICE_PATH;
|
|
|
|
|
2015-05-06 04:21:48 +02:00
|
|
|
///
|
|
|
|
/// Bluetooth Device Path SubType.
|
|
|
|
///
|
|
|
|
#define MSG_BLUETOOTH_DP 0x1b
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
|
|
|
///
|
|
|
|
/// 48bit Bluetooth device address.
|
|
|
|
///
|
|
|
|
BLUETOOTH_ADDRESS BD_ADDR;
|
|
|
|
} BLUETOOTH_DEVICE_PATH;
|
|
|
|
|
2015-05-20 07:21:19 +02:00
|
|
|
///
|
|
|
|
/// Wi-Fi Device Path SubType.
|
|
|
|
///
|
|
|
|
#define MSG_WIFI_DP 0x1C
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
|
|
|
///
|
|
|
|
/// Service set identifier. A 32-byte octets string.
|
|
|
|
///
|
|
|
|
UINT8 SSId[32];
|
|
|
|
} WIFI_DEVICE_PATH;
|
|
|
|
|
2017-06-06 04:03:09 +02:00
|
|
|
///
|
|
|
|
/// Bluetooth LE Device Path SubType.
|
|
|
|
///
|
|
|
|
#define MSG_BLUETOOTH_LE_DP 0x1E
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
|
|
|
BLUETOOTH_LE_ADDRESS Address;
|
|
|
|
} BLUETOOTH_LE_DEVICE_PATH;
|
|
|
|
|
2007-06-08 13:31:52 +02:00
|
|
|
//
|
|
|
|
// Media Device Path
|
|
|
|
//
|
|
|
|
#define MEDIA_DEVICE_PATH 0x04
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Hard Drive Media Device Path SubType.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define MEDIA_HARDDRIVE_DP 0x01
|
2008-12-08 15:48:27 +01:00
|
|
|
|
|
|
|
///
|
|
|
|
/// The Hard Drive Media Device Path is used to represent a partition on a hard drive.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// 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
|
2009-09-21 16:13:47 +02:00
|
|
|
/// partition numbers for a GPT partition are [1, NumberOfPartitionEntries].
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT32 PartitionNumber;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Starting LBA of the partition on the hard drive.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT64 PartitionStart;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Size of the partition in units of Logical Blocks.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT64 PartitionSize;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2009-09-21 16:13:47 +02:00
|
|
|
/// 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.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT8 Signature[16];
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Partition Format: (Unused values reserved).
|
|
|
|
/// 0x01 - PC-AT compatible legacy MBR.
|
|
|
|
/// 0x02 - GUID Partition Table.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT8 MBRType;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Type of Disk Signature: (Unused values reserved).
|
2008-12-01 15:06:25 +01:00
|
|
|
/// 0x00 - No Disk Signature.
|
|
|
|
/// 0x01 - 32-bit signature from address 0x1b8 of the type 0x01 MBR.
|
|
|
|
/// 0x02 - GUID signature.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT8 SignatureType;
|
|
|
|
} HARDDRIVE_DEVICE_PATH;
|
|
|
|
|
|
|
|
#define MBR_TYPE_PCAT 0x01
|
|
|
|
#define MBR_TYPE_EFI_PARTITION_TABLE_HEADER 0x02
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
#define NO_DISK_SIGNATURE 0x00
|
2007-06-08 13:31:52 +02:00
|
|
|
#define SIGNATURE_TYPE_MBR 0x01
|
|
|
|
#define SIGNATURE_TYPE_GUID 0x02
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// CD-ROM Media Device Path SubType.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define MEDIA_CDROM_DP 0x02
|
2008-12-08 15:48:27 +01:00
|
|
|
|
|
|
|
///
|
|
|
|
/// The CD-ROM Media Device Path is used to define a system partition that exists on a CD-ROM.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// Boot Entry number from the Boot Catalog. The Initial/Default entry is defined as zero.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT32 BootEntry;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// Starting RBA of the partition on the medium. CD-ROMs use Relative logical Block Addressing.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT64 PartitionStart;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// Size of the partition in units of Blocks, also called Sectors.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT64 PartitionSize;
|
|
|
|
} CDROM_DEVICE_PATH;
|
|
|
|
|
2008-12-08 15:48:27 +01:00
|
|
|
//
|
|
|
|
// Use VENDOR_DEVICE_PATH struct
|
|
|
|
//
|
2010-03-12 23:19:12 +01:00
|
|
|
#define MEDIA_VENDOR_DP 0x03 ///< Media vendor device path subtype.
|
2007-06-08 13:31:52 +02:00
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2008-12-08 15:48:27 +01:00
|
|
|
/// File Path Media Device Path SubType
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define MEDIA_FILEPATH_DP 0x04
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2009-09-24 10:56:33 +02:00
|
|
|
/// A NULL-terminated Path string including directory and file names.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
CHAR16 PathName[1];
|
|
|
|
} FILEPATH_DEVICE_PATH;
|
|
|
|
|
2008-12-16 16:33:49 +01:00
|
|
|
#define SIZE_OF_FILEPATH_DEVICE_PATH OFFSET_OF(FILEPATH_DEVICE_PATH,PathName)
|
2007-06-08 13:31:52 +02:00
|
|
|
|
2008-12-08 15:48:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Media Protocol Device Path SubType.
|
2008-12-08 15:48:27 +01:00
|
|
|
///
|
|
|
|
#define MEDIA_PROTOCOL_DP 0x05
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2018-06-27 15:11:33 +02:00
|
|
|
/// The Media Protocol Device Path is used to denote the protocol that is being
|
|
|
|
/// used in a device path at the location of the path specified.
|
2008-11-19 15:24:27 +01:00
|
|
|
/// Many protocols are inherent to the style of device path.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// The ID of the protocol.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
EFI_GUID Protocol;
|
|
|
|
} MEDIA_PROTOCOL_DEVICE_PATH;
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2011-05-13 08:17:10 +02:00
|
|
|
/// PIWG Firmware File SubType.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2009-08-19 15:41:28 +02:00
|
|
|
#define MEDIA_PIWG_FW_FILE_DP 0x06
|
2008-12-08 15:48:27 +01:00
|
|
|
|
|
|
|
///
|
2009-08-19 15:41:28 +02:00
|
|
|
/// This device path is used by systems implementing the UEFI PI Specification 1.0 to describe a firmware file.
|
2008-12-08 15:48:27 +01:00
|
|
|
///
|
2007-06-22 04:18:24 +02:00
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2009-08-19 15:41:28 +02:00
|
|
|
/// Firmware file name
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2009-08-19 15:41:28 +02:00
|
|
|
EFI_GUID FvFileName;
|
|
|
|
} MEDIA_FW_VOL_FILEPATH_DEVICE_PATH;
|
2007-06-08 13:31:52 +02:00
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// PIWG Firmware Volume Device Path SubType.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2009-08-19 15:41:28 +02:00
|
|
|
#define MEDIA_PIWG_FW_VOL_DP 0x07
|
2008-12-08 15:48:27 +01:00
|
|
|
|
|
|
|
///
|
2009-08-19 15:41:28 +02:00
|
|
|
/// This device path is used by systems implementing the UEFI PI Specification 1.0 to describe a firmware volume.
|
2008-12-08 15:48:27 +01:00
|
|
|
///
|
2007-06-22 04:18:24 +02:00
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2009-08-19 15:41:28 +02:00
|
|
|
/// Firmware volume name.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2009-08-19 15:41:28 +02:00
|
|
|
EFI_GUID FvName;
|
|
|
|
} MEDIA_FW_VOL_DEVICE_PATH;
|
2007-06-08 13:31:52 +02:00
|
|
|
|
2009-04-03 10:17:25 +02:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Media relative offset range device path.
|
2009-04-03 10:17:25 +02:00
|
|
|
///
|
|
|
|
#define MEDIA_RELATIVE_OFFSET_RANGE_DP 0x08
|
|
|
|
|
|
|
|
///
|
|
|
|
/// Used to describe the offset range of media relative.
|
|
|
|
///
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2009-08-19 15:41:28 +02:00
|
|
|
UINT32 Reserved;
|
2009-04-03 10:17:25 +02:00
|
|
|
UINT64 StartingOffset;
|
|
|
|
UINT64 EndingOffset;
|
|
|
|
} MEDIA_RELATIVE_OFFSET_RANGE_DEVICE_PATH;
|
|
|
|
|
2015-07-08 07:49:07 +02:00
|
|
|
///
|
|
|
|
/// This GUID defines a RAM Disk supporting a raw disk format in volatile memory.
|
|
|
|
///
|
|
|
|
#define EFI_VIRTUAL_DISK_GUID EFI_ACPI_6_0_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_DISK_REGION_VOLATILE
|
|
|
|
|
|
|
|
extern EFI_GUID gEfiVirtualDiskGuid;
|
|
|
|
|
|
|
|
///
|
|
|
|
/// This GUID defines a RAM Disk supporting an ISO image in volatile memory.
|
|
|
|
///
|
|
|
|
#define EFI_VIRTUAL_CD_GUID EFI_ACPI_6_0_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_CD_REGION_VOLATILE
|
|
|
|
|
|
|
|
extern EFI_GUID gEfiVirtualCdGuid;
|
|
|
|
|
|
|
|
///
|
|
|
|
/// This GUID defines a RAM Disk supporting a raw disk format in persistent memory.
|
|
|
|
///
|
|
|
|
#define EFI_PERSISTENT_VIRTUAL_DISK_GUID EFI_ACPI_6_0_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_DISK_REGION_PERSISTENT
|
|
|
|
|
|
|
|
extern EFI_GUID gEfiPersistentVirtualDiskGuid;
|
|
|
|
|
|
|
|
///
|
|
|
|
/// This GUID defines a RAM Disk supporting an ISO image in persistent memory.
|
|
|
|
///
|
|
|
|
#define EFI_PERSISTENT_VIRTUAL_CD_GUID EFI_ACPI_6_0_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_CD_REGION_PERSISTENT
|
|
|
|
|
|
|
|
extern EFI_GUID gEfiPersistentVirtualCdGuid;
|
|
|
|
|
|
|
|
///
|
|
|
|
/// Media ram disk device path.
|
|
|
|
///
|
|
|
|
#define MEDIA_RAM_DISK_DP 0x09
|
|
|
|
|
|
|
|
///
|
|
|
|
/// Used to describe the ram disk device path.
|
|
|
|
///
|
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
|
|
|
///
|
|
|
|
/// Starting Memory Address.
|
|
|
|
///
|
|
|
|
UINT32 StartingAddr[2];
|
|
|
|
///
|
|
|
|
/// Ending Memory Address.
|
|
|
|
///
|
|
|
|
UINT32 EndingAddr[2];
|
|
|
|
///
|
|
|
|
/// GUID that defines the type of the RAM Disk.
|
|
|
|
///
|
|
|
|
EFI_GUID TypeGuid;
|
|
|
|
///
|
|
|
|
/// RAM Diskinstance number, if supported. The default value is zero.
|
|
|
|
///
|
|
|
|
UINT16 Instance;
|
|
|
|
} MEDIA_RAM_DISK_DEVICE_PATH;
|
|
|
|
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// BIOS Boot Specification Device Path.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define BBS_DEVICE_PATH 0x05
|
2008-12-08 15:48:27 +01:00
|
|
|
|
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// BIOS Boot Specification Device Path SubType.
|
2008-12-08 15:48:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
#define BBS_BBS_DP 0x01
|
2008-12-08 15:48:27 +01:00
|
|
|
|
|
|
|
///
|
|
|
|
/// This Device Path is used to describe the booting of non-EFI-aware operating systems.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
typedef struct {
|
|
|
|
EFI_DEVICE_PATH_PROTOCOL Header;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
|
|
|
/// Device Type as defined by the BIOS Boot Specification.
|
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT16 DeviceType;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Status Flags as defined by the BIOS Boot Specification.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
UINT16 StatusFlag;
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2011-06-08 07:53:18 +02:00
|
|
|
/// Null-terminated ASCII string that describes the boot device to a user.
|
2008-11-19 15:24:27 +01:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
CHAR8 String[1];
|
|
|
|
} BBS_BBS_DEVICE_PATH;
|
|
|
|
|
|
|
|
//
|
|
|
|
// DeviceType definitions - from BBS specification
|
|
|
|
//
|
|
|
|
#define BBS_TYPE_FLOPPY 0x01
|
|
|
|
#define BBS_TYPE_HARDDRIVE 0x02
|
|
|
|
#define BBS_TYPE_CDROM 0x03
|
|
|
|
#define BBS_TYPE_PCMCIA 0x04
|
|
|
|
#define BBS_TYPE_USB 0x05
|
|
|
|
#define BBS_TYPE_EMBEDDED_NETWORK 0x06
|
|
|
|
#define BBS_TYPE_BEV 0x80
|
|
|
|
#define BBS_TYPE_UNKNOWN 0xFF
|
|
|
|
|
|
|
|
|
2008-08-14 06:29:48 +02:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// Union of all possible Device Paths and pointers to Device Paths.
|
2008-08-14 06:29:48 +02:00
|
|
|
///
|
2007-06-08 13:31:52 +02:00
|
|
|
typedef union {
|
2011-05-13 08:17:10 +02:00
|
|
|
EFI_DEVICE_PATH_PROTOCOL DevPath;
|
|
|
|
PCI_DEVICE_PATH Pci;
|
|
|
|
PCCARD_DEVICE_PATH PcCard;
|
|
|
|
MEMMAP_DEVICE_PATH MemMap;
|
|
|
|
VENDOR_DEVICE_PATH Vendor;
|
|
|
|
|
|
|
|
CONTROLLER_DEVICE_PATH Controller;
|
2015-07-15 05:16:42 +02:00
|
|
|
BMC_DEVICE_PATH Bmc;
|
2011-05-13 08:17:10 +02:00
|
|
|
ACPI_HID_DEVICE_PATH Acpi;
|
|
|
|
ACPI_EXTENDED_HID_DEVICE_PATH ExtendedAcpi;
|
|
|
|
ACPI_ADR_DEVICE_PATH AcpiAdr;
|
|
|
|
|
|
|
|
ATAPI_DEVICE_PATH Atapi;
|
|
|
|
SCSI_DEVICE_PATH Scsi;
|
|
|
|
ISCSI_DEVICE_PATH Iscsi;
|
|
|
|
FIBRECHANNEL_DEVICE_PATH FibreChannel;
|
2011-09-05 06:49:22 +02:00
|
|
|
FIBRECHANNELEX_DEVICE_PATH FibreChannelEx;
|
2011-05-13 08:17:10 +02:00
|
|
|
|
|
|
|
F1394_DEVICE_PATH F1394;
|
|
|
|
USB_DEVICE_PATH Usb;
|
|
|
|
SATA_DEVICE_PATH Sata;
|
|
|
|
USB_CLASS_DEVICE_PATH UsbClass;
|
|
|
|
USB_WWID_DEVICE_PATH UsbWwid;
|
|
|
|
DEVICE_LOGICAL_UNIT_DEVICE_PATH LogicUnit;
|
|
|
|
I2O_DEVICE_PATH I2O;
|
|
|
|
MAC_ADDR_DEVICE_PATH MacAddr;
|
|
|
|
IPv4_DEVICE_PATH Ipv4;
|
|
|
|
IPv6_DEVICE_PATH Ipv6;
|
|
|
|
VLAN_DEVICE_PATH Vlan;
|
|
|
|
INFINIBAND_DEVICE_PATH InfiniBand;
|
|
|
|
UART_DEVICE_PATH Uart;
|
|
|
|
UART_FLOW_CONTROL_DEVICE_PATH UartFlowControl;
|
|
|
|
SAS_DEVICE_PATH Sas;
|
2011-10-26 11:29:46 +02:00
|
|
|
SASEX_DEVICE_PATH SasEx;
|
2013-08-12 08:12:44 +02:00
|
|
|
NVME_NAMESPACE_DEVICE_PATH NvmeNamespace;
|
2018-06-27 15:11:33 +02:00
|
|
|
DNS_DEVICE_PATH Dns;
|
2015-05-08 09:31:12 +02:00
|
|
|
URI_DEVICE_PATH Uri;
|
2015-05-06 04:21:48 +02:00
|
|
|
BLUETOOTH_DEVICE_PATH Bluetooth;
|
2015-05-20 07:21:19 +02:00
|
|
|
WIFI_DEVICE_PATH WiFi;
|
2015-04-29 04:37:30 +02:00
|
|
|
UFS_DEVICE_PATH Ufs;
|
2015-05-08 16:18:42 +02:00
|
|
|
SD_DEVICE_PATH Sd;
|
2016-03-22 16:15:53 +01:00
|
|
|
EMMC_DEVICE_PATH Emmc;
|
2011-05-13 08:17:10 +02:00
|
|
|
HARDDRIVE_DEVICE_PATH HardDrive;
|
|
|
|
CDROM_DEVICE_PATH CD;
|
|
|
|
|
|
|
|
FILEPATH_DEVICE_PATH FilePath;
|
|
|
|
MEDIA_PROTOCOL_DEVICE_PATH MediaProtocol;
|
|
|
|
|
|
|
|
MEDIA_FW_VOL_DEVICE_PATH FirmwareVolume;
|
|
|
|
MEDIA_FW_VOL_FILEPATH_DEVICE_PATH FirmwareFile;
|
|
|
|
MEDIA_RELATIVE_OFFSET_RANGE_DEVICE_PATH Offset;
|
2015-07-08 07:49:07 +02:00
|
|
|
MEDIA_RAM_DISK_DEVICE_PATH RamDisk;
|
2011-05-13 08:17:10 +02:00
|
|
|
BBS_BBS_DEVICE_PATH Bbs;
|
2007-06-08 13:31:52 +02:00
|
|
|
} EFI_DEV_PATH;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef union {
|
2011-05-13 08:17:10 +02:00
|
|
|
EFI_DEVICE_PATH_PROTOCOL *DevPath;
|
|
|
|
PCI_DEVICE_PATH *Pci;
|
|
|
|
PCCARD_DEVICE_PATH *PcCard;
|
|
|
|
MEMMAP_DEVICE_PATH *MemMap;
|
|
|
|
VENDOR_DEVICE_PATH *Vendor;
|
|
|
|
|
|
|
|
CONTROLLER_DEVICE_PATH *Controller;
|
2015-07-15 05:16:42 +02:00
|
|
|
BMC_DEVICE_PATH *Bmc;
|
2011-05-13 08:17:10 +02:00
|
|
|
ACPI_HID_DEVICE_PATH *Acpi;
|
|
|
|
ACPI_EXTENDED_HID_DEVICE_PATH *ExtendedAcpi;
|
|
|
|
ACPI_ADR_DEVICE_PATH *AcpiAdr;
|
|
|
|
|
|
|
|
ATAPI_DEVICE_PATH *Atapi;
|
|
|
|
SCSI_DEVICE_PATH *Scsi;
|
|
|
|
ISCSI_DEVICE_PATH *Iscsi;
|
|
|
|
FIBRECHANNEL_DEVICE_PATH *FibreChannel;
|
2011-09-05 06:49:22 +02:00
|
|
|
FIBRECHANNELEX_DEVICE_PATH *FibreChannelEx;
|
2011-05-13 08:17:10 +02:00
|
|
|
|
|
|
|
F1394_DEVICE_PATH *F1394;
|
|
|
|
USB_DEVICE_PATH *Usb;
|
|
|
|
SATA_DEVICE_PATH *Sata;
|
|
|
|
USB_CLASS_DEVICE_PATH *UsbClass;
|
|
|
|
USB_WWID_DEVICE_PATH *UsbWwid;
|
|
|
|
DEVICE_LOGICAL_UNIT_DEVICE_PATH *LogicUnit;
|
|
|
|
I2O_DEVICE_PATH *I2O;
|
|
|
|
MAC_ADDR_DEVICE_PATH *MacAddr;
|
|
|
|
IPv4_DEVICE_PATH *Ipv4;
|
|
|
|
IPv6_DEVICE_PATH *Ipv6;
|
|
|
|
VLAN_DEVICE_PATH *Vlan;
|
|
|
|
INFINIBAND_DEVICE_PATH *InfiniBand;
|
|
|
|
UART_DEVICE_PATH *Uart;
|
|
|
|
UART_FLOW_CONTROL_DEVICE_PATH *UartFlowControl;
|
|
|
|
SAS_DEVICE_PATH *Sas;
|
2011-10-26 11:29:46 +02:00
|
|
|
SASEX_DEVICE_PATH *SasEx;
|
2013-08-12 08:12:44 +02:00
|
|
|
NVME_NAMESPACE_DEVICE_PATH *NvmeNamespace;
|
2017-01-23 03:17:58 +01:00
|
|
|
DNS_DEVICE_PATH *Dns;
|
2015-05-08 09:31:12 +02:00
|
|
|
URI_DEVICE_PATH *Uri;
|
2015-05-06 04:21:48 +02:00
|
|
|
BLUETOOTH_DEVICE_PATH *Bluetooth;
|
2015-05-20 07:21:19 +02:00
|
|
|
WIFI_DEVICE_PATH *WiFi;
|
2015-04-29 04:37:30 +02:00
|
|
|
UFS_DEVICE_PATH *Ufs;
|
2015-05-08 16:18:42 +02:00
|
|
|
SD_DEVICE_PATH *Sd;
|
2016-03-22 16:15:53 +01:00
|
|
|
EMMC_DEVICE_PATH *Emmc;
|
2011-05-13 08:17:10 +02:00
|
|
|
HARDDRIVE_DEVICE_PATH *HardDrive;
|
|
|
|
CDROM_DEVICE_PATH *CD;
|
|
|
|
|
|
|
|
FILEPATH_DEVICE_PATH *FilePath;
|
|
|
|
MEDIA_PROTOCOL_DEVICE_PATH *MediaProtocol;
|
|
|
|
|
|
|
|
MEDIA_FW_VOL_DEVICE_PATH *FirmwareVolume;
|
|
|
|
MEDIA_FW_VOL_FILEPATH_DEVICE_PATH *FirmwareFile;
|
|
|
|
MEDIA_RELATIVE_OFFSET_RANGE_DEVICE_PATH *Offset;
|
2015-07-08 07:49:07 +02:00
|
|
|
MEDIA_RAM_DISK_DEVICE_PATH *RamDisk;
|
2011-05-13 08:17:10 +02:00
|
|
|
BBS_BBS_DEVICE_PATH *Bbs;
|
|
|
|
UINT8 *Raw;
|
2007-06-08 13:31:52 +02:00
|
|
|
} EFI_DEV_PATH_PTR;
|
|
|
|
|
|
|
|
#pragma pack()
|
2018-06-27 15:11:33 +02:00
|
|
|
|
2007-06-19 12:12:02 +02:00
|
|
|
#define END_DEVICE_PATH_TYPE 0x7f
|
2008-11-11 16:39:02 +01:00
|
|
|
#define END_ENTIRE_DEVICE_PATH_SUBTYPE 0xFF
|
|
|
|
#define END_INSTANCE_DEVICE_PATH_SUBTYPE 0x01
|
2007-06-19 12:12:02 +02:00
|
|
|
|
|
|
|
extern EFI_GUID gEfiDevicePathProtocolGuid;
|
2007-06-08 13:31:52 +02:00
|
|
|
|
|
|
|
#endif
|