Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
drv.h File Reference
#include <dspbridge/devdefs.h>
#include <linux/idr.h>

Go to the source code of this file.

Data Structures

struct  node_res_object
 
struct  bridge_dma_map_info
 
struct  dmm_map_object
 
struct  dmm_rsv_object
 
struct  strm_res_object
 
struct  drv_data
 
struct  process_context
 

Macros

#define OMAP_GEM_BASE   0x107F8000
 
#define OMAP_DSP_SIZE   0x00720000
 
#define OMAP_DSP_MEM1_BASE   0x5C7F8000
 
#define OMAP_DSP_MEM1_SIZE   0x18000
 
#define OMAP_DSP_MEM2_BASE   0x5CE00000
 
#define OMAP_DSP_MEM2_SIZE   0x8000
 
#define OMAP_DSP_MEM3_BASE   0x5CF04000
 
#define OMAP_DSP_MEM3_SIZE   0x14000
 
#define OMAP_PER_CM_BASE   0x48005000
 
#define OMAP_PER_CM_SIZE   0x1000
 
#define OMAP_PER_PRM_BASE   0x48307000
 
#define OMAP_PER_PRM_SIZE   0x1000
 
#define OMAP_CORE_PRM_BASE   0x48306A00
 
#define OMAP_CORE_PRM_SIZE   0x1000
 
#define OMAP_DMMU_BASE   0x5D000000
 
#define OMAP_DMMU_SIZE   0x1000
 
#define MEM_LINEAR_ADDRESS(phy_addr, byte_size)   phy_addr
 
#define MEM_UNMAP_LINEAR_ADDRESS(base_addr)   {}
 

Enumerations

enum  gpp_proc_res_state { PROC_RES_ALLOCATED, PROC_RES_FREED }
 

Functions

int drv_create (struct drv_object **drv_obj)
 
int drv_destroy (struct drv_object *driver_obj)
 
u32 drv_get_first_dev_object (void)
 
u32 drv_get_first_dev_extension (void)
 
int drv_get_dev_object (u32 index, struct drv_object *hdrv_obj, struct dev_object **device_obj)
 
u32 drv_get_next_dev_object (u32 hdev_obj)
 
u32 drv_get_next_dev_extension (u32 dev_extension)
 
int drv_insert_dev_object (struct drv_object *driver_obj, struct dev_object *hdev_obj)
 
int drv_remove_dev_object (struct drv_object *driver_obj, struct dev_object *hdev_obj)
 
int drv_request_resources (u32 dw_context, u32 *dev_node_strg)
 
int drv_release_resources (u32 dw_context, struct drv_object *hdrv_obj)
 
int drv_request_bridge_res_dsp (void **phost_resources)
 
void mem_ext_phys_pool_init (u32 pool_phys_base, u32 pool_size)
 
void mem_ext_phys_pool_release (void)
 
voidmem_alloc_phys_mem (u32 byte_size, u32 align_mask, u32 *physical_address)
 
void mem_free_phys_mem (void *virtual_address, u32 physical_address, u32 byte_size)
 

Macro Definition Documentation

#define MEM_LINEAR_ADDRESS (   phy_addr,
  byte_size 
)    phy_addr

Definition at line 451 of file drv.h.

#define MEM_UNMAP_LINEAR_ADDRESS (   base_addr)    {}

Definition at line 466 of file drv.h.

#define OMAP_CORE_PRM_BASE   0x48306A00

Definition at line 55 of file drv.h.

#define OMAP_CORE_PRM_SIZE   0x1000

Definition at line 56 of file drv.h.

#define OMAP_DMMU_BASE   0x5D000000

Definition at line 58 of file drv.h.

#define OMAP_DMMU_SIZE   0x1000

Definition at line 59 of file drv.h.

#define OMAP_DSP_MEM1_BASE   0x5C7F8000

Definition at line 38 of file drv.h.

#define OMAP_DSP_MEM1_SIZE   0x18000

Definition at line 39 of file drv.h.

#define OMAP_DSP_MEM2_BASE   0x5CE00000

Definition at line 42 of file drv.h.

#define OMAP_DSP_MEM2_SIZE   0x8000

Definition at line 43 of file drv.h.

#define OMAP_DSP_MEM3_BASE   0x5CF04000

Definition at line 46 of file drv.h.

#define OMAP_DSP_MEM3_SIZE   0x14000

Definition at line 47 of file drv.h.

#define OMAP_DSP_SIZE   0x00720000

Definition at line 35 of file drv.h.

#define OMAP_GEM_BASE   0x107F8000

Definition at line 34 of file drv.h.

#define OMAP_PER_CM_BASE   0x48005000

Definition at line 49 of file drv.h.

#define OMAP_PER_CM_SIZE   0x1000

Definition at line 50 of file drv.h.

#define OMAP_PER_PRM_BASE   0x48307000

Definition at line 52 of file drv.h.

#define OMAP_PER_PRM_SIZE   0x1000

Definition at line 53 of file drv.h.

Enumeration Type Documentation

Enumerator:
PROC_RES_ALLOCATED 
PROC_RES_FREED 

Definition at line 111 of file drv.h.

Function Documentation

int drv_create ( struct drv_object **  drv_obj)

Definition at line 299 of file drv.c.

int drv_destroy ( struct drv_object driver_obj)

Definition at line 338 of file drv.c.

int drv_get_dev_object ( u32  index,
struct drv_object hdrv_obj,
struct dev_object **  device_obj 
)

Definition at line 361 of file drv.c.

u32 drv_get_first_dev_extension ( void  )

Definition at line 412 of file drv.c.

u32 drv_get_first_dev_object ( void  )

Definition at line 389 of file drv.c.

u32 drv_get_next_dev_extension ( u32  dev_extension)

Definition at line 468 of file drv.c.

u32 drv_get_next_dev_object ( u32  hdev_obj)

Definition at line 438 of file drv.c.

int drv_insert_dev_object ( struct drv_object driver_obj,
struct dev_object hdev_obj 
)

Definition at line 495 of file drv.c.

int drv_release_resources ( u32  dw_context,
struct drv_object hdrv_obj 
)

Definition at line 582 of file drv.c.

int drv_remove_dev_object ( struct drv_object driver_obj,
struct dev_object hdev_obj 
)

Definition at line 511 of file drv.c.

int drv_request_bridge_res_dsp ( void **  phost_resources)

drv_request_bridge_res_dsp() - Reserves shared memory for bridge. : pointer to host resources.

Definition at line 643 of file drv.c.

int drv_request_resources ( u32  dw_context,
u32 dev_node_strg 
)

Definition at line 536 of file drv.c.

void* mem_alloc_phys_mem ( u32  byte_size,
u32  align_mask,
u32 physical_address 
)

Definition at line 802 of file drv.c.

void mem_ext_phys_pool_init ( u32  pool_phys_base,
u32  pool_size 
)

Definition at line 726 of file drv.c.

void mem_ext_phys_pool_release ( void  )

Definition at line 745 of file drv.c.

void mem_free_phys_mem ( void virtual_address,
u32  physical_address,
u32  byte_size 
)

Definition at line 828 of file drv.c.