Fix a bug in mtsr/mtsrin emulation on ppc64
[qemu.git] / hw / ide.h
blob34d9394bcce3803398874f103c307920fa57848f
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 /* ide/core.c */
32 void ide_drive_get(DriveInfo **hd, int max_bus);
34 #endif /* HW_IDE_H */