dsp_mailbox.h 572 B

123456789101112131415161718
  1. #ifndef DSP_IRQ_HEADER
  2. #define DSP_IRQ_HEADER
  3. #include "audiodsp_module.h"
  4. int audiodsp_init_mailbox(struct audiodsp_priv *priv) ;
  5. int audiodsp_release_mailbox(struct audiodsp_priv *priv);
  6. int dsp_mailbox_send(struct audiodsp_priv *priv,int overwrite,int num,int cmd,const char *data,int len);
  7. #if 0
  8. #define pre_read_mailbox(reg) \
  9. dma_cache_inv((unsigned long)reg,sizeof(*reg))
  10. #define after_change_mailbox(reg) \
  11. dma_cache_wback((unsigned long)reg,sizeof(*reg))
  12. #else
  13. #define pre_read_mailbox(reg)
  14. #define after_change_mailbox(reg)
  15. #endif
  16. #endif