X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Finclude%2Fdevices%2Fide.h;h=8f8951d1d9c3c64d53ad218fc13ade1e9346524b;hp=d299827f031e632b70d0047b6d9252ea4a93364b;hb=123a1ba27ea09c8fa77a1b36ce625b43d7c48b14;hpb=326a9425e1dc7a9f7afafe2951b55f35d9ff2422 diff --git a/palacios/include/devices/ide.h b/palacios/include/devices/ide.h index d299827..8f8951d 100644 --- a/palacios/include/devices/ide.h +++ b/palacios/include/devices/ide.h @@ -21,46 +21,6 @@ #define __DEVICES_IDE_H__ #ifdef __V3VEE__ -#include - - -#define ATAPI_BLOCK_SIZE 2048 -#define IDE_SECTOR_SIZE 512 - -typedef enum {IDE_NONE, IDE_DISK, IDE_CDROM} 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 block_count, uint64_t lba, void * private_data); -}; - - -struct v3_ide_hd_ops { - uint64_t (*get_capacity)(void * private_data); - // Reads always operate on 2048 byte blocks - int (*read)(uint8_t * buf, int sector_count, uint64_t lba, void * private_data); - int (*write)(uint8_t * buf, int sector_count, uint64_t lba, void * private_data); -}; - - -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();