virtio-net: introduce a new macaddr control
[qemu/ar7.git] / hw / ide.h
blob9b357c05a5dbdc73a6ed550e026f0476fbeb4e0c
1 #ifndef HW_IDE_H
2 #define HW_IDE_H
4 #include "isa.h"
5 #include "pci/pci.h"
6 #include "exec/memory.h"
8 #define MAX_IDE_DEVS 2
10 /* ide-isa.c */
11 ISADevice *isa_ide_init(ISABus *bus, int iobase, int iobase2, int isairq,
12 DriveInfo *hd0, DriveInfo *hd1);
14 /* ide-pci.c */
15 void pci_cmd646_ide_init(PCIBus *bus, DriveInfo **hd_table,
16 int secondary_ide_enabled);
17 PCIDevice *pci_piix3_xen_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
18 PCIDevice *pci_piix3_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
19 PCIDevice *pci_piix4_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
20 void vt82c686b_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
22 /* ide-mmio.c */
23 void mmio_ide_init (hwaddr membase, hwaddr membase2,
24 MemoryRegion *address_space,
25 qemu_irq irq, int shift,
26 DriveInfo *hd0, DriveInfo *hd1);
28 int ide_get_geometry(BusState *bus, int unit,
29 int16_t *cyls, int8_t *heads, int8_t *secs);
30 int ide_get_bios_chs_trans(BusState *bus, int unit);
32 /* ide/core.c */
33 void ide_drive_get(DriveInfo **hd, int max_bus);
35 #endif /* HW_IDE_H */