Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
dmm.c File Reference
#include <linux/types.h>
#include <dspbridge/host_os.h>
#include <dspbridge/dbdefs.h>
#include <dspbridge/sync.h>
#include <dspbridge/dev.h>
#include <dspbridge/proc.h>
#include <dspbridge/dmm.h>

Go to the source code of this file.

Data Structures

struct  dmm_object
 
struct  map_page
 

Macros

#define DMM_ADDR_VIRTUAL(a)
 
#define DMM_ADDR_TO_INDEX(a)   (((a) - dyn_mem_map_beg) / PG_SIZE4K)
 

Functions

int dmm_create_tables (struct dmm_object *dmm_mgr, u32 addr, u32 size)
 
int dmm_create (struct dmm_object **dmm_manager, struct dev_object *hdev_obj, const struct dmm_mgrattrs *mgr_attrts)
 
int dmm_destroy (struct dmm_object *dmm_mgr)
 
int dmm_delete_tables (struct dmm_object *dmm_mgr)
 
int dmm_get_handle (void *hprocessor, struct dmm_object **dmm_manager)
 
int dmm_map_memory (struct dmm_object *dmm_mgr, u32 addr, u32 size)
 
int dmm_reserve_memory (struct dmm_object *dmm_mgr, u32 size, u32 *prsv_addr)
 
int dmm_un_map_memory (struct dmm_object *dmm_mgr, u32 addr, u32 *psize)
 
int dmm_un_reserve_memory (struct dmm_object *dmm_mgr, u32 rsv_addr)
 

Macro Definition Documentation

#define DMM_ADDR_TO_INDEX (   a)    (((a) - dyn_mem_map_beg) / PG_SIZE4K)

Definition at line 45 of file dmm.c.

#define DMM_ADDR_VIRTUAL (   a)
Value:
(((struct map_page *)(a) - virtual_mapping_table) * PG_SIZE4K +\
dyn_mem_map_beg)

Definition at line 42 of file dmm.c.

Function Documentation

int dmm_create ( struct dmm_object **  dmm_manager,
struct dev_object hdev_obj,
const struct dmm_mgrattrs mgr_attrts 
)

Definition at line 115 of file dmm.c.

int dmm_create_tables ( struct dmm_object dmm_mgr,
u32  addr,
u32  size 
)

Definition at line 80 of file dmm.c.

int dmm_delete_tables ( struct dmm_object dmm_mgr)

Definition at line 160 of file dmm.c.

int dmm_destroy ( struct dmm_object dmm_mgr)

Definition at line 140 of file dmm.c.

int dmm_get_handle ( void hprocessor,
struct dmm_object **  dmm_manager 
)

Definition at line 178 of file dmm.c.

int dmm_map_memory ( struct dmm_object dmm_mgr,
u32  addr,
u32  size 
)

Definition at line 202 of file dmm.c.

int dmm_reserve_memory ( struct dmm_object dmm_mgr,
u32  size,
u32 prsv_addr 
)

Definition at line 231 of file dmm.c.

int dmm_un_map_memory ( struct dmm_object dmm_mgr,
u32  addr,
u32 psize 
)

Definition at line 283 of file dmm.c.

int dmm_un_reserve_memory ( struct dmm_object dmm_mgr,
u32  rsv_addr 
)

Definition at line 313 of file dmm.c.