summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-07-13 17:37:05 -0400
committerIan Moffett <ian@osmora.org>2024-07-13 17:37:05 -0400
commit06f3138dc919df83cbacb880fb68d63698977e44 (patch)
tree37f4b1a37efef70b95a7986d21855545ef5c73a2 /sys/include
parent73a87562abbe8b1c0d49567d8f314193c2410768 (diff)
kernel: dev: Support bdevsw
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/device.h4
1 files changed, 4 insertions, 0 deletions
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);