X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fdevices%2Fide.h;h=b778f1efa334ebabf4bf431308f943684d9a139f;hb=9f239e337227351e9440d9d3b174bb37942ceebe;hp=ee6f2c5d2071227ccc3c83857947017dfa32d8ab;hpb=bb102eef875adf3e667e4e3ffe7e6412b167b14e;p=palacios.git diff --git a/palacios/include/devices/ide.h b/palacios/include/devices/ide.h index ee6f2c5..b778f1e 100644 --- a/palacios/include/devices/ide.h +++ b/palacios/include/devices/ide.h @@ -21,12 +21,36 @@ #define __DEVICES_IDE_H__ #ifdef __V3VEE__ -#include +#include -struct vm_device * v3_create_ide(); +struct ide_cfg { + char pci[32]; + char southbridge[32]; +}; +int v3_ide_register_cdrom(struct vm_device * ide, + uint_t bus_num, + uint_t drive_num, + char * drive_name, + struct v3_cd_ops * ops, + void * private_data); + +int v3_ide_register_harddisk(struct vm_device * ide, + uint_t bus_num, + uint_t drive_num, + char * drive_name, + struct v3_hd_ops * ops, + void * private_data); + + + + + +int v3_ide_get_geometry(struct vm_device * ide_dev, int channel_num, int drive_num, + uint32_t * cylinders, uint32_t * heads, uint32_t * sectors); + #endif // ! __V3VEE__