|
@@ -114,122 +114,6 @@ extern void io_request_chnl(struct io_mgr *io_manager,
|
|
|
*/
|
|
|
extern void iosm_schedule(struct io_mgr *io_manager);
|
|
|
|
|
|
-/*
|
|
|
- * DSP-DMA IO functions
|
|
|
- */
|
|
|
-
|
|
|
-/*
|
|
|
- * ======== io_ddma_init_chnl_desc ========
|
|
|
- * Purpose:
|
|
|
- * Initialize DSP DMA channel descriptor.
|
|
|
- * Parameters:
|
|
|
- * hio_mgr: Handle to a I/O manager.
|
|
|
- * ddma_chnl_id: DDMA channel identifier.
|
|
|
- * num_desc: Number of buffer descriptors(equals # of IOReqs &
|
|
|
- * Chirps)
|
|
|
- * dsp: Dsp address;
|
|
|
- * Returns:
|
|
|
- * Requires:
|
|
|
- * ddma_chnl_id < DDMA_MAXDDMACHNLS
|
|
|
- * num_desc > 0
|
|
|
- * pVa != NULL
|
|
|
- * pDspPa != NULL
|
|
|
- *
|
|
|
- * Ensures:
|
|
|
- */
|
|
|
-extern void io_ddma_init_chnl_desc(struct io_mgr *hio_mgr, u32 ddma_chnl_id,
|
|
|
- u32 num_desc, void *dsp);
|
|
|
-
|
|
|
-/*
|
|
|
- * ======== io_ddma_clear_chnl_desc ========
|
|
|
- * Purpose:
|
|
|
- * Clear DSP DMA channel descriptor.
|
|
|
- * Parameters:
|
|
|
- * hio_mgr: Handle to a I/O manager.
|
|
|
- * ddma_chnl_id: DDMA channel identifier.
|
|
|
- * Returns:
|
|
|
- * Requires:
|
|
|
- * ddma_chnl_id < DDMA_MAXDDMACHNLS
|
|
|
- * Ensures:
|
|
|
- */
|
|
|
-extern void io_ddma_clear_chnl_desc(struct io_mgr *hio_mgr, u32 ddma_chnl_id);
|
|
|
-
|
|
|
-/*
|
|
|
- * ======== io_ddma_request_chnl ========
|
|
|
- * Purpose:
|
|
|
- * Request channel DSP-DMA from the DSP. Sets up SM descriptors and
|
|
|
- * control fields in shared memory.
|
|
|
- * Parameters:
|
|
|
- * hio_mgr: Handle to a I/O manager.
|
|
|
- * pchnl: Ptr to channel object
|
|
|
- * chnl_packet_obj: Ptr to channel i/o request packet.
|
|
|
- * Returns:
|
|
|
- * Requires:
|
|
|
- * pchnl != NULL
|
|
|
- * pchnl->cio_reqs > 0
|
|
|
- * chnl_packet_obj != NULL
|
|
|
- * Ensures:
|
|
|
- */
|
|
|
-extern void io_ddma_request_chnl(struct io_mgr *hio_mgr,
|
|
|
- struct chnl_object *pchnl,
|
|
|
- struct chnl_irp *chnl_packet_obj,
|
|
|
- u16 *mbx_val);
|
|
|
-
|
|
|
-/*
|
|
|
- * Zero-copy IO functions
|
|
|
- */
|
|
|
-
|
|
|
-/*
|
|
|
- * ======== io_ddzc_init_chnl_desc ========
|
|
|
- * Purpose:
|
|
|
- * Initialize ZCPY channel descriptor.
|
|
|
- * Parameters:
|
|
|
- * hio_mgr: Handle to a I/O manager.
|
|
|
- * zid: zero-copy channel identifier.
|
|
|
- * Returns:
|
|
|
- * Requires:
|
|
|
- * ddma_chnl_id < DDMA_MAXZCPYCHNLS
|
|
|
- * hio_mgr != Null
|
|
|
- * Ensures:
|
|
|
- */
|
|
|
-extern void io_ddzc_init_chnl_desc(struct io_mgr *hio_mgr, u32 zid);
|
|
|
-
|
|
|
-/*
|
|
|
- * ======== io_ddzc_clear_chnl_desc ========
|
|
|
- * Purpose:
|
|
|
- * Clear DSP ZC channel descriptor.
|
|
|
- * Parameters:
|
|
|
- * hio_mgr: Handle to a I/O manager.
|
|
|
- * ch_id: ZC channel identifier.
|
|
|
- * Returns:
|
|
|
- * Requires:
|
|
|
- * hio_mgr is valid
|
|
|
- * ch_id < DDMA_MAXZCPYCHNLS
|
|
|
- * Ensures:
|
|
|
- */
|
|
|
-extern void io_ddzc_clear_chnl_desc(struct io_mgr *hio_mgr, u32 ch_id);
|
|
|
-
|
|
|
-/*
|
|
|
- * ======== io_ddzc_request_chnl ========
|
|
|
- * Purpose:
|
|
|
- * Request zero-copy channel transfer. Sets up SM descriptors and
|
|
|
- * control fields in shared memory.
|
|
|
- * Parameters:
|
|
|
- * hio_mgr: Handle to a I/O manager.
|
|
|
- * pchnl: Ptr to channel object
|
|
|
- * chnl_packet_obj: Ptr to channel i/o request packet.
|
|
|
- * Returns:
|
|
|
- * Requires:
|
|
|
- * pchnl != NULL
|
|
|
- * pchnl->cio_reqs > 0
|
|
|
- * chnl_packet_obj != NULL
|
|
|
- * Ensures:
|
|
|
- */
|
|
|
-extern void io_ddzc_request_chnl(struct io_mgr *hio_mgr,
|
|
|
- struct chnl_object *pchnl,
|
|
|
- struct chnl_irp *chnl_packet_obj,
|
|
|
- u16 *mbx_val);
|
|
|
-
|
|
|
/*
|
|
|
* ======== io_sh_msetting ========
|
|
|
* Purpose:
|
|
@@ -253,25 +137,6 @@ extern int io_sh_msetting(struct io_mgr *hio_mgr, u8 desc, void *pargs);
|
|
|
/* Maximum channel bufsize that can be used. */
|
|
|
extern u32 io_buf_size(struct io_mgr *hio_mgr);
|
|
|
|
|
|
-extern u32 io_read_value(struct bridge_dev_context *dev_ctxt, u32 dsp_addr);
|
|
|
-
|
|
|
-extern void io_write_value(struct bridge_dev_context *dev_ctxt,
|
|
|
- u32 dsp_addr, u32 value);
|
|
|
-
|
|
|
-extern u32 io_read_value_long(struct bridge_dev_context *dev_ctxt,
|
|
|
- u32 dsp_addr);
|
|
|
-
|
|
|
-extern void io_write_value_long(struct bridge_dev_context *dev_ctxt,
|
|
|
- u32 dsp_addr, u32 value);
|
|
|
-
|
|
|
-extern void io_or_set_value(struct bridge_dev_context *dev_ctxt,
|
|
|
- u32 dsp_addr, u32 value);
|
|
|
-
|
|
|
-extern void io_and_set_value(struct bridge_dev_context *dev_ctxt,
|
|
|
- u32 dsp_addr, u32 value);
|
|
|
-
|
|
|
-extern void io_sm_init(void);
|
|
|
-
|
|
|
#ifdef CONFIG_TIDSPBRIDGE_BACKTRACE
|
|
|
/*
|
|
|
* ========print_dsp_trace_buffer ========
|