Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/tc Merge pmax and alpha ISDN register definitions.
details: https://anonhg.NetBSD.org/src/rev/dd85c1cd64be
branches: trunk
changeset: 486753:dd85c1cd64be
user: gmcgarry <gmcgarry%NetBSD.org@localhost>
date: Sun May 28 06:13:40 2000 +0000
description:
Merge pmax and alpha ISDN register definitions.
diffstat:
sys/dev/tc/bba.c | 21 +++++----------------
sys/dev/tc/ioasicreg.h | 14 ++++++--------
2 files changed, 11 insertions(+), 24 deletions(-)
diffs (91 lines):
diff -r 82c337e3f4ce -r dd85c1cd64be sys/dev/tc/bba.c
--- a/sys/dev/tc/bba.c Sun May 28 06:07:31 2000 +0000
+++ b/sys/dev/tc/bba.c Sun May 28 06:13:40 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bba.c,v 1.1 2000/05/02 06:43:05 augustss Exp $ */
+/* $NetBSD: bba.c,v 1.2 2000/05/28 06:13:40 gmcgarry Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -60,17 +60,6 @@
#include <dev/tc/ioasicreg.h>
#include <dev/tc/ioasicvar.h>
-#ifdef pmax
-#include <pmax/pmax/maxine.h>
-#define IOASIC_CSR_ISDN_ENABLE XINE_CSR_ISDN_ENABLE
-#define IOASIC_INTR_ISDN_TXLOAD IOASIC_INTR_ISDN_DS_TXLOAD
-#define IOASIC_INTR_ISDN_RXLOAD IOASIC_INTR_ISDN_DS_RXLOAD
-#ifdef IOASIC_INTR_ISDN_OVRUN
-#undef IOASIC_INTR_ISDN_OVRUN
-#endif
-#define IOASIC_INTR_ISDN_OVRUN IOASIC_INTR_ISDN_DS_OVRUN
-#endif
-
#ifdef AUDIO_DEBUG
#define DPRINTF(x) if (am7930debug) printf x
#else
@@ -496,8 +485,8 @@
d->curseg = 1;
/* get physical address of buffer start */
- phys = (tc_addr_t)d->dmam->dm_segs[d->curseg].ds_addr;
- nphys = (tc_addr_t)d->dmam->dm_segs[d->curseg+1].ds_addr;
+ phys = (tc_addr_t)d->dmam->dm_segs[0].ds_addr;
+ nphys = (tc_addr_t)d->dmam->dm_segs[1].ds_addr;
/* setup DMA pointer */
bus_space_write_4(sc->sc_bst, sc->sc_bsh, IOASIC_ISDN_X_DMAPTR,
@@ -566,8 +555,8 @@
d->curseg = 1;
/* get physical address of buffer start */
- phys = (tc_addr_t)d->dmam->dm_segs[d->curseg].ds_addr;
- nphys = (tc_addr_t)d->dmam->dm_segs[d->curseg+1].ds_addr;
+ phys = (tc_addr_t)d->dmam->dm_segs[0].ds_addr;
+ nphys = (tc_addr_t)d->dmam->dm_segs[1].ds_addr;
/* setup DMA pointer */
bus_space_write_4(sc->sc_bst, sc->sc_bsh, IOASIC_ISDN_R_DMAPTR,
diff -r 82c337e3f4ce -r dd85c1cd64be sys/dev/tc/ioasicreg.h
--- a/sys/dev/tc/ioasicreg.h Sun May 28 06:07:31 2000 +0000
+++ b/sys/dev/tc/ioasicreg.h Sun May 28 06:13:40 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ioasicreg.h,v 1.2 2000/02/03 08:13:46 nisimura Exp $ */
+/* $NetBSD: ioasicreg.h,v 1.3 2000/05/28 06:13:40 gmcgarry Exp $ */
/*
* Copyright (c) 1991,1990,1989,1994,1995 Carnegie Mellon University
@@ -141,6 +141,7 @@
#define IOASIC_CSR_DIAGDN 0x00008000 /* rw */
#define IOASIC_CSR_TXDIS_2 0x00004000 /* rw - 3min,3max+ */
#define IOASIC_CSR_TXDIS_1 0x00002000 /* rw - 3min,3max+ */
+#define IOASIC_CSR_ISDN_ENABLE 0x00001000 /* rw - 3000/maxine */
#define IOASIC_CSR_SCC_ENABLE 0x00000800 /* rw */
#define IOASIC_CSR_RTC_ENABLE 0x00000400 /* rw */
#define IOASIC_CSR_SCSI_ENABLE 0x00000200 /* rw - DS */
@@ -156,12 +157,9 @@
#define IOASIC_INTR_R2_HALF_PAGE 0x02000000 /* rz */
#define IOASIC_INTR_R2_DMA_OVRUN 0x01000000 /* rz */
#define IOASIC_INTR_FLOPPY_DMA_E 0x00800000 /* rz - maxine */
-#define IOASIC_INTR_ISDN_PTR_LOAD 0x00400000 /* rz - 3000 */
-#define IOASIC_INTR_ISDN_OVRUN 0x00200000 /* rz - 3000 */
-#define IOASIC_INTR_ISDN_READ_E 0x00100000 /* rz - 3000 */
-#define IOASIC_INTR_ISDN_DS_TXLOAD 0x00400000 /* rz - maxine */
-#define IOASIC_INTR_ISDN_DS_RXLOAD 0x00200000 /* rz - maxine */
-#define IOASIC_INTR_ISDN_DS_OVRUN 0x00100000 /* rz - maxine */
+#define IOASIC_INTR_ISDN_TXLOAD 0x00400000 /* rz - 3000/maxine */
+#define IOASIC_INTR_ISDN_RXLOAD 0x00200000 /* rz - 3000/maxine */
+#define IOASIC_INTR_ISDN_OVRUN 0x00100000 /* rz - 3000/maxine */
#define IOASIC_INTR_SCSI_PTR_LOAD 0x00080000 /* rz - DS */
#define IOASIC_INTR_SCSI_OVRUN 0x00040000 /* rz - DS */
#define IOASIC_INTR_SCSI_READ_E 0x00020000 /* rz - DS */
@@ -169,7 +167,7 @@
/* low 16 bits are model-dependent; see also model specific *.h */
#define IOASIC_INTR_NVR_JUMPER 0x00004000 /* ro */
-#define IOASIC_INTR_ISDN 0x00002000 /* ro */
+#define IOASIC_INTR_ISDN 0x00002000 /* ro - 3000 */
#define IOASIC_INTR_NRMOD_JUMPER 0x00000400 /* ro */
#define IOASIC_INTR_SEC_CON 0x00000200 /* ro */
#define IOASIC_INTR_SCSI 0x00000200 /* ro - DS */
Home |
Main Index |
Thread Index |
Old Index