X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fdevices%2Fide.h;h=88c593ee679b54a744d6d91c4974c767194bbb1f;hb=37c18b2c2335a41c68c2f0b779fd2b7d51ab216d;hp=8a68222a47d2e0ae88628230a8d7efd70a2ef9a1;hpb=d0886c953a9e5969ee0f54f11bb146bfe888bfe3;p=palacios.git diff --git a/palacios/include/devices/ide.h b/palacios/include/devices/ide.h index 8a68222..88c593e 100644 --- a/palacios/include/devices/ide.h +++ b/palacios/include/devices/ide.h @@ -21,7 +21,12 @@ #define __DEVICES_IDE_H__ #ifdef __V3VEE__ -#include + + +struct ide_cfg { + char pci[32]; + char southbridge[32]; +}; #define ATAPI_BLOCK_SIZE 2048 @@ -33,7 +38,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 +45,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); }; @@ -61,8 +65,6 @@ int v3_ide_register_harddisk(struct vm_device * ide, -struct vm_device * v3_create_ide(); - int v3_ide_get_geometry(struct vm_device * ide_dev, int channel_num, int drive_num,