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