]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLibInternal.h
OvmfPkg/TlsAuthConfigLib: configure trusted cipher suites for HTTPS boot
[mirror_edk2.git] / OvmfPkg / Library / QemuFwCfgLib / QemuFwCfgLibInternal.h
index 8cfa7913ffaeeebf61bb33acfb3731bfb2a97051..327f1d37e17d7bddd539988d2cad09cbc4d7e78f 100644 (file)
@@ -45,39 +45,25 @@ InternalQemuFwCfgDmaIsAvailable (
   );\r
 \r
 /**\r
- Returns a boolean indicating whether SEV support is enabled\r
+  Transfer an array of bytes, or skip a number of bytes, using the DMA\r
+  interface.\r
 \r
- @retval    TRUE    SEV is enabled\r
- @retval    FALSE   SEV is disabled\r
-**/\r
-BOOLEAN\r
-InternalQemuFwCfgSevIsEnabled (\r
-  VOID\r
-  );\r
-\r
-/**\r
- Allocate a bounce buffer for SEV DMA.\r
+  @param[in]     Size     Size in bytes to transfer or skip.\r
 \r
-  @param[out]    Buffer   Allocated DMA Buffer pointer\r
-  @param[in]     NumPage  Number of pages.\r
+  @param[in,out] Buffer   Buffer to read data into or write data from. Ignored,\r
+                          and may be NULL, if Size is zero, or Control is\r
+                          FW_CFG_DMA_CTL_SKIP.\r
 \r
+  @param[in]     Control  One of the following:\r
+                          FW_CFG_DMA_CTL_WRITE - write to fw_cfg from Buffer.\r
+                          FW_CFG_DMA_CTL_READ  - read from fw_cfg into Buffer.\r
+                          FW_CFG_DMA_CTL_SKIP  - skip bytes in fw_cfg.\r
 **/\r
 VOID\r
-InternalQemuFwCfgSevDmaAllocateBuffer (\r
-  OUT    VOID     **Buffer,\r
-  IN     UINT32   NumPages\r
+InternalQemuFwCfgDmaBytes (\r
+  IN     UINT32   Size,\r
+  IN OUT VOID     *Buffer OPTIONAL,\r
+  IN     UINT32   Control\r
   );\r
 \r
-/**\r
- Free the DMA buffer allocated using InternalQemuFwCfgSevDmaAllocateBuffer\r
-\r
-  @param[in]     NumPage  Number of pages.\r
-  @param[in]     Buffer   DMA Buffer pointer\r
-\r
-**/\r
-VOID\r
-InternalQemuFwCfgSevDmaFreeBuffer (\r
-  IN     VOID     *Buffer,\r
-  IN     UINT32   NumPages\r
-  );\r
 #endif\r