X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fdevices%2Fide.h;h=14e915fd76b505361b0a33ede8707dc928ecbc84;hb=8e9c13c41b0244a8d0029e837a623591a22c5879;hp=4dce5888ba7d9ab3384561e8c03126c662042332;hpb=a3843aa9457ed5a02159fd5a83620426b0a0f3fe;p=palacios.git diff --git a/palacios/include/devices/ide.h b/palacios/include/devices/ide.h index 4dce588..14e915f 100644 --- a/palacios/include/devices/ide.h +++ b/palacios/include/devices/ide.h @@ -21,43 +21,11 @@ #define __DEVICES_IDE_H__ #ifdef __V3VEE__ -#include -typedef enum {IDE_DISK, IDE_CDROM, IDE_NONE} v3_ide_dev_type_t; - -struct v3_ide_cd_ops { - uint32_t (*get_capacity)(void * private_data); - // Reads always operate on 2048 byte blocks - int (*read)(uint8_t * buf, int count, int lba, void * private_data); - -}; - - -struct v3_ide_hd_ops { - - -}; - - -int v3_ide_register_cdrom(struct vm_device * ide, - uint_t bus_num, - uint_t drive_num, - char * drive_name, - struct v3_ide_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_ide_hd_ops * ops, - void * private_data); - - - -struct vm_device * v3_create_ide(); +int v3_ide_get_geometry(void * ide_data, int channel_num, int drive_num, + uint32_t * cylinders, uint32_t * heads, uint32_t * sectors); #endif // ! __V3VEE__