aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/dev
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/dev')
-rw-r--r--src/kernel/dev/vesa.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/kernel/dev/vesa.c b/src/kernel/dev/vesa.c
index 2a7b876..645a649 100644
--- a/src/kernel/dev/vesa.c
+++ b/src/kernel/dev/vesa.c
@@ -215,8 +215,6 @@ typedef struct {
// ---- VESA code
bool vesa_open(fs_node_ptr n, int mode);
-size_t vesa_read(fs_handle_t *f, size_t offset, size_t len, char* buf);
-size_t vesa_write(fs_handle_t *f, size_t offset, size_t len, const char* buf);
void vesa_close(fs_handle_t *f);
int vesa_ioctl(fs_node_ptr n, int command, void* data);
bool vesa_stat(fs_node_ptr n, stat_t *st);
@@ -227,8 +225,8 @@ bool vesa_set_mode(vesa_driver_t *d, int n);
fs_node_ops_t vesa_fs_ops = {
.open = vesa_open,
- .read = vesa_read,
- .write = vesa_write,
+ .read = fs_read_from_pager,
+ .write = fs_write_to_pager,
.close = vesa_close,
.ioctl = vesa_ioctl,
.stat = vesa_stat,
@@ -363,18 +361,6 @@ bool vesa_open(fs_node_ptr n, int mode) {
return true;
}
-size_t vesa_read(fs_handle_t *f, size_t offset, size_t len, char* buf) {
- vesa_driver_t *d = (vesa_driver_t*)f->node->data;
-
- return pager_read(d->pager, offset, len, buf);
-}
-
-size_t vesa_write(fs_handle_t *f, size_t offset, size_t len, const char* buf) {
- vesa_driver_t *d = (vesa_driver_t*)f->node->data;
-
- return pager_write(d->pager, offset, len, buf);
-}
-
void vesa_close(fs_handle_t *f) {
// nothing to do
}