int (*bdrv_eject)(BlockDriverState *bs, int eject_flag);
int (*bdrv_set_locked)(BlockDriverState *bs, int locked);
+ /* to control generic scsi devices */
+ int (*bdrv_ioctl)(BlockDriverState *bs, unsigned long int req, void *buf);
+
BlockDriverAIOCB *free_aiocb;
struct BlockDriver *next;
};
int removable; /* if true, the media can be removed */
int locked; /* if true, the media cannot temporarily be ejected */
int encrypted; /* if true, the media is encrypted */
+ int sg; /* if true, the device is a /dev/sg* */
/* event callback when inserting/removing */
void (*change_cb)(void *opaque);
void *change_opaque;
BlockDriver *drv; /* NULL means no media */
void *opaque;
- int boot_sector_enabled;
- uint8_t boot_sector_data[512];
-
char filename[1024];
char backing_file[1024]; /* if non zero, the image is a diff of
this file image */
int type;
char device_name[32];
BlockDriverState *next;
+ void *private;
};
struct BlockDriverAIOCB {
void *opaque);
void qemu_aio_release(void *p);
-BlockDriverState *bdrv_first;
+extern BlockDriverState *bdrv_first;
#endif /* BLOCK_INT_H */