Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
pat.h File Reference
#include <linux/types.h>
#include <asm/pgtable_types.h>

Go to the source code of this file.

Functions

void pat_init (void)
 
int reserve_memtype (u64 start, u64 end, unsigned long req_type, unsigned long *ret_type)
 
int free_memtype (u64 start, u64 end)
 
int kernel_map_sync_memtype (u64 base, unsigned long size, unsigned long flag)
 
int io_reserve_memtype (resource_size_t start, resource_size_t end, unsigned long *type)
 
void io_free_memtype (resource_size_t start, resource_size_t end)
 

Function Documentation

int free_memtype ( u64  start,
u64  end 
)

Definition at line 350 of file pat.c.

void io_free_memtype ( resource_size_t  start,
resource_size_t  end 
)

io_free_memtype - Release a memory type mapping for a region of memory : start (physical address) of the region : end (physical address) of the region

Definition at line 479 of file pat.c.

int io_reserve_memtype ( resource_size_t  start,
resource_size_t  end,
unsigned long type 
)

io_reserve_memtype - Request a memory type mapping for a region of memory : start (physical address) of the region : end (physical address) of the region : A pointer to memtype, with requested type. On success, requested or any other compatible type that was available for the region is returned

On success, returns 0 On failure, returns non-zero

Definition at line 444 of file pat.c.

int kernel_map_sync_memtype ( u64  base,
unsigned long  size,
unsigned long  flag 
)

Definition at line 559 of file pat.c.

void pat_init ( void  )

Definition at line 80 of file pat.c.

int reserve_memtype ( u64  start,
u64  end,
unsigned long  req_type,
unsigned long ret_type 
)

Definition at line 271 of file pat.c.