Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Define APC DMA registers as offsets for bus space...



details:   https://anonhg.NetBSD.org/src/rev/3aa495f624cb
branches:  trunk
changeset: 551683:3aa495f624cb
user:      uwe <uwe%NetBSD.org@localhost>
date:      Wed Sep 10 11:37:13 2003 +0000

description:
Define APC DMA registers as offsets for bus space ops, so that we can
avoid linear mapping.  Actually, cs4231_sbus.c is already converted to
not use linear mapping of DMA registers, but it uses quick and
disgusting hack.

diffstat:

 sys/dev/ic/apcdmareg.h |  15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r 61a2d7045330 -r 3aa495f624cb sys/dev/ic/apcdmareg.h
--- a/sys/dev/ic/apcdmareg.h    Wed Sep 10 11:09:11 2003 +0000
+++ b/sys/dev/ic/apcdmareg.h    Wed Sep 10 11:37:13 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: apcdmareg.h,v 1.3 2002/03/12 04:48:28 uwe Exp $        */
+/*     $NetBSD: apcdmareg.h,v 1.4 2003/09/10 11:37:13 uwe Exp $        */
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -57,6 +57,19 @@
        volatile u_int32_t dmapnc;      /* Playback Next Count */
 };
 
+/* same as above but as offsets for bus_space ops */
+#define APC_DMA_CSR    0
+#define APC_DMA_CVA    16
+#define APC_DMA_CC     20
+#define APC_DMA_CNVA   24
+#define APC_DMA_CNC    28
+#define APC_DMA_PVA    32
+#define APC_DMA_PC     36
+#define APC_DMA_PNVA   40
+#define APC_DMA_PNC    44
+
+#define APC_DMA_SIZE   48
+
 /*
  * APC CSR Register bit definitions
  */



Home | Main Index | Thread Index | Old Index