parallel: make optional
[qemu/lumag.git] / hw / ide.h
blob73fb550574b8106d63d6d7dcab9cc2234056d616
1 #ifndef HW_IDE_H
2 #define HW_IDE_H
4 #include "isa.h"
5 #include "pci.h"
7 #define MAX_IDE_DEVS 2
9 /* ide-isa.c */
10 ISADevice *isa_ide_init(int iobase, int iobase2, int isairq,
11 DriveInfo *hd0, DriveInfo *hd1);
13 /* ide-pci.c */
14 void pci_cmd646_ide_init(PCIBus *bus, DriveInfo **hd_table,
15 int secondary_ide_enabled);
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);
18 void vt82c686b_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
20 /* ide-macio.c */
21 int pmac_ide_init (DriveInfo **hd_table, qemu_irq irq,
22 void *dbdma, int channel, qemu_irq dma_irq);
24 /* ide-mmio.c */
25 void mmio_ide_init (target_phys_addr_t membase, target_phys_addr_t membase2,
26 qemu_irq irq, int shift,
27 DriveInfo *hd0, DriveInfo *hd1);
29 void ide_get_bs(BlockDriverState *bs[], BusState *qbus);
31 #endif /* HW_IDE_H */