|
Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
|
Go to the source code of this file.
Data Structures | |
| struct | __attribute__ |
Typedefs | |
| typedef int | mem_physwindow_status_t |
| typedef int | mem_physwindow_flag_t |
Enumerations | |
| enum | { PHYS_WINDOW_STATUS_OK = 0 , PHYS_WINDOW_STATUS_ERROR = -1 , PHYS_WINDOW_STATUS_NOT_FOUND = -2 } |
| enum | { PHYS_WINDOW_FLAG_READ = 0x1 , PHYS_WINDOW_FLAG_WRITE = 0x2 , PHYS_WINDOW_FLAG_LOCK = 0x20 } |
Functions | |
| mem_physwindow_status_t | mem_create_physwindow (uintptr_t phys_addr, uintptr_t *virt_addr, mem_physwindow_flag_t flag) |
| mem_physwindow_status_t | mem_release_physwindow (uintptr_t virt_addr) |
| mem_physwindow_t * | mem_resolve_physwindow (uintptr_t virt_addr) |
| resolve a physical memory window by virtual address | |
| typedef int mem_physwindow_flag_t |
Definition at line 14 of file phys_window.h.
| typedef int mem_physwindow_status_t |
Definition at line 7 of file phys_window.h.
| anonymous enum |
| Enumerator | |
|---|---|
| PHYS_WINDOW_STATUS_OK | |
| PHYS_WINDOW_STATUS_ERROR | |
| PHYS_WINDOW_STATUS_NOT_FOUND | |
Definition at line 8 of file phys_window.h.
| anonymous enum |
| Enumerator | |
|---|---|
| PHYS_WINDOW_FLAG_READ | |
| PHYS_WINDOW_FLAG_WRITE | |
| PHYS_WINDOW_FLAG_LOCK | |
Definition at line 15 of file phys_window.h.
| mem_physwindow_status_t mem_create_physwindow | ( | uintptr_t | phys_addr, |
| uintptr_t * | virt_addr, | ||
| mem_physwindow_flag_t | flag ) |
Definition at line 28 of file phys_window.c.
References lock, mem_vma_phys_window_start, paging_get_highest_page_map(), paging_physwindow_mmap(), phys_addr, PHYS_WINDOW_FLAG_LOCK, PHYS_WINDOW_FLAG_READ, PHYS_WINDOW_FLAG_WRITE, PHYS_WINDOW_STATUS_NOT_FOUND, PHYS_WINDOW_STATUS_OK, physical_memory_windows, and serial_trace.
Referenced by paging_create_page_directory(), paging_debug(), paging_setup(), paging_unmap_page(), and vxMmap().
| mem_physwindow_status_t mem_release_physwindow | ( | uintptr_t | virt_addr | ) |
Definition at line 60 of file phys_window.c.
References PHYS_WINDOW_STATUS_NOT_FOUND, PHYS_WINDOW_STATUS_OK, physical_memory_windows, and serial_trace.
Referenced by paging_debug(), paging_setup(), paging_unmap_page(), and vxMmap().
| mem_physwindow_t * mem_resolve_physwindow | ( | uintptr_t | virt_addr | ) |
resolve a physical memory window by virtual address
| virt_addr | the virtual address of the physical memory window |
Definition at line 18 of file phys_window.c.
References physical_memory_windows.