diff options
author | Alex Auvolat <alex@adnab.me> | 2015-03-09 23:34:46 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2015-03-09 23:34:46 +0100 |
commit | 011d99fc5f90b1e2b51f7b96688bdcbbb944e104 (patch) | |
tree | 20a2a03ef168a09185b77fbea04adfeefc1d99bf /src/kernel/include | |
parent | e499d74b6f0b57f9a11486c346dbc335e4f8433d (diff) | |
download | kogata-011d99fc5f90b1e2b51f7b96688bdcbbb944e104.tar.gz kogata-011d99fc5f90b1e2b51f7b96688bdcbbb944e104.zip |
VESA mode setting ; displays kogata logo!
Diffstat (limited to 'src/kernel/include')
-rw-r--r-- | src/kernel/include/pager.h | 6 | ||||
-rw-r--r-- | src/kernel/include/vfs.h | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/kernel/include/pager.h b/src/kernel/include/pager.h index 7f93b8c..03e5da4 100644 --- a/src/kernel/include/pager.h +++ b/src/kernel/include/pager.h @@ -37,7 +37,7 @@ typedef struct pager { vfs_pager_ops_t *ops; } vfs_pager; struct { - size_t phys_offset; + void* phys_offset; } device_pager; }; @@ -51,7 +51,9 @@ typedef struct pager { pager_t* new_swap_pager(size_t size); pager_t* new_vfs_pager(size_t size, fs_node_t* vfs_node, vfs_pager_ops_t *vfs_ops); -pager_t* new_device_pager(size_t size, size_t phys_offset); +pager_t* new_device_pager(size_t size, void* phys_offset); + +void change_device_pager(pager_t *p, size_t new_size, void* new_phys_offset); void delete_pager(pager_t *p); diff --git a/src/kernel/include/vfs.h b/src/kernel/include/vfs.h index 2d50c9a..3d225c5 100644 --- a/src/kernel/include/vfs.h +++ b/src/kernel/include/vfs.h @@ -88,11 +88,11 @@ typedef struct fs_node_ops { void (*close)(fs_handle_t *f); bool (*stat)(fs_node_ptr n, stat_t *st); - int (*ioctl)(fs_node_ptr f, int command, void* data); + int (*ioctl)(fs_node_ptr n, int command, void* data); bool (*walk)(fs_node_t *n, const char* file, struct fs_node *node_d); bool (*delete)(fs_node_ptr n, const char* file); - bool (*move)(fs_node_ptr dir, const char* old_name, struct fs_node *new_parent, const char *new_name); + bool (*move)(fs_node_ptr n, const char* old_name, struct fs_node *new_parent, const char *new_name); bool (*create)(fs_node_ptr n, const char* name, int type); // create sub-node in directory void (*dispose)(fs_node_t *n); } fs_node_ops_t; |