Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
mem_user.h File Reference

Go to the source code of this file.

Data Structures

struct  iomem_region
 

Macros

#define ROUND_4M(n)   ((((unsigned long) (n)) + (1 << 22)) & ~((1 << 22) - 1))
 

Functions

int init_mem_user (void)
 
void setup_memory (void *entry)
 
unsigned long find_iomem (char *driver, unsigned long *len_out)
 
int init_maps (unsigned long physmem, unsigned long iomem, unsigned long highmem)
 
unsigned long get_vm (unsigned long len)
 
void setup_physmem (unsigned long start, unsigned long usable, unsigned long len, unsigned long long highmem)
 
void add_iomem (char *name, int fd, unsigned long size)
 
unsigned long phys_offset (unsigned long phys)
 
void map_memory (unsigned long virt, unsigned long phys, unsigned long len, int r, int w, int x)
 

Variables

struct iomem_regioniomem_regions
 
int iomem_size
 

Macro Definition Documentation

#define ROUND_4M (   n)    ((((unsigned long) (n)) + (1 << 22)) & ~((1 << 22) - 1))

Definition at line 47 of file mem_user.h.

Function Documentation

void add_iomem ( char name,
int  fd,
unsigned long  size 
)
unsigned long find_iomem ( char driver,
unsigned long len_out 
)

Definition at line 174 of file physmem.c.

unsigned long get_vm ( unsigned long  len)
int init_maps ( unsigned long  physmem,
unsigned long  iomem,
unsigned long  highmem 
)

Definition at line 25 of file physmem.c.

int init_mem_user ( void  )
void map_memory ( unsigned long  virt,
unsigned long  phys,
unsigned long  len,
int  r,
int  w,
int  x 
)

Definition at line 60 of file physmem.c.

unsigned long phys_offset ( unsigned long  phys)
void setup_memory ( void entry)

Definition at line 252 of file numa.c.

void setup_physmem ( unsigned long  start,
unsigned long  usable,
unsigned long  len,
unsigned long long  highmem 
)

Definition at line 80 of file physmem.c.

Variable Documentation

struct iomem_region* iomem_regions

Definition at line 169 of file physmem.c.

int iomem_size

Definition at line 172 of file physmem.c.