18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * SH7760 DMABRG (USB/Audio) support
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifndef _DMABRG_H_
78c2ecf20Sopenharmony_ci#define _DMABRG_H_
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci/* IRQ sources */
108c2ecf20Sopenharmony_ci#define DMABRGIRQ_USBDMA	0
118c2ecf20Sopenharmony_ci#define DMABRGIRQ_USBDMAERR	1
128c2ecf20Sopenharmony_ci#define DMABRGIRQ_A0TXF		2
138c2ecf20Sopenharmony_ci#define DMABRGIRQ_A0TXH		3
148c2ecf20Sopenharmony_ci#define DMABRGIRQ_A0RXF		4
158c2ecf20Sopenharmony_ci#define DMABRGIRQ_A0RXH		5
168c2ecf20Sopenharmony_ci#define DMABRGIRQ_A1TXF		6
178c2ecf20Sopenharmony_ci#define DMABRGIRQ_A1TXH		7
188c2ecf20Sopenharmony_ci#define DMABRGIRQ_A1RXF		8
198c2ecf20Sopenharmony_ci#define DMABRGIRQ_A1RXH		9
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ciextern int dmabrg_request_irq(unsigned int, void(*)(void *), void *);
228c2ecf20Sopenharmony_ciextern void dmabrg_free_irq(unsigned int);
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci#endif
25