git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: (vfs) write_page and read_page file operations
[lunaix-os.git]
/
lunaix-os
/
kernel
/
device
/
input.c
diff --git
a/lunaix-os/kernel/device/input.c
b/lunaix-os/kernel/device/input.c
index 5ddf6a4ce3cc0067b58e2a31aa1630b3e33c9d94..a96cb007f29e0e129c9d15cd0d427706fc5502a2 100644
(file)
--- a/
lunaix-os/kernel/device/input.c
+++ b/
lunaix-os/kernel/device/input.c
@@
-62,6
+62,12
@@
__input_dev_read(struct device* dev, void* buf, size_t offset, size_t len)
return sizeof(struct input_evt_pkt);
}
return sizeof(struct input_evt_pkt);
}
+int
+__input_dev_read_pg(struct device* dev, void* buf, size_t offset)
+{
+ return __input_dev_read(dev, buf, offset, PG_SIZE);
+}
+
struct input_device*
input_add_device(char* name_fmt, ...)
{
struct input_device*
input_add_device(char* name_fmt, ...)
{
@@
-78,6
+84,7
@@
input_add_device(char* name_fmt, ...)
idev->dev_if = dev;
dev->read = __input_dev_read;
idev->dev_if = dev;
dev->read = __input_dev_read;
+ dev->read_page = __input_dev_read_pg;
va_end(args);
va_end(args);