aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/dev/vesa.c
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2015-03-10 16:28:38 +0100
committerAlex Auvolat <alex@adnab.me>2015-03-10 16:28:38 +0100
commit0c710141bbb9bd62617d981a3dbaed1b8775fded (patch)
tree0094294fc5b6182bada5db8e5a64cd3a52e872e2 /src/kernel/dev/vesa.c
parent48c1c4dcc449d05e9950a861e165f456e0d583a1 (diff)
downloadkogata-0c710141bbb9bd62617d981a3dbaed1b8775fded.tar.gz
kogata-0c710141bbb9bd62617d981a3dbaed1b8775fded.zip
Add simple shared memory facility to IPC (no syscall yet)
Diffstat (limited to 'src/kernel/dev/vesa.c')
-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
}