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

Go to the source code of this file.

Macros

#define USERMODE_ADDR   PAGE_OFFSET
 
#define MAILBOX_IRQ   INT_MAIL_MPU_IRQ
 

Functions

int bridge_chnl_add_io_req (struct chnl_object *chnl_obj, void *host_buf, u32 byte_size, u32 buf_size, u32 dw_dsp_addr, u32 dw_arg)
 
int bridge_chnl_cancel_io (struct chnl_object *chnl_obj)
 
int bridge_chnl_close (struct chnl_object *chnl_obj)
 
int bridge_chnl_create (struct chnl_mgr **channel_mgr, struct dev_object *hdev_obj, const struct chnl_mgrattrs *mgr_attrts)
 
int bridge_chnl_destroy (struct chnl_mgr *hchnl_mgr)
 
int bridge_chnl_flush_io (struct chnl_object *chnl_obj, u32 timeout)
 
int bridge_chnl_get_info (struct chnl_object *chnl_obj, struct chnl_info *channel_info)
 
int bridge_chnl_get_ioc (struct chnl_object *chnl_obj, u32 timeout, struct chnl_ioc *chan_ioc)
 
int bridge_chnl_get_mgr_info (struct chnl_mgr *hchnl_mgr, u32 ch_id, struct chnl_mgrinfo *mgr_info)
 
int bridge_chnl_idle (struct chnl_object *chnl_obj, u32 timeout, bool flush_data)
 
int bridge_chnl_open (struct chnl_object **chnl, struct chnl_mgr *hchnl_mgr, s8 chnl_mode, u32 ch_id, const struct chnl_attr *pattrs)
 
int bridge_chnl_register_notify (struct chnl_object *chnl_obj, u32 event_mask, u32 notify_type, struct dsp_notification *hnotification)
 

Macro Definition Documentation

#define MAILBOX_IRQ   INT_MAIL_MPU_IRQ

Definition at line 70 of file chnl_sm.c.

#define USERMODE_ADDR   PAGE_OFFSET

Definition at line 68 of file chnl_sm.c.

Function Documentation

int bridge_chnl_add_io_req ( struct chnl_object chnl_obj,
void host_buf,
u32  byte_size,
u32  buf_size,
u32  dw_dsp_addr,
u32  dw_arg 
)

Definition at line 86 of file chnl_sm.c.

int bridge_chnl_cancel_io ( struct chnl_object chnl_obj)

Definition at line 234 of file chnl_sm.c.

int bridge_chnl_close ( struct chnl_object chnl_obj)

Definition at line 294 of file chnl_sm.c.

int bridge_chnl_create ( struct chnl_mgr **  channel_mgr,
struct dev_object hdev_obj,
const struct chnl_mgrattrs mgr_attrts 
)

Definition at line 343 of file chnl_sm.c.

int bridge_chnl_destroy ( struct chnl_mgr hchnl_mgr)

Definition at line 397 of file chnl_sm.c.

int bridge_chnl_flush_io ( struct chnl_object chnl_obj,
u32  timeout 
)

Definition at line 433 of file chnl_sm.c.

int bridge_chnl_get_info ( struct chnl_object chnl_obj,
struct chnl_info channel_info 
)

Definition at line 484 of file chnl_sm.c.

int bridge_chnl_get_ioc ( struct chnl_object chnl_obj,
u32  timeout,
struct chnl_ioc chan_ioc 
)

Definition at line 518 of file chnl_sm.c.

int bridge_chnl_get_mgr_info ( struct chnl_mgr hchnl_mgr,
u32  ch_id,
struct chnl_mgrinfo mgr_info 
)

Definition at line 656 of file chnl_sm.c.

int bridge_chnl_idle ( struct chnl_object chnl_obj,
u32  timeout,
bool  flush_data 
)

Definition at line 681 of file chnl_sm.c.

int bridge_chnl_open ( struct chnl_object **  chnl,
struct chnl_mgr hchnl_mgr,
s8  chnl_mode,
u32  ch_id,
const struct chnl_attr pattrs 
)

Definition at line 709 of file chnl_sm.c.

int bridge_chnl_register_notify ( struct chnl_object chnl_obj,
u32  event_mask,
u32  notify_type,
struct dsp_notification hnotification 
)

Definition at line 821 of file chnl_sm.c.