Merge tag 'renesas-boards-for-v3.13' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6.git] / include / linux / bsg.h
blob7173f6e9d2dd55fbcba32070b15194f8538b9b1c
1 #ifndef BSG_H
2 #define BSG_H
4 #include <uapi/linux/bsg.h>
7 #if defined(CONFIG_BLK_DEV_BSG)
8 struct bsg_class_device {
9 struct device *class_dev;
10 struct device *parent;
11 int minor;
12 struct request_queue *queue;
13 struct kref ref;
14 void (*release)(struct device *);
17 extern int bsg_register_queue(struct request_queue *q,
18 struct device *parent, const char *name,
19 void (*release)(struct device *));
20 extern void bsg_unregister_queue(struct request_queue *);
21 #else
22 static inline int bsg_register_queue(struct request_queue *q,
23 struct device *parent, const char *name,
24 void (*release)(struct device *))
26 return 0;
28 static inline void bsg_unregister_queue(struct request_queue *q)
31 #endif
33 #endif