]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/XenBusDxe/XenHypercall.h
Ovmf/Xen: refactor XenBusDxe hypercall implementation
[mirror_edk2.git] / OvmfPkg / XenBusDxe / XenHypercall.h
index 06693830e16e01858a5cd3464e4f85eaff0ef842..9d49e33eb5af556158eed549b528ff5558966d14 100644 (file)
@@ -18,9 +18,9 @@
 \r
 /**\r
   This function will put the two arguments in the right place (registers) and\r
-  call HypercallAddr, which correspond to an entry in the hypercall pages.\r
+  invoke the hypercall identified by HypercallID.\r
 \r
-  @param HypercallAddr  A memory address where the hypercall to call is.\r
+  @param HypercallID    The symbolic ID of the hypercall to be invoked\r
   @param Arg1           First argument.\r
   @param Arg2           Second argument.\r
 \r
@@ -29,7 +29,7 @@
 INTN\r
 EFIAPI\r
 XenHypercall2 (\r
-  IN     VOID *HypercallAddr,\r
+  IN     INTN HypercallID,\r
   IN OUT INTN Arg1,\r
   IN OUT INTN Arg2\r
   );\r
@@ -44,27 +44,23 @@ XenHypercall2 (
 **/\r
 EFI_STATUS\r
 XenHyperpageInit (\r
-  XENBUS_DEVICE *Dev\r
   );\r
 \r
 /**\r
   Return the value of the HVM parameter Index.\r
 \r
-  @param Dev    A XENBUS_DEVICE instance.\r
   @param Index  The parameter to get, e.g. HVM_PARAM_STORE_EVTCHN.\r
 \r
   @return   The value of the asked parameter or 0 in case of error.\r
 **/\r
 UINT64\r
 XenHypercallHvmGetParam (\r
-  XENBUS_DEVICE *Dev,\r
   UINT32 Index\r
   );\r
 \r
 /**\r
   Hypercall to do different operation on the memory.\r
 \r
-  @param Dev        A XENBUS_DEVICE instance.\r
   @param Operation  The operation number, e.g. XENMEM_add_to_physmap.\r
   @param Arguments  The arguments associated to the operation.\r
 \r
@@ -73,7 +69,6 @@ XenHypercallHvmGetParam (
 **/\r
 INTN\r
 XenHypercallMemoryOp (\r
-  IN     XENBUS_DEVICE *Dev,\r
   IN     UINTN Operation,\r
   IN OUT VOID *Arguments\r
   );\r
@@ -81,7 +76,6 @@ XenHypercallMemoryOp (
 /**\r
   Do an operation on the event channels.\r
 \r
-  @param Dev        A XENBUS_DEVICE instance.\r
   @param Operation  The operation number, e.g. EVTCHNOP_send.\r
   @param Arguments  The argument associated to the operation.\r
 \r
@@ -90,24 +84,8 @@ XenHypercallMemoryOp (
 **/\r
 INTN\r
 XenHypercallEventChannelOp (\r
-  IN     XENBUS_DEVICE *Dev,\r
   IN     INTN Operation,\r
   IN OUT VOID *Arguments\r
   );\r
 \r
-/**\r
-  Map the shared_info_t page into memory.\r
-\r
-  @param Dev    A XENBUS_DEVICE instance.\r
-\r
-  @retval EFI_SUCCESS     Dev->SharedInfo whill contain a pointer to\r
-                          the shared info page\r
-  @retval EFI_LOAD_ERROR  The shared info page could not be mapped. The\r
-                          hypercall returned an error.\r
-**/\r
-EFI_STATUS\r
-XenGetSharedInfoPage (\r
-  IN OUT XENBUS_DEVICE *Dev\r
-  );\r
-\r
 #endif\r