1. Add UEFI 2.2 VLAN device path definition to MdePkg

2. Update DevicePathDxe to support VLAN device path node
3. Update GenericBdsLib function DevicePathToStr() to support VLAN device path node

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9421 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
xdu2
2009-11-12 10:40:58 +00:00
parent 3393e2915a
commit 8f97f91154
4 changed files with 99 additions and 3 deletions

View File

@ -2,7 +2,7 @@
BDS internal function define the default device path string, it can be
replaced by platform device path.
Copyright (c) 2004 - 2008, Intel Corporation. <BR>
Copyright (c) 2004 - 2009, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@ -984,6 +984,28 @@ DevPathiSCSI (
CatPrint (Str, L"%s)", (IScsi->NetworkProtocol == 0) ? L"TCP" : L"reserved");
}
/**
Convert Device Path to a Unicode string for printing.
@param Str The buffer holding the output string.
This buffer contains the length of the
string and the maixmum length reserved
for the string buffer.
@param DevPath The device path.
**/
VOID
DevPathVlan (
IN OUT POOL_PRINT *Str,
IN VOID *DevPath
)
{
VLAN_DEVICE_PATH *Vlan;
Vlan = DevPath;
CatPrint (Str, L"Vlan(%d)", (UINTN) Vlan->VlanId);
}
/**
Convert Device Path to a Unicode string for printing.
@ -1390,6 +1412,11 @@ DEVICE_PATH_STRING_TABLE DevPathTable[] = {
MSG_ISCSI_DP,
DevPathiSCSI
},
{
MESSAGING_DEVICE_PATH,
MSG_VLAN_DP,
DevPathVlan
},
{
MEDIA_DEVICE_PATH,
MEDIA_HARDDRIVE_DP,