]> Git Repo - qemu.git/blobdiff - include/hw/ppc/mac_dbdma.h
hw/ppc: add a ppc_create_page_sizes_prop() helper routine
[qemu.git] / include / hw / ppc / mac_dbdma.h
index eb8e0f0075e5eab26302a52713811de3806a9702..a8603877d79cddbdb433771d0f45aaec5c93b7e0 100644 (file)
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  */
+
 #ifndef HW_MAC_DBDMA_H
-#define HW_MAC_DBDMA_H 1
+#define HW_MAC_DBDMA_H
 
 #include "exec/memory.h"
+#include "qemu/iov.h"
+#include "sysemu/dma.h"
 
 typedef struct DBDMA_io DBDMA_io;
 
@@ -37,6 +40,16 @@ struct DBDMA_io {
     int is_last;
     int is_dma_out;
     DBDMA_end dma_end;
+    /* DMA is in progress, don't start another one */
+    bool processing;
+    /* unaligned last sector of a request */
+    uint8_t head_remainder[0x200];
+    uint8_t tail_remainder[0x200];
+    QEMUIOVector iov;
+    /* DMA request */
+    void *dma_mem;
+    dma_addr_t dma_len;
+    DMADirection dir;
 };
 
 /*
@@ -148,7 +161,6 @@ typedef struct DBDMA_channel {
     DBDMA_rw rw;
     DBDMA_flush flush;
     dbdma_cmd current;
-    int processing;
 } DBDMA_channel;
 
 typedef struct {
This page took 0.024568 seconds and 4 git commands to generate.