diff options
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 | ||