From 985a03b0ce38275c2ea355bf29b6d6b5779dbb56 Mon Sep 17 00:00:00 2001 From: ths Date: Mon, 24 Dec 2007 16:10:43 +0000 Subject: Real SCSI device passthrough (v4), by Laurent Vivier. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3851 c046a42c-6fe2-441c-8c8c-71466251a162 --- block_int.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'block_int.h') diff --git a/block_int.h b/block_int.h index 9463ea3..137000e 100644 --- a/block_int.h +++ b/block_int.h @@ -82,6 +82,9 @@ struct BlockDriver { 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; }; @@ -93,6 +96,7 @@ struct BlockDriverState { 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; -- cgit v1.1