X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Finclude%2Fdevices%2Fide.h;h=98c91ce122b2962876cc875d5db7503b62aa1816;hp=e0356b215f62e5648064a36aa1306e36a1f68868;hb=6661dd1d2aa547ae248e816dcd4201bcbcb7fee0;hpb=4659d019e2f65b9397e2289a9add28a3adf47cf8 diff --git a/palacios/include/devices/ide.h b/palacios/include/devices/ide.h index e0356b2..98c91ce 100644 --- a/palacios/include/devices/ide.h +++ b/palacios/include/devices/ide.h @@ -27,20 +27,20 @@ #define ATAPI_BLOCK_SIZE 2048 #define IDE_SECTOR_SIZE 512 -typedef enum {IDE_DISK, IDE_CDROM, IDE_NONE} v3_ide_dev_type_t; +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 count, int lba, void * private_data); + int (*read)(uint8_t * buf, int block_count, uint64_t lba, void * private_data); }; struct v3_ide_hd_ops { - uint32_t (*get_capacity)(void * private_data); + uint64_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); + int (*read)(uint8_t * buf, int sector_count, uint64_t lba, void * private_data); };