Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
dspapi.c File Reference
#include <linux/types.h>
#include <dspbridge/host_os.h>
#include <dspbridge/dbdefs.h>
#include <dspbridge/ntfy.h>
#include <dspbridge/chnl.h>
#include <dspbridge/dev.h>
#include <dspbridge/drv.h>
#include <dspbridge/proc.h>
#include <dspbridge/strm.h>
#include <dspbridge/disp.h>
#include <dspbridge/mgr.h>
#include <dspbridge/node.h>
#include <dspbridge/rmm.h>
#include <dspbridge/msg.h>
#include <dspbridge/cmm.h>
#include <dspbridge/io.h>
#include <dspbridge/dspapi.h>
#include <dspbridge/dbdcd.h>
#include <dspbridge/resourcecleanup.h>

Go to the source code of this file.

Data Structures

struct  api_cmd
 

Macros

#define MAX_TRACEBUFLEN   255
 
#define MAX_LOADARGS   16
 
#define MAX_NODES   64
 
#define MAX_STREAMS   16
 
#define MAX_BUFS   64
 
#define DB_GET_IOC_TABLE(cmd)   (DB_GET_MODULE(cmd) >> DB_MODULE_SHIFT)
 
#define CP_FM_USR(to, from, err, n)   _cp_fm_usr(to, from, &(err), (n) * sizeof(*(to)))
 
#define CP_TO_USR(to, from, err, n)   _cp_to_usr(to, from, &(err), (n) * sizeof(*(from)))
 
#define WRAP_MAP2CALLER(x)   x
 

Functions

int api_call_dev_ioctl (u32 cmd, union trapped_args *args, u32 *result, void *pr_ctxt)
 
void api_exit (void)
 
bool api_init (void)
 
int api_init_complete2 (void)
 
u32 mgrwrap_enum_node_info (union trapped_args *args, void *pr_ctxt)
 
u32 mgrwrap_enum_proc_info (union trapped_args *args, void *pr_ctxt)
 
u32 mgrwrap_register_object (union trapped_args *args, void *pr_ctxt)
 
u32 mgrwrap_unregister_object (union trapped_args *args, void *pr_ctxt)
 
u32 mgrwrap_wait_for_bridge_events (union trapped_args *args, void *pr_ctxt)
 
u32 __deprecated mgrwrap_get_process_resources_info (union trapped_args *args, void *pr_ctxt)
 
u32 procwrap_attach (union trapped_args *args, void *pr_ctxt)
 
u32 procwrap_ctrl (union trapped_args *args, void *pr_ctxt)
 
u32 __deprecated procwrap_detach (union trapped_args *args, void *pr_ctxt)
 
u32 procwrap_enum_node_info (union trapped_args *args, void *pr_ctxt)
 
u32 procwrap_end_dma (union trapped_args *args, void *pr_ctxt)
 
u32 procwrap_begin_dma (union trapped_args *args, void *pr_ctxt)
 
u32 procwrap_flush_memory (union trapped_args *args, void *pr_ctxt)
 
u32 procwrap_invalidate_memory (union trapped_args *args, void *pr_ctxt)
 
u32 procwrap_enum_resources (union trapped_args *args, void *pr_ctxt)
 
u32 procwrap_get_state (union trapped_args *args, void *pr_ctxt)
 
u32 procwrap_get_trace (union trapped_args *args, void *pr_ctxt)
 
u32 procwrap_load (union trapped_args *args, void *pr_ctxt)
 
u32 procwrap_map (union trapped_args *args, void *pr_ctxt)
 
u32 procwrap_register_notify (union trapped_args *args, void *pr_ctxt)
 
u32 procwrap_reserve_memory (union trapped_args *args, void *pr_ctxt)
 
u32 procwrap_start (union trapped_args *args, void *pr_ctxt)
 
u32 procwrap_un_map (union trapped_args *args, void *pr_ctxt)
 
u32 procwrap_un_reserve_memory (union trapped_args *args, void *pr_ctxt)
 
u32 procwrap_stop (union trapped_args *args, void *pr_ctxt)
 
void find_node_handle (struct node_res_object **noderes, void *pr_ctxt, void *hnode)
 
u32 nodewrap_allocate (union trapped_args *args, void *pr_ctxt)
 
u32 nodewrap_alloc_msg_buf (union trapped_args *args, void *pr_ctxt)
 
u32 nodewrap_change_priority (union trapped_args *args, void *pr_ctxt)
 
u32 nodewrap_connect (union trapped_args *args, void *pr_ctxt)
 
u32 nodewrap_create (union trapped_args *args, void *pr_ctxt)
 
u32 nodewrap_delete (union trapped_args *args, void *pr_ctxt)
 
u32 nodewrap_free_msg_buf (union trapped_args *args, void *pr_ctxt)
 
