]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/XenBusDxe/XenBus.c
OvmfPkg/XenBusDxe: Fix initialisation of gXenBusPrivateData
[mirror_edk2.git] / OvmfPkg / XenBusDxe / XenBus.c
index a569cfa088fa44406f282e74680185aac50f1df0..5baaddb143bec42912f4210f0a92d9cfa9a36699 100644 (file)
@@ -348,28 +348,33 @@ Out:
 }\r
 \r
 STATIC XENBUS_PRIVATE_DATA gXenBusPrivateData = {\r
-  .Signature = XENBUS_PRIVATE_DATA_SIGNATURE,\r
-\r
-  .XenBusIo.XsRead = XenBusXenStoreRead,\r
-  .XenBusIo.XsBackendRead = XenBusXenStoreBackendRead,\r
-  .XenBusIo.XsPrintf = XenBusXenStoreSPrint,\r
-  .XenBusIo.XsRemove = XenBusXenStoreRemove,\r
-  .XenBusIo.XsTransactionStart = XenBusXenStoreTransactionStart,\r
-  .XenBusIo.XsTransactionEnd = XenBusXenStoreTransactionEnd,\r
-  .XenBusIo.SetState = XenBusSetState,\r
-  .XenBusIo.GrantAccess = XenBusGrantAccess,\r
-  .XenBusIo.GrantEndAccess = XenBusGrantEndAccess,\r
-  .XenBusIo.EventChannelAllocate = XenBusEventChannelAllocate,\r
-  .XenBusIo.EventChannelNotify = XenBusEventChannelNotify,\r
-  .XenBusIo.EventChannelClose = XenBusEventChannelClose,\r
-  .XenBusIo.RegisterWatch = XenBusRegisterWatch,\r
-  .XenBusIo.RegisterWatchBackend = XenBusRegisterWatchBackend,\r
-  .XenBusIo.UnregisterWatch = XenBusUnregisterWatch,\r
-  .XenBusIo.WaitForWatch = XenBusWaitForWatch,\r
-\r
-  .XenBusIo.Type = NULL,\r
-  .XenBusIo.Node = NULL,\r
-  .XenBusIo.Backend = NULL,\r
-\r
-  .Dev = NULL\r
+  XENBUS_PRIVATE_DATA_SIGNATURE,    // Signature\r
+  { NULL, NULL },                   // Link\r
+  NULL,                             // Handle\r
+  {                                 // XenBusIo\r
+    XenBusXenStoreRead,             // XenBusIo.XsRead\r
+    XenBusXenStoreBackendRead,      // XenBusIo.XsBackendRead\r
+    XenBusXenStoreSPrint,           // XenBusIo.XsPrintf\r
+    XenBusXenStoreRemove,           // XenBusIo.XsRemove\r
+    XenBusXenStoreTransactionStart, // XenBusIo.XsTransactionStart\r
+    XenBusXenStoreTransactionEnd,   // XenBusIo.XsTransactionEnd\r
+    XenBusSetState,                 // XenBusIo.SetState\r
+    XenBusGrantAccess,              // XenBusIo.GrantAccess\r
+    XenBusGrantEndAccess,           // XenBusIo.GrantEndAccess\r
+    XenBusEventChannelAllocate,     // XenBusIo.EventChannelAllocate\r
+    XenBusEventChannelNotify,       // XenBusIo.EventChannelNotify\r
+    XenBusEventChannelClose,        // XenBusIo.EventChannelClose\r
+    XenBusRegisterWatch,            // XenBusIo.RegisterWatch\r
+    XenBusRegisterWatchBackend,     // XenBusIo.RegisterWatchBackend\r
+    XenBusUnregisterWatch,          // XenBusIo.UnregisterWatch\r
+    XenBusWaitForWatch,             // XenBusIo.WaitForWatch\r
+\r
+    NULL,                           // XenBusIo.Type\r
+    0,                              // XenBusIo.DeviceId\r
+    NULL,                           // XenBusIo.Node\r
+    NULL,                           // XenBusIo.Backend\r
+  },\r
+\r
+  NULL,                             // Dev\r
+  NULL                              // DevicePath\r
 };\r