diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2007-07-09 12:38:05 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2007-07-16 08:52:44 +0200 |
commit | 3d6392cfbd7dc11f23058e3493683afab4ac13a3 (patch) | |
tree | 70c2b65c479f5feb7a5214a4a4930d489a069b1f /include/linux/bsg.h | |
parent | 8f41958bdd577731f7411c9605cfaa9db6766809 (diff) | |
download | op-kernel-dev-3d6392cfbd7dc11f23058e3493683afab4ac13a3.zip op-kernel-dev-3d6392cfbd7dc11f23058e3493683afab4ac13a3.tar.gz |
bsg: support for full generic block layer SG v3
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include/linux/bsg.h')
-rw-r--r-- | include/linux/bsg.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/bsg.h b/include/linux/bsg.h new file mode 100644 index 0000000..dc0d728 --- /dev/null +++ b/include/linux/bsg.h @@ -0,0 +1,21 @@ +#ifndef BSG_H +#define BSG_H + +#if defined(CONFIG_BLK_DEV_BSG) +struct bsg_class_device { + struct class_device *class_dev; + struct device *dev; + int minor; + struct gendisk *disk; + struct list_head list; +}; + +extern int bsg_register_disk(struct gendisk *); +extern void bsg_unregister_disk(struct gendisk *); +#else +struct bsg_class_device { }; +#define bsg_register_disk(disk) (0) +#define bsg_unregister_disk(disk) do { } while (0) +#endif + +#endif |