summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/XenBusDxe
diff options
context:
space:
mode:
authorAnthony PERARD <anthony.perard@citrix.com>2014-10-31 21:25:36 +0000
committerjljusten <jljusten@Edk2>2014-10-31 21:25:36 +0000
commit43be9f4cb8fa72f102db0b34bf2ba1c8db681dbe (patch)
treebb31b915dc3b162039d3c4cc9d0bddaa1450c354 /OvmfPkg/XenBusDxe
parente26a83cd29073c6528aee29226c4795ae1b1fd40 (diff)
downloadedk2-43be9f4cb8fa72f102db0b34bf2ba1c8db681dbe.tar.gz
edk2-43be9f4cb8fa72f102db0b34bf2ba1c8db681dbe.tar.bz2
edk2-43be9f4cb8fa72f102db0b34bf2ba1c8db681dbe.zip
OvmfPkg/XenBusDxe: Fix initialisation of gXenBusPrivateData
.. 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@16295 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/XenBusDxe')
-rw-r--r--OvmfPkg/XenBusDxe/XenBus.c53
1 files changed, 29 insertions, 24 deletions
diff --git a/OvmfPkg/XenBusDxe/XenBus.c b/OvmfPkg/XenBusDxe/XenBus.c
index a569cfa088..5baaddb143 100644
--- a/OvmfPkg/XenBusDxe/XenBus.c
+++ b/OvmfPkg/XenBusDxe/XenBus.c
@@ -348,28 +348,33 @@ Out:
}
STATIC XENBUS_PRIVATE_DATA gXenBusPrivateData = {
- .Signature = XENBUS_PRIVATE_DATA_SIGNATURE,
-
- .XenBusIo.XsRead = XenBusXenStoreRead,
- .XenBusIo.XsBackendRead = XenBusXenStoreBackendRead,
- .XenBusIo.XsPrintf = XenBusXenStoreSPrint,
- .XenBusIo.XsRemove = XenBusXenStoreRemove,
- .XenBusIo.XsTransactionStart = XenBusXenStoreTransactionStart,
- .XenBusIo.XsTransactionEnd = XenBusXenStoreTransactionEnd,
- .XenBusIo.SetState = XenBusSetState,
- .XenBusIo.GrantAccess = XenBusGrantAccess,
- .XenBusIo.GrantEndAccess = XenBusGrantEndAccess,
- .XenBusIo.EventChannelAllocate = XenBusEventChannelAllocate,
- .XenBusIo.EventChannelNotify = XenBusEventChannelNotify,
- .XenBusIo.EventChannelClose = XenBusEventChannelClose,
- .XenBusIo.RegisterWatch = XenBusRegisterWatch,
- .XenBusIo.RegisterWatchBackend = XenBusRegisterWatchBackend,
- .XenBusIo.UnregisterWatch = XenBusUnregisterWatch,
- .XenBusIo.WaitForWatch = XenBusWaitForWatch,
-
- .XenBusIo.Type = NULL,
- .XenBusIo.Node = NULL,
- .XenBusIo.Backend = NULL,
-
- .Dev = NULL
+ XENBUS_PRIVATE_DATA_SIGNATURE, // Signature
+ { NULL, NULL }, // Link
+ NULL, // Handle
+ { // XenBusIo
+ XenBusXenStoreRead, // XenBusIo.XsRead
+ XenBusXenStoreBackendRead, // XenBusIo.XsBackendRead
+ XenBusXenStoreSPrint, // XenBusIo.XsPrintf
+ XenBusXenStoreRemove, // XenBusIo.XsRemove
+ XenBusXenStoreTransactionStart, // XenBusIo.XsTransactionStart
+ XenBusXenStoreTransactionEnd, // XenBusIo.XsTransactionEnd
+ XenBusSetState, // XenBusIo.SetState
+ XenBusGrantAccess, // XenBusIo.GrantAccess
+ XenBusGrantEndAccess, // XenBusIo.GrantEndAccess
+ XenBusEventChannelAllocate, // XenBusIo.EventChannelAllocate
+ XenBusEventChannelNotify, // XenBusIo.EventChannelNotify
+ XenBusEventChannelClose, // XenBusIo.EventChannelClose
+ XenBusRegisterWatch, // XenBusIo.RegisterWatch
+ XenBusRegisterWatchBackend, // XenBusIo.RegisterWatchBackend
+ XenBusUnregisterWatch, // XenBusIo.UnregisterWatch
+ XenBusWaitForWatch, // XenBusIo.WaitForWatch
+
+ NULL, // XenBusIo.Type
+ 0, // XenBusIo.DeviceId
+ NULL, // XenBusIo.Node
+ NULL, // XenBusIo.Backend
+ },
+
+ NULL, // Dev
+ NULL // DevicePath
};