2009-08-20 15:22:19 +02:00
|
|
|
#ifndef HW_IDE_H
|
|
|
|
#define HW_IDE_H
|
|
|
|
|
2010-06-24 19:59:29 +02:00
|
|
|
#include "isa.h"
|
|
|
|
#include "pci.h"
|
2011-11-09 15:10:07 +01:00
|
|
|
#include "memory.h"
|
2009-08-20 15:22:19 +02:00
|
|
|
|
2011-01-28 11:21:40 +01:00
|
|
|
#define MAX_IDE_DEVS 2
|
|
|
|
|
2009-08-20 15:22:19 +02:00
|
|
|
/* ide-isa.c */
|
2011-12-15 22:09:51 +01:00
|
|
|
ISADevice *isa_ide_init(ISABus *bus, int iobase, int iobase2, int isairq,
|
2010-06-24 19:59:29 +02:00
|
|
|
DriveInfo *hd0, DriveInfo *hd1);
|
2009-08-20 15:22:19 +02:00
|
|
|
|
2009-08-20 15:22:20 +02:00
|
|
|
/* ide-pci.c */
|
2009-08-28 15:47:03 +02:00
|
|
|
void pci_cmd646_ide_init(PCIBus *bus, DriveInfo **hd_table,
|
2009-08-20 15:22:20 +02:00
|
|
|
int secondary_ide_enabled);
|
2011-07-18 08:07:02 +02:00
|
|
|
PCIDevice *pci_piix3_xen_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
|
2010-06-24 19:59:29 +02: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 04:49:50 +02:00
|
|
|
void vt82c686b_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
|
2009-08-20 15:22:20 +02:00
|
|
|
|
2009-08-20 15:22:21 +02:00
|
|
|
/* ide-macio.c */
|
2011-08-08 15:09:17 +02:00
|
|
|
MemoryRegion *pmac_ide_init (DriveInfo **hd_table, qemu_irq irq,
|
2009-08-20 15:22:21 +02:00
|
|
|
void *dbdma, int channel, qemu_irq dma_irq);
|
|
|
|
|
2009-08-20 15:22:22 +02:00
|
|
|
/* ide-mmio.c */
|
2012-10-23 12:30:10 +02:00
|
|
|
void mmio_ide_init (hwaddr membase, hwaddr membase2,
|
2011-11-09 15:10:07 +01:00
|
|
|
MemoryRegion *address_space,
|
2009-08-20 15:22:22 +02:00
|
|
|
qemu_irq irq, int shift,
|
2009-08-28 15:47:03 +02:00
|
|
|
DriveInfo *hd0, DriveInfo *hd1);
|
2009-08-20 15:22:22 +02:00
|
|
|
|
2012-07-10 11:12:38 +02:00
|
|
|
int ide_get_geometry(BusState *bus, int unit,
|
|
|
|
int16_t *cyls, int8_t *heads, int8_t *secs);
|
|
|
|
int ide_get_bios_chs_trans(BusState *bus, int unit);
|
2010-06-24 19:58:20 +02:00
|
|
|
|
2011-04-03 13:32:46 +02:00
|
|
|
/* ide/core.c */
|
|
|
|
void ide_drive_get(DriveInfo **hd, int max_bus);
|
|
|
|
|
2009-08-20 15:22:19 +02:00
|
|
|
#endif /* HW_IDE_H */
|