diff options
author | malc <av1474@comtv.ru> | 2011-08-22 14:41:12 +0400 |
---|---|---|
committer | malc <av1474@comtv.ru> | 2011-08-22 14:41:12 +0400 |
commit | 1afa194a0a3384c5a8fd150e4335d332c22883cf (patch) | |
tree | 87d1ca2dbfb03128e628e344a713297131bad7f7 /hw/esp.c | |
parent | 157f2662fb4dd8f02885027e47f79fbee83c7b94 (diff) | |
parent | f1a7104a5f435a1bf2a1158e6f737dbd89e8c153 (diff) |
Merge branch 'master' of git://git.qemu.org/qemu
Diffstat (limited to 'hw/esp.c')
-rw-r--r-- | hw/esp.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -54,15 +54,15 @@ typedef struct ESPState ESPState; struct ESPState { SysBusDevice busdev; - uint32_t it_shift; - qemu_irq irq; uint8_t rregs[ESP_REGS]; uint8_t wregs[ESP_REGS]; + qemu_irq irq; + uint32_t it_shift; int32_t ti_size; uint32_t ti_rptr, ti_wptr; - uint8_t ti_buf[TI_BUFSZ]; uint32_t status; uint32_t dma; + uint8_t ti_buf[TI_BUFSZ]; SCSIBus bus; SCSIDevice *current_dev; SCSIRequest *current_req; @@ -75,13 +75,14 @@ struct ESPState { /* The size of the current DMA transfer. Zero if no transfer is in progress. */ uint32_t dma_counter; - uint8_t *async_buf; + int dma_enabled; + uint32_t async_len; + uint8_t *async_buf; ESPDMAMemoryReadWriteFunc dma_memory_read; ESPDMAMemoryReadWriteFunc dma_memory_write; void *dma_opaque; - int dma_enabled; void (*dma_cb)(ESPState *s); }; |