diff options
author | Anthony PERARD <anthony.perard@citrix.com> | 2014-10-31 21:25:44 +0000 |
---|---|---|
committer | jljusten <jljusten@Edk2> | 2014-10-31 21:25:44 +0000 |
commit | 489c5c67d0b20cb508429ac7ec9dcc613c12dd72 (patch) | |
tree | 31742348135e018b792042a17c767906fe8c8866 | |
parent | 43be9f4cb8fa72f102db0b34bf2ba1c8db681dbe (diff) | |
download | edk2-489c5c67d0b20cb508429ac7ec9dcc613c12dd72.tar.gz edk2-489c5c67d0b20cb508429ac7ec9dcc613c12dd72.tar.bz2 edk2-489c5c67d0b20cb508429ac7ec9dcc613c12dd72.zip |
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
-rw-r--r-- | OvmfPkg/XenBusDxe/XenBus.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/OvmfPkg/XenBusDxe/XenBus.c b/OvmfPkg/XenBusDxe/XenBus.c index 5baaddb143..a7350586b3 100644 --- a/OvmfPkg/XenBusDxe/XenBus.c +++ b/OvmfPkg/XenBusDxe/XenBus.c @@ -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
};
|