Statistics
| Branch: | Revision:

root / hw / ide.h @ 8ca209ad

History | View | Annotate | Download (957 Bytes)

1 ec82026c Gerd Hoffmann
#ifndef HW_IDE_H
2 ec82026c Gerd Hoffmann
#define HW_IDE_H
3 ec82026c Gerd Hoffmann
4 57c88866 Markus Armbruster
#include "isa.h"
5 57c88866 Markus Armbruster
#include "pci.h"
6 ec82026c Gerd Hoffmann
7 ec82026c Gerd Hoffmann
/* ide-isa.c */
8 57c88866 Markus Armbruster
ISADevice *isa_ide_init(int iobase, int iobase2, int isairq,
9 57c88866 Markus Armbruster
                        DriveInfo *hd0, DriveInfo *hd1);
10 ec82026c Gerd Hoffmann
11 977e1244 Gerd Hoffmann
/* ide-pci.c */
12 f455e98c Gerd Hoffmann
void pci_cmd646_ide_init(PCIBus *bus, DriveInfo **hd_table,
13 977e1244 Gerd Hoffmann
                         int secondary_ide_enabled);
14 57c88866 Markus Armbruster
PCIDevice *pci_piix3_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
15 57c88866 Markus Armbruster
PCIDevice *pci_piix4_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
16 016512f3 Huacai Chen
void vt82c686b_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
17 977e1244 Gerd Hoffmann
18 b8842209 Gerd Hoffmann
/* ide-macio.c */
19 f455e98c Gerd Hoffmann
int pmac_ide_init (DriveInfo **hd_table, qemu_irq irq,
20 b8842209 Gerd Hoffmann
                   void *dbdma, int channel, qemu_irq dma_irq);
21 b8842209 Gerd Hoffmann
22 3d2bf4a1 Gerd Hoffmann
/* ide-mmio.c */
23 c227f099 Anthony Liguori
void mmio_ide_init (target_phys_addr_t membase, target_phys_addr_t membase2,
24 3d2bf4a1 Gerd Hoffmann
                    qemu_irq irq, int shift,
25 f455e98c Gerd Hoffmann
                    DriveInfo *hd0, DriveInfo *hd1);
26 3d2bf4a1 Gerd Hoffmann
27 c0897e0c Markus Armbruster
void ide_get_bs(BlockDriverState *bs[], BusState *qbus);
28 c0897e0c Markus Armbruster
29 ec82026c Gerd Hoffmann
#endif /* HW_IDE_H */