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

Classes

struct  dev_va_pool
 

Macros

#define SW_ERROR   -1
 
#define SW_EINVAL   -2
 

Functions

void sw_seterrno (int x)
 
int mmap_block_map_generic (struct ptable *pt, unsigned long va, pa_t pa, unsigned long size, unsigned int ptf)
 
int mmap_block_unmap_generic (struct ptable *pt, unsigned long va, unsigned long size)
 
int mmap_page_map_generic (struct ptable *pt, unsigned long va, pa_t pa, unsigned long size, unsigned int ptf)
 
int mmap_page_unmap_generic (struct ptable *pt, unsigned long va, unsigned long size)
 
void dev_va_pool_init (unsigned long start, unsigned long end)
 
unsigned long dev_va_alloc (unsigned long size)
 

Macro Definition Documentation

#define SW_EINVAL   -2
#define SW_ERROR   -1

Function Documentation

unsigned long dev_va_alloc ( unsigned long  size)
Parameters
size
Returns
void dev_va_pool_init ( unsigned long  start,
unsigned long  end 
)
Parameters
start
end
int mmap_block_map_generic ( struct ptable pt,
unsigned long  va,
pa_t  pa,
unsigned long  size,
unsigned int  ptf 
)
Parameters
pt
va
pa
size
ptf
Returns
int mmap_block_unmap_generic ( struct ptable pt,
unsigned long  va,
unsigned long  size 
)
Parameters
pt
va
size
Returns
int mmap_page_map_generic ( struct ptable pt,
unsigned long  va,
pa_t  pa,
unsigned long  size,
unsigned int  ptf 
)
Parameters
pt
va
pa
size
ptf
Returns
int mmap_page_unmap_generic ( struct ptable pt,
unsigned long  va,
unsigned long  size 
)
Parameters
pt
va
size
Returns
void sw_seterrno ( int  x)