|
XenevaOS
|
#include <aurora.h>
Go to the source code of this file.
Classes | |
| struct | _au_pmm_stats_ |
| struct | _au_page_desc_ |
Macros | |
| #define | AURORA_PAGE_KERNEL (1ULL<<0) |
| #define | AURORA_PAGE_SHM (1ULL<<1) |
| #define | AURORA_PAGE_DMA (1ULL<<2) |
| #define | AURORA_PAGE_NORMAL (1ULL << 3) |
| #define | PMM_OWNER_KERNEL 0 |
| #define | PMM_INVALID_PHYS UINT64_MAX |
| #define | AuPmmngrAllocPage(type) ((uint64_t)AuPmmngrAlloc()) |
| #define | AuPmmngrAllocPages(pages, alignment, ceiling, type) ((uint64_t)AuPmmngrAllocBlocks((int)(pages))) |
| #define | AuPmmngrReleasePage(physaddr) (AuPmmngrFree((void*)(uint64_t)(physaddr)), true) |
Typedefs | |
| typedef struct _au_pmm_stats_ | AuPmmStats |
| typedef struct _au_page_desc_ | AuPageDesc |
BSD 2-Clause License
Copyright (c) 2022, Manas Kamal Choudhury All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
| #define AuPmmngrAllocPage | ( | type | ) | ((uint64_t)AuPmmngrAlloc()) |
| #define AuPmmngrAllocPages | ( | pages, | |
| alignment, | |||
| ceiling, | |||
| type | |||
| ) | ((uint64_t)AuPmmngrAllocBlocks((int)(pages))) |
| #define AuPmmngrReleasePage | ( | physaddr | ) | (AuPmmngrFree((void*)(uint64_t)(physaddr)), true) |
| #define AURORA_PAGE_DMA (1ULL<<2) |
| #define AURORA_PAGE_KERNEL (1ULL<<0) |
| #define AURORA_PAGE_NORMAL (1ULL << 3) |
| #define AURORA_PAGE_SHM (1ULL<<1) |
| #define PMM_INVALID_PHYS UINT64_MAX |
| #define PMM_OWNER_KERNEL 0 |
| typedef struct _au_page_desc_ AuPageDesc |
| typedef struct _au_pmm_stats_ AuPmmStats |
| AU_EXTERN AU_EXPORT uint64_t AuPmmngrAllocPagesForOwner | ( | uint32_t | pages, |
| uint32_t | alignment_pages, | ||
| uint64_t | max_phys_inclusive, | ||
| uint8_t | page_type, | ||
| int32_t | owner | ||
| ) |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
AuPmmngrMoveHigher – moves the kernel to higher half of memory.
|
extern |
P2V – Physical to Virtual conversion.
| addr | – Address to convert |