From 06f3138dc919df83cbacb880fb68d63698977e44 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 13 Jul 2024 17:37:05 -0400 Subject: kernel: dev: Support bdevsw Signed-off-by: Ian Moffett --- sys/include/sys/device.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/include') diff --git a/sys/include/sys/device.h b/sys/include/sys/device.h index 3ba7141..edf83ae 100644 --- a/sys/include/sys/device.h +++ b/sys/include/sys/device.h @@ -44,6 +44,10 @@ struct cdevsw { int(*read)(dev_t dev, struct sio_txn *sio, int flags); }; +struct bdevsw { + int(*read)(dev_t dev, struct sio_txn *sio, int flags); +}; + void *dev_get(devmajor_t major, dev_t dev); dev_t dev_alloc(devmajor_t major); -- cgit v1.2.3