xrp_hw_simple_dsp_interface.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * @Author: your name
  3. * @Date: 2022-03-25 12:36:07
  4. * @LastEditTime: 2022-03-25 12:36:08
  5. * @LastEditors: your name
  6. * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  7. * @FilePath: /workspace/thead-build/light-fm/tmp-glibc/work/riscv64-oe-linux/xtensa-dsp/1.0-r0/git/driver/xrp-kernel/xrp_hw_simple_dsp_interface.h
  8. */
  9. /*
  10. * XRP interface between hardware-specific linux and DSP parts of example
  11. * hardware
  12. *
  13. * Copyright (c) 2017 Cadence Design Systems, Inc.
  14. *
  15. * Permission is hereby granted, free of charge, to any person obtaining
  16. * a copy of this software and associated documentation files (the
  17. * "Software"), to deal in the Software without restriction, including
  18. * without limitation the rights to use, copy, modify, merge, publish,
  19. * distribute, sublicense, and/or sell copies of the Software, and to
  20. * permit persons to whom the Software is furnished to do so, subject to
  21. * the following conditions:
  22. *
  23. * The above copyright notice and this permission notice shall be included
  24. * in all copies or substantial portions of the Software.
  25. *
  26. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  27. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  28. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  29. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  30. * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  31. * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  32. * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  33. *
  34. * Alternatively you can use and distribute this file under the terms of
  35. * the GNU General Public License version 2 or later.
  36. */
  37. #ifndef _XRP_KERNEL_SIMPLE_HW_DSP_INTERFACE
  38. #define _XRP_KERNEL_SIMPLE_HW_DSP_INTERFACE
  39. #include "xrp_ring_buffer.h"
  40. enum {
  41. XRP_DSP_SYNC_IRQ_MODE_NONE = 0x0,
  42. XRP_DSP_SYNC_IRQ_MODE_LEVEL = 0x1,
  43. XRP_DSP_SYNC_IRQ_MODE_EDGE = 0x2,
  44. };
  45. struct xrp_hw_simple_sync_data {
  46. __u32 device_mmio_base;
  47. __u32 host_irq_mode;
  48. __u32 host_irq_offset;
  49. __u32 host_irq_bit;
  50. __u32 device_irq_mode;
  51. __u32 device_irq_offset;
  52. __u32 device_irq_bit;
  53. __u32 device_irq;
  54. };
  55. struct xrp_hw_panic {
  56. __u32 panic;
  57. __u32 ccount;
  58. __u32 reserved[2];
  59. struct xrp_ring_buffer rb;
  60. };
  61. #endif