]>
Commit | Line | Data |
---|---|---|
ec82026c GH |
1 | #ifndef HW_IDE_H |
2 | #define HW_IDE_H | |
3 | ||
57c88866 MA |
4 | #include "isa.h" |
5 | #include "pci.h" | |
ec82026c | 6 | |
27d6bf40 MA |
7 | #define MAX_IDE_DEVS 2 |
8 | ||
ec82026c | 9 | /* ide-isa.c */ |
57c88866 MA |
10 | ISADevice *isa_ide_init(int iobase, int iobase2, int isairq, |
11 | DriveInfo *hd0, DriveInfo *hd1); | |
ec82026c | 12 | |
977e1244 | 13 | /* ide-pci.c */ |
f455e98c | 14 | void pci_cmd646_ide_init(PCIBus *bus, DriveInfo **hd_table, |
977e1244 | 15 | int secondary_ide_enabled); |
57c88866 MA |
16 | PCIDevice *pci_piix3_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn); |
17 | PCIDevice *pci_piix4_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn); | |
016512f3 | 18 | void vt82c686b_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn); |
977e1244 | 19 | |
b8842209 | 20 | /* ide-macio.c */ |
f455e98c | 21 | int pmac_ide_init (DriveInfo **hd_table, qemu_irq irq, |
b8842209 GH |
22 | void *dbdma, int channel, qemu_irq dma_irq); |
23 | ||
3d2bf4a1 | 24 | /* ide-mmio.c */ |
c227f099 | 25 | void mmio_ide_init (target_phys_addr_t membase, target_phys_addr_t membase2, |
3d2bf4a1 | 26 | qemu_irq irq, int shift, |
f455e98c | 27 | DriveInfo *hd0, DriveInfo *hd1); |
3d2bf4a1 | 28 | |
c0897e0c MA |
29 | void ide_get_bs(BlockDriverState *bs[], BusState *qbus); |
30 | ||
75717903 IY |
31 | /* ide/core.c */ |
32 | void ide_drive_get(DriveInfo **hd, int max_bus); | |
33 | ||
ec82026c | 34 | #endif /* HW_IDE_H */ |