My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Macros | Functions | Variables
pagetable.c File Reference
#include <sw_types.h>
#include <mmap.h>
#include <pagetable.h>

Classes

struct  pt_pool_static
 

Macros

#define SW_ERROR   -1;
 

Functions

sw_u64_t ptf_to_mattr (unsigned int)
 
void pt_page_allocator_init (ptp_alloc_t ptpa)
 Initialize ptable page allocator function. More...
 
unsigned long static_pt_page_alloc (void)
 static pool page allocator More...
 
int ptable_block_map (struct ptable *pt, unsigned long va, pa_t pa, unsigned int ptf)
 
int ptable_block_unmap (struct ptable *pt, unsigned long va)
 
int ptable_page_map (struct ptable *pt, unsigned long va, pa_t pa, unsigned int ptf)
 
int ptable_page_unmap (struct ptable *pt, unsigned long va)
 
void ptable_ptf_init ()
 

Variables

struct pt_pool_static ptp_static
 

Macro Definition Documentation

#define SW_ERROR   -1;

Function Documentation

void pt_page_allocator_init ( ptp_alloc_t  ptpa)

Initialize ptable page allocator function.

Parameters
ptpa
int ptable_block_map ( struct ptable pt,
unsigned long  va,
pa_t  pa,
unsigned int  ptf 
)
Parameters
pt
va
pa
ptf
Returns
int ptable_block_unmap ( struct ptable pt,
unsigned long  va 
)
Parameters
pt
va
Returns
int ptable_page_map ( struct ptable pt,
unsigned long  va,
pa_t  pa,
unsigned int  ptf 
)
Parameters
pt
va
pa
ptf
Returns
int ptable_page_unmap ( struct ptable pt,
unsigned long  va 
)
Parameters
pt
va
Returns
void ptable_ptf_init ( void  )
sw_u64_t ptf_to_mattr ( unsigned int  ptf)
Parameters
ptf
Returns
unsigned long static_pt_page_alloc ( void  )

static pool page allocator

Returns

Variable Documentation

struct pt_pool_static ptp_static