2009-08-20 21:22:19 +08:00
|
|
|
#ifndef HW_IDE_H
|
|
|
|
#define HW_IDE_H
|
|
|
|
|
2010-06-25 01:59:29 +08:00
|
|
|
#include "isa.h"
|
|
|
|
#include "pci.h"
|
2009-08-20 21:22:19 +08:00
|
|
|
|
2011-01-28 18:21:40 +08:00
|
|
|
#define MAX_IDE_DEVS 2
|
|
|
|
|
2009-08-20 21:22:19 +08:00
|
|
|
/* ide-isa.c */
|
2010-06-25 01:59:29 +08:00
|
|
|
ISADevice *isa_ide_init(int iobase, int iobase2, int isairq,
|
|
|
|
DriveInfo *hd0, DriveInfo *hd1);
|
2009-08-20 21:22:19 +08:00
|
|
|
|
2009-08-20 21:22:20 +08:00
|
|
|
/* ide-pci.c */
|
2009-08-28 21:47:03 +08:00
|
|
|
void pci_cmd646_ide_init(PCIBus *bus, DriveInfo **hd_table,
|
2009-08-20 21:22:20 +08:00
|
|
|
int secondary_ide_enabled);
|
2010-06-25 01:59:29 +08:00
|
|
|
PCIDevice *pci_piix3_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
|
|
|
|
PCIDevice *pci_piix4_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
|
2010-06-29 10:49:50 +08:00
|
|
|
void vt82c686b_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
|
2009-08-20 21:22:20 +08:00
|
|
|
|
2009-08-20 21:22:21 +08:00
|
|
|
/* ide-macio.c */
|
2009-08-28 21:47:03 +08:00
|
|
|
int pmac_ide_init (DriveInfo **hd_table, qemu_irq irq,
|
2009-08-20 21:22:21 +08:00
|
|
|
void *dbdma, int channel, qemu_irq dma_irq);
|
|
|
|
|
2009-08-20 21:22:22 +08:00
|
|
|
/* ide-mmio.c */
|
2009-10-02 05:12:16 +08:00
|
|
|
void mmio_ide_init (target_phys_addr_t membase, target_phys_addr_t membase2,
|
2009-08-20 21:22:22 +08:00
|
|
|
qemu_irq irq, int shift,
|
2009-08-28 21:47:03 +08:00
|
|
|
DriveInfo *hd0, DriveInfo *hd1);
|
2009-08-20 21:22:22 +08:00
|
|
|
|
2010-06-25 01:58:20 +08:00
|
|
|
void ide_get_bs(BlockDriverState *bs[], BusState *qbus);
|
|
|
|
|
2011-04-03 19:32:46 +08:00
|
|
|
/* ide/core.c */
|
|
|
|
void ide_drive_get(DriveInfo **hd, int max_bus);
|
|
|
|
|
2009-08-20 21:22:19 +08:00
|
|
|
#endif /* HW_IDE_H */
|