]> git.proxmox.com Git - mirror_qemu.git/blame - include/hw/ide.h
migration/savevm: wrap into qemu_loadvm_state_header()
[mirror_qemu.git] / include / hw / ide.h
CommitLineData
ec82026c
GH
1#ifndef HW_IDE_H
2#define HW_IDE_H
3
0d09e41a 4#include "hw/isa/isa.h"
83c9f4ca 5#include "hw/pci/pci.h"
022c62cb 6#include "exec/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);
ae4d2eb2 20int pci_piix3_xen_ide_unplug(DeviceState *dev, bool aux);
7dd687ba 21void via_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
977e1244 22
3d2bf4a1 23/* ide-mmio.c */
6b2578d6 24void mmio_ide_init_drives(DeviceState *dev, DriveInfo *hd0, DriveInfo *hd1);
3d2bf4a1 25
9139046c
MA
26int ide_get_geometry(BusState *bus, int unit,
27 int16_t *cyls, int8_t *heads, int8_t *secs);
28int ide_get_bios_chs_trans(BusState *bus, int unit);
c0897e0c 29
75717903
IY
30/* ide/core.c */
31void ide_drive_get(DriveInfo **hd, int max_bus);
32
ec82026c 33#endif /* HW_IDE_H */