From 624f017e1756338c89326bc2dd9a2ba07e4ec5bb Mon Sep 17 00:00:00 2001 From: Hao Wu Date: Wed, 15 Jul 2015 03:16:42 +0000 Subject: MdePkg: Add BMC device path definition and its node/text conversion Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17985 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Include/Protocol/DevicePath.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'MdePkg/Include/Protocol') diff --git a/MdePkg/Include/Protocol/DevicePath.h b/MdePkg/Include/Protocol/DevicePath.h index a3d6d96bde..631136be08 100644 --- a/MdePkg/Include/Protocol/DevicePath.h +++ b/MdePkg/Include/Protocol/DevicePath.h @@ -171,6 +171,26 @@ typedef struct { UINT32 ControllerNumber; } CONTROLLER_DEVICE_PATH; +/// +/// 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; + /// /// ACPI Device Paths. /// @@ -1186,6 +1206,7 @@ typedef union { VENDOR_DEVICE_PATH Vendor; CONTROLLER_DEVICE_PATH Controller; + BMC_DEVICE_PATH Bmc; ACPI_HID_DEVICE_PATH Acpi; ACPI_EXTENDED_HID_DEVICE_PATH ExtendedAcpi; ACPI_ADR_DEVICE_PATH AcpiAdr; @@ -1241,6 +1262,7 @@ typedef union { VENDOR_DEVICE_PATH *Vendor; CONTROLLER_DEVICE_PATH *Controller; + BMC_DEVICE_PATH *Bmc; ACPI_HID_DEVICE_PATH *Acpi; ACPI_EXTENDED_HID_DEVICE_PATH *ExtendedAcpi; ACPI_ADR_DEVICE_PATH *AcpiAdr; -- cgit v1.2.3