162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * SH7760 DMABRG (USB/Audio) support
462306a36Sopenharmony_ci */
562306a36Sopenharmony_ci
662306a36Sopenharmony_ci#ifndef _DMABRG_H_
762306a36Sopenharmony_ci#define _DMABRG_H_
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci/* IRQ sources */
1062306a36Sopenharmony_ci#define DMABRGIRQ_USBDMA	0
1162306a36Sopenharmony_ci#define DMABRGIRQ_USBDMAERR	1
1262306a36Sopenharmony_ci#define DMABRGIRQ_A0TXF		2
1362306a36Sopenharmony_ci#define DMABRGIRQ_A0TXH		3
1462306a36Sopenharmony_ci#define DMABRGIRQ_A0RXF		4
1562306a36Sopenharmony_ci#define DMABRGIRQ_A0RXH		5
1662306a36Sopenharmony_ci#define DMABRGIRQ_A1TXF		6
1762306a36Sopenharmony_ci#define DMABRGIRQ_A1TXH		7
1862306a36Sopenharmony_ci#define DMABRGIRQ_A1RXF		8
1962306a36Sopenharmony_ci#define DMABRGIRQ_A1RXH		9
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ciextern int dmabrg_request_irq(unsigned int, void(*)(void *), void *);
2262306a36Sopenharmony_ciextern void dmabrg_free_irq(unsigned int);
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci#endif
25