]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
17cb960f CH |
2 | #ifndef _LINUX_BSG_H |
3 | #define _LINUX_BSG_H | |
3d6392cf | 4 | |
607ca46e | 5 | #include <uapi/linux/bsg.h> |
4ab3b73f | 6 | |
ead09dd3 CH |
7 | struct bsg_device; |
8 | struct device; | |
78011042 | 9 | struct request_queue; |
17cb960f | 10 | |
75ca5640 CH |
11 | typedef int (bsg_sg_io_fn)(struct request_queue *, struct sg_io_v4 *hdr, |
12 | fmode_t mode, unsigned int timeout); | |
45977d0e | 13 | |
ead09dd3 CH |
14 | struct bsg_device *bsg_register_queue(struct request_queue *q, |
15 | struct device *parent, const char *name, | |
75ca5640 | 16 | bsg_sg_io_fn *sg_io_fn); |
ead09dd3 | 17 | void bsg_unregister_queue(struct bsg_device *bcd); |
3d6392cf | 18 | |
17cb960f | 19 | #endif /* _LINUX_BSG_H */ |