Blame view

kernel/linux-imx6_3.14.28/include/linux/bsg.h 734 Bytes
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  #ifndef BSG_H
  #define BSG_H
  
  #include <uapi/linux/bsg.h>
  
  
  #if defined(CONFIG_BLK_DEV_BSG)
  struct bsg_class_device {
  	struct device *class_dev;
  	struct device *parent;
  	int minor;
  	struct request_queue *queue;
  	struct kref ref;
  	void (*release)(struct device *);
  };
  
  extern int bsg_register_queue(struct request_queue *q,
  			      struct device *parent, const char *name,
  			      void (*release)(struct device *));
  extern void bsg_unregister_queue(struct request_queue *);
  #else
  static inline int bsg_register_queue(struct request_queue *q,
  				     struct device *parent, const char *name,
  				     void (*release)(struct device *))
  {
  	return 0;
  }
  static inline void bsg_unregister_queue(struct request_queue *q)
  {
  }
  #endif
  
  #endif