u32 nodewrap_get_attr (union trapped_args *args, void *pr_ctxt)
 
u32 nodewrap_get_message (union trapped_args *args, void *pr_ctxt)
 
u32 nodewrap_pause (union trapped_args *args, void *pr_ctxt)
 
u32 nodewrap_put_message (union trapped_args *args, void *pr_ctxt)
 
u32 nodewrap_register_notify (union trapped_args *args, void *pr_ctxt)
 
u32 nodewrap_run (union trapped_args *args, void *pr_ctxt)
 
u32 nodewrap_terminate (union trapped_args *args, void *pr_ctxt)
 
u32 nodewrap_get_uuid_props (union trapped_args *args, void *pr_ctxt)
 
void find_strm_handle (struct strm_res_object **strmres, void *pr_ctxt, void *hstream)
 
u32 strmwrap_allocate_buffer (union trapped_args *args, void *pr_ctxt)
 
u32 strmwrap_close (union trapped_args *args, void *pr_ctxt)
 
u32 strmwrap_free_buffer (union trapped_args *args, void *pr_ctxt)
 
u32 __deprecated strmwrap_get_event_handle (union trapped_args *args, void *pr_ctxt)
 
u32 strmwrap_get_info (union trapped_args *args, void *pr_ctxt)
 
u32 strmwrap_idle (union trapped_args *args, void *pr_ctxt)
 
u32 strmwrap_issue (union trapped_args *args, void *pr_ctxt)
 
u32 strmwrap_open (union trapped_args *args, void *pr_ctxt)
 
u32 strmwrap_reclaim (union trapped_args *args, void *pr_ctxt)
 
u32 strmwrap_register_notify (union trapped_args *args, void *pr_ctxt)
 
u32 strmwrap_select (union trapped_args *args, void *pr_ctxt)
 
u32 __deprecated cmmwrap_calloc_buf (union trapped_args *args, void *pr_ctxt)
 
u32 __deprecated cmmwrap_free_buf (union trapped_args *args, void *pr_ctxt)
 
u32 cmmwrap_get_handle (union trapped_args *args, void *pr_ctxt)
 
u32 cmmwrap_get_info (union trapped_args *args, void *pr_ctxt)
 

Macro Definition Documentation

#define CP_FM_USR (   to,
  from,
  err,
  n 
)    _cp_fm_usr(to, from, &(err), (n) * sizeof(*(to)))

Definition at line 180 of file dspapi.c.

#define CP_TO_USR (   to,
  from,
  err,
  n 
)    _cp_to_usr(to, from, &(err), (n) * sizeof(*(from)))

Definition at line 198 of file dspapi.c.

#define DB_GET_IOC_TABLE (   cmd)    (DB_GET_MODULE(cmd) >> DB_MODULE_SHIFT)

Definition at line 63 of file dspapi.c.

#define MAX_BUFS   64

Definition at line 60 of file dspapi.c.

#define MAX_LOADARGS   16

Definition at line 57 of file dspapi.c.

#define MAX_NODES   64

Definition at line 58 of file dspapi.c.

#define MAX_STREAMS   16

Definition at line 59 of file dspapi.c.

#define MAX_TRACEBUFLEN   255

Definition at line 56 of file dspapi.c.

#define WRAP_MAP2CALLER (   x)    x

Definition at line 402 of file dspapi.c.

Function Documentation

int api_call_dev_ioctl ( u32  cmd,
union trapped_args args,
u32 result,
void pr_ctxt 
)
inline

Definition at line 206 of file dspapi.c.

void api_exit ( void  )

Definition at line 264 of file dspapi.c.

bool api_init ( void  )

Definition at line 277 of file dspapi.c.

int api_init_complete2 ( void  )

Definition at line 305 of file dspapi.c.

u32 __deprecated cmmwrap_calloc_buf ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1793 of file dspapi.c.

u32 __deprecated cmmwrap_free_buf ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1803 of file dspapi.c.

u32 cmmwrap_get_handle ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1813 of file dspapi.c.

u32 cmmwrap_get_info ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1829 of file dspapi.c.

void find_node_handle ( struct node_res_object **  noderes,
void pr_ctxt,
void hnode 
)
inline

Definition at line 997 of file dspapi.c.

void find_strm_handle ( struct strm_res_object **  strmres,
void pr_ctxt,
void hstream 
)
inline

Definition at line 1459 of file dspapi.c.

u32 mgrwrap_enum_node_info ( union trapped_args args,
void pr_ctxt 
)

Definition at line 340 of file dspapi.c.

u32 mgrwrap_enum_proc_info ( union trapped_args args,
void pr_ctxt 
)

Definition at line 372 of file dspapi.c.

u32 __deprecated mgrwrap_get_process_resources_info ( union trapped_args args,
void pr_ctxt 
)

Definition at line 507 of file dspapi.c.

