]> git.proxmox.com Git - qemu.git/blame - hw/ide.h
acpi_piix4: Re-define PCI hotplug eject register read
[qemu.git] / hw / ide.h
CommitLineData
ec82026c
GH
1#ifndef HW_IDE_H
2#define HW_IDE_H
3
57c88866
MA
4#include "isa.h"
5#include "pci.h"
9d7f1b9a 6#include "memory.h"
ec82026c 7
27d6bf40
MA
8#define MAX_IDE_DEVS 2
9
ec82026c 10/* ide-isa.c */
48a18b3c 11ISADevice *isa_ide_init(ISABus *bus, int iobase, int iobase2, int isairq,
57c88866 12 DriveInfo *hd0, DriveInfo *hd1);
ec82026c 13
977e1244 14/* ide-pci.c */
f455e98c 15void pci_cmd646_ide_init(PCIBus *bus, DriveInfo **hd_table,
977e1244 16 int secondary_ide_enabled);
679f4f8b 17PCIDevice *pci_piix3_xen_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
57c88866
MA
18PCIDevice *pci_piix3_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
19PCIDevice *pci_piix4_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
016512f3 20void vt82c686b_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
977e1244 21
b8842209 22/* ide-macio.c */
23c5e4ca 23MemoryRegion *pmac_ide_init (DriveInfo **hd_table, qemu_irq irq,
b8842209
GH
24 void *dbdma, int channel, qemu_irq dma_irq);
25
3d2bf4a1 26/* ide-mmio.c */
c227f099 27void mmio_ide_init (target_phys_addr_t membase, target_phys_addr_t membase2,
9d7f1b9a 28 MemoryRegion *address_space,
3d2bf4a1 29 qemu_irq irq, int shift,
f455e98c 30 DriveInfo *hd0, DriveInfo *hd1);
3d2bf4a1 31
c0897e0c
MA
32void ide_get_bs(BlockDriverState *bs[], BusState *qbus);
33
75717903
IY
34/* ide/core.c */
35void ide_drive_get(DriveInfo **hd, int max_bus);
36
ec82026c 37#endif /* HW_IDE_H */