From: Gary Ching-Pang Lin <chingpang@gmail.com>
Date: Mon, 17 Aug 2015 17:00:11 +0800 Subject: [PATCH] Add URI Device Path Add the definition of URI Device Path according to UEFI 2.4c. Signed-off-by: Gary Ching-Pang Lin <chingpang@gmail.com> Signed-off-by: Nigel Croxon <nigel.croxon@hpe.com>
This commit is contained in:
parent
11a459ba96
commit
ad7f0d4ba2
@ -298,6 +298,17 @@ typedef struct _IPv6_DEVICE_PATH {
|
||||
EFI_IPv6_ADDRESS GatewayIpAddress ;
|
||||
} IPv6_DEVICE_PATH;
|
||||
|
||||
|
||||
/**
|
||||
* Uniform Resource Identifiers SubType.
|
||||
* UEFI 2.0 specification version 2.4C § 9.3.5.23.
|
||||
*/
|
||||
#define MSG_URI_DP 24
|
||||
typedef struct _URI_DEVICE_PATH {
|
||||
EFI_DEVICE_PATH Header;
|
||||
CHAR8 Uri[1];
|
||||
} URI_DEVICE_PATH;
|
||||
|
||||
/**
|
||||
* Device Logical Unit SubType.
|
||||
* UEFI 2.0 specification version 2.4 § 9.3.5.8.
|
||||
|
14
lib/dpath.c
14
lib/dpath.c
@ -841,6 +841,19 @@ _DevPathIPv6 (
|
||||
CatPrint( Str , L")") ;
|
||||
}
|
||||
|
||||
static VOID
|
||||
_DevPathUri (
|
||||
IN OUT POOL_PRINT *Str,
|
||||
IN VOID *DevPath
|
||||
)
|
||||
{
|
||||
URI_DEVICE_PATH *Uri;
|
||||
|
||||
Uri = DevPath;
|
||||
|
||||
CatPrint( Str, L"Uri(%a)", Uri->Uri );
|
||||
}
|
||||
|
||||
static VOID
|
||||
_DevPathInfiniBand (
|
||||
IN OUT POOL_PRINT *Str,
|
||||
@ -1088,6 +1101,7 @@ struct {
|
||||
{ MESSAGING_DEVICE_PATH, MSG_MAC_ADDR_DP, _DevPathMacAddr},
|
||||
{ MESSAGING_DEVICE_PATH, MSG_IPv4_DP, _DevPathIPv4},
|
||||
{ MESSAGING_DEVICE_PATH, MSG_IPv6_DP, _DevPathIPv6},
|
||||
{ MESSAGING_DEVICE_PATH, MSG_URI_DP, _DevPathUri},
|
||||
{ MESSAGING_DEVICE_PATH, MSG_INFINIBAND_DP, _DevPathInfiniBand},
|
||||
{ MESSAGING_DEVICE_PATH, MSG_UART_DP, _DevPathUart},
|
||||
{ MESSAGING_DEVICE_PATH , MSG_SATA_DP , _DevPathSata } ,
|
||||
|
Loading…
x
Reference in New Issue
Block a user