X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Finclude%2Fdevices%2Fide.h;fp=palacios%2Finclude%2Fdevices%2Fide.h;h=e529f931a2b577272871070fd0ad36842c34b9c3;hp=dd1b4b2d51860e16e8433a14641c51bfca8dde10;hb=6593ee3c311ec87304c7bed52a9e6034338679fb;hpb=f2ca95fb9b02995a2826fee0d5559a9739f390f2 diff --git a/palacios/include/devices/ide.h b/palacios/include/devices/ide.h index dd1b4b2..e529f93 100644 --- a/palacios/include/devices/ide.h +++ b/palacios/include/devices/ide.h @@ -132,7 +132,7 @@ struct cdrom_t { rd_bool ready; rd_bool locked; - struct cdrom_interface * cd; + struct cdrom_ops * cd; uint32_t capacity; int next_lba; @@ -204,6 +204,9 @@ struct drive_t { struct sense_info_t sense; struct atapi_t atapi; + /* JRL */ + void * private_data; + Bit8u model_no[41]; }; @@ -239,3 +242,29 @@ struct ramdisk_t { #endif +#if 0 + +// FLAT MODE +// Open a image. Returns non-negative if successful. +//int open (const char* pathname); + +// Open an image with specific flags. Returns non-negative if successful. +int rd_open (const char* pathname, int flags); + +// Close the image. +void rd_close (); + +// Position ourselves. Return the resulting offset from the +// beginning of the file. +off_t rd_lseek (off_t offset, int whence); + +// Read count bytes to the buffer buf. Return the number of +// bytes read (count). +ssize_t rd_read (void* buf, size_t count); + +// Write count bytes from buf. Return the number of bytes +// written (count). +ssize_t rd_write (const void* buf, size_t count); + + +#endif