struct sense_info_t sense;
struct atapi_t atapi;
++
+ /* JRL */
+ void * private_data;
+
Bit8u model_no[41];
};
#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
* redistribute, and modify it as specified in the file "V3VEE_LICENSE".
*/
++
#include <devices/cdrom.h>
+ #include <devices/ide.h>
#include <palacios/vmm.h>
- #ifdef DEBUG_RAMDISK
- #define Ramdisk_Print_CD(_f, _a...) PrintTrace("cdrom.c(%d) "_f, __LINE__, ## _a)
- #else
- #define Ramdisk_Print_CD(_f, _a...)
+ #ifndef DEBUG_RAMDISK
+ #undef PrintDebug
+ #define PrintDebug(fmt, args...)
#endif