mirror of https://github.com/acidanthera/audk.git
OvmfPkg/XenBusDxe: Fix initialisation of gXenBusDevicePathTemplate
.. to avoid the use .member = value syntax as VS does not support it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16296 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
43be9f4cb8
commit
489c5c67d0
|
@ -45,13 +45,19 @@
|
|||
STATIC XENBUS_PRIVATE_DATA gXenBusPrivateData;
|
||||
|
||||
STATIC XENBUS_DEVICE_PATH gXenBusDevicePathTemplate = {
|
||||
.Vendor.Header.Type = HARDWARE_DEVICE_PATH,
|
||||
.Vendor.Header.SubType = HW_VENDOR_DP,
|
||||
.Vendor.Header.Length[0] = (UINT8) sizeof (XENBUS_DEVICE_PATH),
|
||||
.Vendor.Header.Length[1] = (UINT8) (sizeof (XENBUS_DEVICE_PATH) >> 8),
|
||||
.Vendor.Guid = XENBUS_PROTOCOL_GUID,
|
||||
.Type = 0,
|
||||
.DeviceId = 0
|
||||
{ // Vendor
|
||||
{ // Vendor.Header
|
||||
HARDWARE_DEVICE_PATH, // Vendor.Header.Type
|
||||
HW_VENDOR_DP, // Vendor.Header.SubType
|
||||
{
|
||||
(UINT8) (sizeof (XENBUS_DEVICE_PATH)), // Vendor.Header.Length[0]
|
||||
(UINT8) (sizeof (XENBUS_DEVICE_PATH) >> 8), // Vendor.Header.Length[1]
|
||||
}
|
||||
},
|
||||
XENBUS_PROTOCOL_GUID, // Vendor.Guid
|
||||
},
|
||||
0, // Type
|
||||
0 // DeviceId
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue