18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci * 38c2ecf20Sopenharmony_ci * include/asm-sh/dreamcast/dma.h 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 2003 Paul Mundt 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci#ifndef __ASM_SH_DREAMCAST_DMA_H 88c2ecf20Sopenharmony_ci#define __ASM_SH_DREAMCAST_DMA_H 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci/* Number of DMA channels */ 118c2ecf20Sopenharmony_ci#define G2_NR_DMA_CHANNELS 4 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci/* Channels for cascading */ 148c2ecf20Sopenharmony_ci#define PVR2_CASCADE_CHAN 2 158c2ecf20Sopenharmony_ci#define G2_CASCADE_CHAN 3 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci/* PVR2 DMA Registers */ 188c2ecf20Sopenharmony_ci#define PVR2_DMA_BASE 0xa05f6800 198c2ecf20Sopenharmony_ci#define PVR2_DMA_ADDR (PVR2_DMA_BASE + 0) 208c2ecf20Sopenharmony_ci#define PVR2_DMA_COUNT (PVR2_DMA_BASE + 4) 218c2ecf20Sopenharmony_ci#define PVR2_DMA_MODE (PVR2_DMA_BASE + 8) 228c2ecf20Sopenharmony_ci#define PVR2_DMA_LMMODE0 (PVR2_DMA_BASE + 132) 238c2ecf20Sopenharmony_ci#define PVR2_DMA_LMMODE1 (PVR2_DMA_BASE + 136) 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci/* G2 DMA Register */ 268c2ecf20Sopenharmony_ci#define G2_DMA_BASE 0xa05f7800 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci#endif /* __ASM_SH_DREAMCAST_DMA_H */ 298c2ecf20Sopenharmony_ci 30