X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Finclude%2Fdevices%2Fide.h;h=e0356b215f62e5648064a36aa1306e36a1f68868;hp=4dce5888ba7d9ab3384561e8c03126c662042332;hb=4659d019e2f65b9397e2289a9add28a3adf47cf8;hpb=a3843aa9457ed5a02159fd5a83620426b0a0f3fe diff --git a/palacios/include/devices/ide.h b/palacios/include/devices/ide.h index 4dce588..e0356b2 100644 --- a/palacios/include/devices/ide.h +++ b/palacios/include/devices/ide.h @@ -24,6 +24,9 @@ #include +#define ATAPI_BLOCK_SIZE 2048 +#define IDE_SECTOR_SIZE 512 + typedef enum {IDE_DISK, IDE_CDROM, IDE_NONE} v3_ide_dev_type_t; struct v3_ide_cd_ops { @@ -35,7 +38,9 @@ struct v3_ide_cd_ops { struct v3_ide_hd_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); };