Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sbus (stp4020_chip_mem_map): explicitly don't handle...
details: https://anonhg.NetBSD.org/src/rev/fe1620aa10a4
branches: trunk
changeset: 480462:fe1620aa10a4
user: joda <joda%NetBSD.org@localhost>
date: Thu Jan 13 10:03:25 2000 +0000
description:
(stp4020_chip_mem_map): explicitly don't handle 8-bit memory
diffstat:
sys/dev/sbus/stp4020.c | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diffs (27 lines):
diff -r bb5a7eed383b -r fe1620aa10a4 sys/dev/sbus/stp4020.c
--- a/sys/dev/sbus/stp4020.c Thu Jan 13 09:38:17 2000 +0000
+++ b/sys/dev/sbus/stp4020.c Thu Jan 13 10:03:25 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: stp4020.c,v 1.7 1999/11/21 15:01:51 pk Exp $ */
+/* $NetBSD: stp4020.c,v 1.8 2000/01/13 10:03:25 joda Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -679,6 +679,17 @@
bus_addr_t offset;
int win, v;
+ int mem8 = (kind & PCMCIA_WIDTH_MEM_MASK) == PCMCIA_WIDTH_MEM8;
+ kind &= ~PCMCIA_WIDTH_MEM_MASK;
+
+ if(mem8) {
+ /* XXX Fix 8-bit memory accesses (can this be done at all?) */
+#ifdef DIAGNOSTIC
+ printf("stp4020_chip_mem_map: can't handle 8-bit memory\n");
+#endif
+ return (-1);
+ }
+
win = pcmhp->mhandle;
*windowp = win;
Home |
Main Index |
Thread Index |
Old Index