diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-12-24 16:10:43 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-12-24 16:10:43 +0000 |
commit | 985a03b0ce38275c2ea355bf29b6d6b5779dbb56 (patch) | |
tree | 22eac188d157768555e44f33f2eca5be2508c10b /block_int.h | |
parent | 1b0889958e875df85c7b2353498ed2cac16415ce (diff) | |
download | qemu-985a03b0ce38275c2ea355bf29b6d6b5779dbb56.zip qemu-985a03b0ce38275c2ea355bf29b6d6b5779dbb56.tar.gz qemu-985a03b0ce38275c2ea355bf29b6d6b5779dbb56.tar.bz2 |
Real SCSI device passthrough (v4), by Laurent Vivier.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3851 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block_int.h')
-rw-r--r-- | block_int.h | 4 |
1 files changed, 4 insertions, 0 deletions
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; |