ide.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  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_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
  13. PCIDevice *pci_piix4_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
  14. void vt82c686b_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
  15. /* ide-macio.c */
  16. int pmac_ide_init (DriveInfo **hd_table, qemu_irq irq,
  17. void *dbdma, int channel, qemu_irq dma_irq);
  18. /* ide-mmio.c */
  19. void mmio_ide_init (target_phys_addr_t membase, target_phys_addr_t membase2,
  20. qemu_irq irq, int shift,
  21. DriveInfo *hd0, DriveInfo *hd1);
  22. void ide_get_bs(BlockDriverState *bs[], BusState *qbus);
  23. /* ide/core.c */
  24. void ide_drive_get(DriveInfo **hd, int max_bus);
  25. #endif /* HW_IDE_H */