2009-08-20 13:22:19 +00:00
|
|
|
#ifndef HW_IDE_H
|
|
|
|
#define HW_IDE_H
|
|
|
|
|
2013-02-05 16:06:20 +00:00
|
|
|
#include "hw/isa/isa.h"
|
2012-12-17 17:19:49 +00:00
|
|
|
#include "exec/memory.h"
|
2009-08-20 13:22:19 +00:00
|
|
|
|
|
|
|
/* ide-isa.c */
|
2011-12-15 21:09:51 +00:00
|
|
|
ISADevice *isa_ide_init(ISABus *bus, int iobase, int iobase2, int isairq,
|
2010-06-24 17:59:29 +00:00
|
|
|
DriveInfo *hd0, DriveInfo *hd1);
|
2009-08-20 13:22:19 +00:00
|
|
|
|
2009-08-20 13:22:20 +00:00
|
|
|
/* ide-pci.c */
|
2017-01-24 14:05:47 +00:00
|
|
|
int pci_piix3_xen_ide_unplug(DeviceState *dev, bool aux);
|
2009-08-20 13:22:20 +00:00
|
|
|
|
2009-08-20 13:22:22 +00:00
|
|
|
/* ide-mmio.c */
|
2013-01-31 23:13:41 +00:00
|
|
|
void mmio_ide_init_drives(DeviceState *dev, DriveInfo *hd0, DriveInfo *hd1);
|
2009-08-20 13:22:22 +00:00
|
|
|
|
2012-07-10 09:12:38 +00:00
|
|
|
int ide_get_geometry(BusState *bus, int unit,
|
|
|
|
int16_t *cyls, int8_t *heads, int8_t *secs);
|
|
|
|
int ide_get_bios_chs_trans(BusState *bus, int unit);
|
2010-06-24 17:58:20 +00:00
|
|
|
|
2011-04-03 11:32:46 +00:00
|
|
|
/* ide/core.c */
|
|
|
|
void ide_drive_get(DriveInfo **hd, int max_bus);
|
|
|
|
|
2009-08-20 13:22:19 +00:00
|
|
|
#endif /* HW_IDE_H */
|