virtio: fix up VQ checks
[qemu.git] / hw / ide / pci.h
blobd46a95eb90a7b30f7cf27f6c59cad42f7edc88d5
1 #ifndef HW_IDE_PCI_H
2 #define HW_IDE_PCI_H
4 #include <hw/ide/internal.h>
6 typedef struct PCIIDEState {
7 PCIDevice dev;
8 IDEBus bus[2];
9 BMDMAState bmdma[2];
10 uint32_t secondary; /* used only for cmd646 */
11 } PCIIDEState;
13 void bmdma_cmd_writeb(void *opaque, uint32_t addr, uint32_t val);
14 uint32_t bmdma_addr_readb(void *opaque, uint32_t addr);
15 void bmdma_addr_writeb(void *opaque, uint32_t addr, uint32_t val);
16 uint32_t bmdma_addr_readw(void *opaque, uint32_t addr);
17 void bmdma_addr_writew(void *opaque, uint32_t addr, uint32_t val);
18 uint32_t bmdma_addr_readl(void *opaque, uint32_t addr);
19 void bmdma_addr_writel(void *opaque, uint32_t addr, uint32_t val);
20 void pci_ide_create_devs(PCIDevice *dev, DriveInfo **hd_table);
22 extern const VMStateDescription vmstate_ide_pci;
23 #endif