162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci *
362306a36Sopenharmony_ci * include/asm-sh/dreamcast/dma.h
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Copyright (C) 2003 Paul Mundt
662306a36Sopenharmony_ci */
762306a36Sopenharmony_ci#ifndef __ASM_SH_DREAMCAST_DMA_H
862306a36Sopenharmony_ci#define __ASM_SH_DREAMCAST_DMA_H
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci/* Number of DMA channels */
1162306a36Sopenharmony_ci#define G2_NR_DMA_CHANNELS	4
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci/* Channels for cascading */
1462306a36Sopenharmony_ci#define PVR2_CASCADE_CHAN	2
1562306a36Sopenharmony_ci#define G2_CASCADE_CHAN		3
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci/* PVR2 DMA Registers */
1862306a36Sopenharmony_ci#define PVR2_DMA_BASE		0xa05f6800
1962306a36Sopenharmony_ci#define PVR2_DMA_ADDR		(PVR2_DMA_BASE + 0)
2062306a36Sopenharmony_ci#define PVR2_DMA_COUNT		(PVR2_DMA_BASE + 4)
2162306a36Sopenharmony_ci#define PVR2_DMA_MODE		(PVR2_DMA_BASE + 8)
2262306a36Sopenharmony_ci#define PVR2_DMA_LMMODE0	(PVR2_DMA_BASE + 132)
2362306a36Sopenharmony_ci#define PVR2_DMA_LMMODE1	(PVR2_DMA_BASE + 136)
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ci/* G2 DMA Register */
2662306a36Sopenharmony_ci#define G2_DMA_BASE		0xa05f7800
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci#endif /* __ASM_SH_DREAMCAST_DMA_H */
2962306a36Sopenharmony_ci
30