Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / include / linux / bsg.h
blobee2df73edf83f8e1925bf50f9f1c0403bd51ba14
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_BSG_H
3 #define _LINUX_BSG_H
5 #include <uapi/linux/bsg.h>
7 struct bsg_device;
8 struct device;
9 struct request_queue;
11 typedef int (bsg_sg_io_fn)(struct request_queue *, struct sg_io_v4 *hdr,
12 bool open_for_write, unsigned int timeout);
14 struct bsg_device *bsg_register_queue(struct request_queue *q,
15 struct device *parent, const char *name,
16 bsg_sg_io_fn *sg_io_fn);
17 void bsg_unregister_queue(struct bsg_device *bcd);
19 #endif /* _LINUX_BSG_H */