2009-08-20 17:22:19 +04:00
|
|
|
#ifndef HW_IDE_H
|
|
|
|
#define HW_IDE_H
|
|
|
|
|
|
|
|
#include "qdev.h"
|
|
|
|
|
|
|
|
/* ide-isa.c */
|
2009-09-16 00:05:00 +04:00
|
|
|
int isa_ide_init(int iobase, int iobase2, int isairq,
|
|
|
|
DriveInfo *hd0, DriveInfo *hd1);
|
2009-08-20 17:22:19 +04:00
|
|
|
|
2009-08-20 17:22:20 +04:00
|
|
|
/* ide-pci.c */
|
2009-08-28 17:47:03 +04:00
|
|
|
void pci_cmd646_ide_init(PCIBus *bus, DriveInfo **hd_table,
|
2009-08-20 17:22:20 +04:00
|
|
|
int secondary_ide_enabled);
|
2009-08-28 21:37:00 +04:00
|
|
|
void pci_piix3_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
|
|
|
|
void pci_piix4_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
|
2010-06-29 06:49:50 +04:00
|
|
|
void vt82c686b_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
|
2009-08-20 17:22:20 +04:00
|
|
|
|
2009-08-20 17:22:21 +04:00
|
|
|
/* ide-macio.c */
|
2009-08-28 17:47:03 +04:00
|
|
|
int pmac_ide_init (DriveInfo **hd_table, qemu_irq irq,
|
2009-08-20 17:22:21 +04:00
|
|
|
void *dbdma, int channel, qemu_irq dma_irq);
|
|
|
|
|
2009-08-20 17:22:22 +04:00
|
|
|
/* ide-mmio.c */
|
2009-10-02 01:12:16 +04:00
|
|
|
void mmio_ide_init (target_phys_addr_t membase, target_phys_addr_t membase2,
|
2009-08-20 17:22:22 +04:00
|
|
|
qemu_irq irq, int shift,
|
2009-08-28 17:47:03 +04:00
|
|
|
DriveInfo *hd0, DriveInfo *hd1);
|
2009-08-20 17:22:22 +04:00
|
|
|
|
2009-08-20 17:22:19 +04:00
|
|
|
#endif /* HW_IDE_H */
|