2017-11-01 15:07:57 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2018-03-13 17:28:41 +01:00
|
|
|
#ifndef _LINUX_BSG_H
|
|
|
|
|
#define _LINUX_BSG_H
|
2007-07-09 12:38:05 +02:00
|
|
|
|
2012-10-13 10:46:48 +01:00
|
|
|
#include <uapi/linux/bsg.h>
|
2009-03-09 10:51:38 -04:00
|
|
|
|
2021-07-29 08:48:42 +02:00
|
|
|
struct bsg_device;
|
|
|
|
|
struct device;
|
2021-07-24 09:20:23 +02:00
|
|
|
struct request_queue;
|
2018-03-13 17:28:41 +01:00
|
|
|
|
2021-07-29 08:48:45 +02:00
|
|
|
typedef int (bsg_sg_io_fn)(struct request_queue *, struct sg_io_v4 *hdr,
|
|
|
|
|
fmode_t mode, unsigned int timeout);
|
2006-12-20 11:19:32 +01:00
|
|
|
|
2021-07-29 08:48:42 +02:00
|
|
|
struct bsg_device *bsg_register_queue(struct request_queue *q,
|
|
|
|
|
struct device *parent, const char *name,
|
2021-07-29 08:48:45 +02:00
|
|
|
bsg_sg_io_fn *sg_io_fn);
|
2021-07-29 08:48:42 +02:00
|
|
|
void bsg_unregister_queue(struct bsg_device *bcd);
|
2007-07-09 12:38:05 +02:00
|
|
|
|
2018-03-13 17:28:41 +01:00
|
|
|
#endif /* _LINUX_BSG_H */
|