X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fdevices%2Fide.h;h=d299827f031e632b70d0047b6d9252ea4a93364b;hb=326a9425e1dc7a9f7afafe2951b55f35d9ff2422;hp=98c91ce122b2962876cc875d5db7503b62aa1816;hpb=6661dd1d2aa547ae248e816dcd4201bcbcb7fee0;p=palacios.git diff --git a/palacios/include/devices/ide.h b/palacios/include/devices/ide.h index 98c91ce..d299827 100644 --- a/palacios/include/devices/ide.h +++ b/palacios/include/devices/ide.h @@ -33,7 +33,6 @@ 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); - }; @@ -41,7 +40,7 @@ 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); }; @@ -65,6 +64,10 @@ struct vm_device * v3_create_ide(); +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__