4 #include <hw/ide/internal.h>
6 #define IDE_TYPE_PIIX3 0
7 #define IDE_TYPE_CMD646 1
8 #define IDE_TYPE_PIIX4 2
10 typedef struct PCIIDEState
{
14 int type
; /* see IDE_TYPE_xxx */
18 void bmdma_cmd_writeb(void *opaque
, uint32_t addr
, uint32_t val
);
19 uint32_t bmdma_addr_readb(void *opaque
, uint32_t addr
);
20 void bmdma_addr_writeb(void *opaque
, uint32_t addr
, uint32_t val
);
21 uint32_t bmdma_addr_readw(void *opaque
, uint32_t addr
);
22 void bmdma_addr_writew(void *opaque
, uint32_t addr
, uint32_t val
);
23 uint32_t bmdma_addr_readl(void *opaque
, uint32_t addr
);
24 void bmdma_addr_writel(void *opaque
, uint32_t addr
, uint32_t val
);
25 void pci_ide_save(QEMUFile
* f
, void *opaque
);
26 int pci_ide_load(QEMUFile
* f
, void *opaque
, int version_id
);
27 void pci_ide_create_devs(PCIDevice
*dev
, DriveInfo
**hd_table
);