ide.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef HW_IDE_H
  2. #define HW_IDE_H
  3. #include "isa.h"
  4. #include "pci.h"
  5. #define MAX_IDE_DEVS 2
  6. /* ide-isa.c */
  7. ISADevice *isa_ide_init(int iobase, int iobase2, int isairq,
  8. DriveInfo *hd0, DriveInfo *hd1);
  9. /* ide-pci.c */
  10. void pci_cmd646_ide_init(PCIBus *bus, DriveInfo **hd_table,
  11. int secondary_ide_enabled);
  12. PCIDevice *pci_piix3_xen_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
  13. PCIDevice *pci_piix3_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
  14. PCIDevice *pci_piix4_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
  15. void vt82c686b_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
  16. /* ide-macio.c */
  17. MemoryRegion *pmac_ide_init (DriveInfo **hd_table, qemu_irq irq,
  18. void *dbdma, int channel, qemu_irq dma_irq);
  19. /* ide-mmio.c */
  20. void mmio_ide_init (target_phys_addr_t membase, target_phys_addr_t membase2,
  21. qemu_irq irq, int shift,
  22. DriveInfo *hd0, DriveInfo *hd1);
  23. void ide_get_bs(BlockDriverState *bs[], BusState *qbus);
  24. /* ide/core.c */
  25. void ide_drive_get(DriveInfo **hd, int max_bus);
  26. #endif /* HW_IDE_H */