| /* |
| * crus_ctl_if.h |
| * |
| */ |
| |
| #ifndef CRUS_CTL_IF_H_ |
| #define CRUS_CTL_IF_H_ |
| struct dsp_if { |
| void *crus_dsp; |
| int (*dsp_open)(void *crus_dsp); |
| int (*dsp_close)(void *crus_dsp); |
| int (*dsp_write_data)(void *crus_dsp, u32* txwords, int txlen); |
| int (*dsp_read_resp)(void *crus_dsp, u32* rxwords, int rxlen); |
| void (*dsp_set_reset_state)(void *crus_dsp, int); |
| int (*dsp_get_reset_state)(void *crus_dsp); |
| int (*dsp_get_busy_state)(void *crus_dsp); |
| int (*dsp_get_int_state)(void *crus_dsp); |
| }; |
| |
| struct dsp_if *crus_get_dsp_if(void); |
| |
| #endif /* CRUS_CTL_IF_H_ */ |