]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - include/linux/bsg.h
bsg: support for full generic block layer SG v3
[mirror_ubuntu-artful-kernel.git] / include / linux / bsg.h
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