4
* DSP-BIOS Bridge driver support functions for TI OMAP processors.
6
* Declares the upper edge channel class library functions required by
7
* all Bridge driver / DSP API driver interface tables. These functions are
8
* implemented by every class of Bridge channel library.
11
* The function comment headers reside in dspdefs.h.
13
* Copyright (C) 2005-2006 Texas Instruments, Inc.
15
* This package is free software; you can redistribute it and/or modify
16
* it under the terms of the GNU General Public License version 2 as
17
* published by the Free Software Foundation.
19
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
20
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
21
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
27
extern int bridge_chnl_create(struct chnl_mgr **channel_mgr,
28
struct dev_object *hdev_obj,
29
const struct chnl_mgrattrs
32
extern int bridge_chnl_destroy(struct chnl_mgr *hchnl_mgr);
34
extern int bridge_chnl_open(struct chnl_object **chnl,
35
struct chnl_mgr *hchnl_mgr,
38
const struct chnl_attr
41
extern int bridge_chnl_close(struct chnl_object *chnl_obj);
43
extern int bridge_chnl_add_io_req(struct chnl_object *chnl_obj,
45
u32 byte_size, u32 buf_size,
46
u32 dw_dsp_addr, u32 dw_arg);
48
extern int bridge_chnl_get_ioc(struct chnl_object *chnl_obj,
49
u32 timeout, struct chnl_ioc *chan_ioc);
51
extern int bridge_chnl_cancel_io(struct chnl_object *chnl_obj);
53
extern int bridge_chnl_flush_io(struct chnl_object *chnl_obj,
56
extern int bridge_chnl_get_info(struct chnl_object *chnl_obj,
57
struct chnl_info *channel_info);
59
extern int bridge_chnl_get_mgr_info(struct chnl_mgr *hchnl_mgr,
60
u32 ch_id, struct chnl_mgrinfo
63
extern int bridge_chnl_idle(struct chnl_object *chnl_obj,
64
u32 timeout, bool flush_data);
66
extern int bridge_chnl_register_notify(struct chnl_object *chnl_obj,
69
struct dsp_notification