diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2007-07-09 06:38:05 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2007-07-16 02:52:44 -0400 |
commit | 3d6392cfbd7dc11f23058e3493683afab4ac13a3 (patch) | |
tree | 70c2b65c479f5feb7a5214a4a4930d489a069b1f /include/linux/bsg.h | |
parent | 8f41958bdd577731f7411c9605cfaa9db6766809 (diff) |
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 000000000000..dc0d7282c4cb --- /dev/null +++ b/include/linux/bsg.h | |||
@@ -0,0 +1,21 @@ | |||
1 | #ifndef BSG_H | ||
2 | #define BSG_H | ||
3 | |||
4 | #if defined(CONFIG_BLK_DEV_BSG) | ||
5 | struct bsg_class_device { | ||
6 | struct class_device *class_dev; | ||
7 | struct device *dev; | ||
8 | int minor; | ||
9 | struct gendisk *disk; | ||
10 | struct list_head list; | ||
11 | }; | ||
12 | |||
13 | extern int bsg_register_disk(struct gendisk *); | ||
14 | extern void bsg_unregister_disk(struct gendisk *); | ||
15 | #else | ||
16 | struct bsg_class_device { }; | ||
17 | #define bsg_register_disk(disk) (0) | ||
18 | #define bsg_unregister_disk(disk) do { } while (0) | ||
19 | #endif | ||
20 | |||
21 | #endif | ||