* Copyright (c) 1992 The Regents of the University of California.
* This code is derived from software contributed to Berkeley by
* Sony Corp. and Kazumasa Utashiro of Software Research Associates, Inc.
* %sccs.include.redist.c%
* from: $Hdr: dmac_0448.h,v 4.300 91/06/09 06:21:36 root Rel41 $ SONY
* @(#)dmac_0448.h 7.1 (Berkeley) %G%
* Copyright (c) 1989- by SONY Corporation.
/* dmac register base address */
#define DMAC_BASE 0xbfe00000
/* register definition */
#define DMAC_GSTAT (DMAC_BASE + 0xf)
#define DMAC_GSEL (DMAC_BASE + 0xe)
#define DMAC_CSTAT (DMAC_BASE + 0x2)
#define DMAC_CCTL (DMAC_BASE + 0x3)
#define DMAC_CTRCL (DMAC_BASE + 0x4)
#define DMAC_CTRCM (DMAC_BASE + 0x5)
#define DMAC_CTRCH (DMAC_BASE + 0x6)
#define DMAC_CTAG (DMAC_BASE + 0x7)
#define DMAC_CWID (DMAC_BASE + 0x8)
#define DMAC_COFSL (DMAC_BASE + 0x9)
#define DMAC_COFSH (DMAC_BASE + 0xa)
#define DMAC_CMAP (DMAC_BASE + 0xc)
#define DMAC_CMAPH (DMAC_BASE + 0xc)
#define DMAC_CMAPL (DMAC_BASE + 0xd)
#define VOLATILE volatile
#define U_CHAR unsigned VOLATILE char
#define U_SHORT unsigned VOLATILE short
#define dmac_gstat *(U_CHAR *)DMAC_GSTAT
#define dmac_gsel *(U_CHAR *)DMAC_GSEL
#define dmac_cstat *(U_CHAR *)DMAC_CSTAT
#define dmac_cctl *(U_CHAR *)DMAC_CCTL
#define dmac_ctrcl *(U_CHAR *)DMAC_CTRCL
#define dmac_ctrcm *(U_CHAR *)DMAC_CTRCM
#define dmac_ctrch *(U_CHAR *)DMAC_CTRCH
#define dmac_ctag *(U_CHAR *)DMAC_CTAG
#define dmac_cwid *(U_CHAR *)DMAC_CWID
#define dmac_cofsl *(U_CHAR *)DMAC_COFSL
#define dmac_cofsh *(U_CHAR *)DMAC_COFSH
#define dmac_cmap *(U_SHORT *)DMAC_CMAP
#define dmac_cmaph *(U_CHAR *)DMAC_CMAPH
#define dmac_cmapl *(U_CHAR *)DMAC_CMAPL
/* status/control bit definition */
/* general status bit definition */
#define CH_INT(x) (u_char)(1 << (2 * x))
#define CH_MRQ(x) (u_char)(1 << (2 * x + 1))
#define DMAC_WAIT nops(10)
#define PINTEN 0xbfc80001
#define PINTSTAT 0xbfc80003