u32 mgrwrap_register_object ( union trapped_args args,
void pr_ctxt 
)

Definition at line 406 of file dspapi.c.

u32 mgrwrap_unregister_object ( union trapped_args args,
void pr_ctxt 
)

Definition at line 450 of file dspapi.c.

u32 mgrwrap_wait_for_bridge_events ( union trapped_args args,
void pr_ctxt 
)

Definition at line 470 of file dspapi.c.

u32 nodewrap_alloc_msg_buf ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1074 of file dspapi.c.

u32 nodewrap_allocate ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1011 of file dspapi.c.

u32 nodewrap_change_priority ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1111 of file dspapi.c.

u32 nodewrap_connect ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1131 of file dspapi.c.

u32 nodewrap_create ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1204 of file dspapi.c.

u32 nodewrap_delete ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1222 of file dspapi.c.

u32 nodewrap_free_msg_buf ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1240 of file dspapi.c.

u32 nodewrap_get_attr ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1274 of file dspapi.c.

u32 nodewrap_get_message ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1295 of file dspapi.c.

u32 nodewrap_get_uuid_props ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1432 of file dspapi.c.

u32 nodewrap_pause ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1317 of file dspapi.c.

u32 nodewrap_put_message ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1335 of file dspapi.c.

u32 nodewrap_register_notify ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1360 of file dspapi.c.

u32 nodewrap_run ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1393 of file dspapi.c.

u32 nodewrap_terminate ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1411 of file dspapi.c.

u32 procwrap_attach ( union trapped_args args,
void pr_ctxt 
)

Definition at line 517 of file dspapi.c.

u32 procwrap_begin_dma ( union trapped_args args,
void pr_ctxt 
)

Definition at line 629 of file dspapi.c.

u32 procwrap_ctrl ( union trapped_args args,
void pr_ctxt 
)

Definition at line 543 of file dspapi.c.

u32 __deprecated procwrap_detach ( union trapped_args args,
void pr_ctxt 
)

Definition at line 581 of file dspapi.c.

u32 procwrap_end_dma ( union trapped_args args,
void pr_ctxt 
)

Definition at line 615 of file dspapi.c.

u32 procwrap_enum_node_info ( union trapped_args args,
void pr_ctxt 
)

Definition at line 591 of file dspapi.c.

u32 procwrap_enum_resources ( union trapped_args args,
void pr_ctxt 
)

Definition at line 678 of file dspapi.c.

u32 procwrap_flush_memory ( union trapped_args args,
void pr_ctxt 
)

Definition at line 646 of file dspapi.c.

u32 procwrap_get_state ( union trapped_args args,
void pr_ctxt 
)

Definition at line 705 of file dspapi.c.

u32 procwrap_get_trace ( union trapped_args args,
void pr_ctxt 
)

Definition at line 726 of file dspapi.c.

u32 procwrap_invalidate_memory ( union trapped_args args,
void pr_ctxt 
)

Definition at line 664 of file dspapi.c.

u32 procwrap_load ( union trapped_args args,
void pr_ctxt 
)

Definition at line 752 of file dspapi.c.

u32 procwrap_map ( union trapped_args args,
void pr_ctxt 
)

Definition at line 873 of file dspapi.c.

u32 procwrap_register_notify ( union trapped_args args,
void pr_ctxt 
)

Definition at line 900 of file dspapi.c.

u32 procwrap_reserve_memory ( union trapped_args args,
void pr_ctxt 
)

Definition at line 922 of file dspapi.c.

u32 procwrap_start ( union trapped_args args,
void pr_ctxt 
)

Definition at line 948 of file dspapi.c.

u32 procwrap_stop ( union trapped_args args,
void pr_ctxt 
)

Definition at line 985 of file dspapi.c.

u32 procwrap_un_map ( union trapped_args args,
void pr_ctxt 
)

Definition at line 959 of file dspapi.c.

u32 procwrap_un_reserve_memory ( union trapped_args args,
void pr_ctxt 
)

Definition at line 971 of file dspapi.c.

u32 strmwrap_allocate_buffer ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1472 of file dspapi.c.

u32 strmwrap_close ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1512 of file dspapi.c.

u32 strmwrap_free_buffer ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1527 of file dspapi.c.

u32 __deprecated strmwrap_get_event_handle ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1564 of file dspapi.c.

u32 strmwrap_get_info ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1574 of file dspapi.c.

u32 strmwrap_idle ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1608 of file dspapi.c.

u32 strmwrap_issue ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1626 of file dspapi.c.

u32 strmwrap_open ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1654 of file dspapi.c.

u32 strmwrap_reclaim ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1693 of file dspapi.c.

u32 strmwrap_register_notify ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1724 of file dspapi.c.

u32 strmwrap_select ( union trapped_args args,
void pr_ctxt 
)

Definition at line 1753 of file dspapi.c.