Statistics
| Branch: | Revision:

root / hw / ide.h @ 679f4f8b

History | View | Annotate | Download (1.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_xen_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
17
PCIDevice *pci_piix3_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
18
PCIDevice *pci_piix4_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
19
void vt82c686b_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn);
20

    
21
/* ide-macio.c */
22
int pmac_ide_init (DriveInfo **hd_table, qemu_irq irq,
23
                   void *dbdma, int channel, qemu_irq dma_irq);
24

    
25
/* ide-mmio.c */
26
void mmio_ide_init (target_phys_addr_t membase, target_phys_addr_t membase2,
27
                    qemu_irq irq, int shift,
28
                    DriveInfo *hd0, DriveInfo *hd1);
29

    
30
void ide_get_bs(BlockDriverState *bs[], BusState *qbus);
31

    
32
/* ide/core.c */
33
void ide_drive_get(DriveInfo **hd, int max_bus);
34

    
35
#endif /* HW_IDE_H */