Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Sync PCMCIA memory mapping with a change from re...



details:   https://anonhg.NetBSD.org/src/rev/814dfb3b0fcf
branches:  trunk
changeset: 482746:814dfb3b0fcf
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Feb 21 01:44:36 2000 +0000

description:
Sync PCMCIA memory mapping with a change from rev 1.47 of i82365.c:
always map attr memory 8 bit, since its defined that way. (chopps)

diffstat:

 sys/dev/pci/pccbb.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 66eebc0ce312 -r 814dfb3b0fcf sys/dev/pci/pccbb.c
--- a/sys/dev/pci/pccbb.c       Mon Feb 21 01:20:55 2000 +0000
+++ b/sys/dev/pci/pccbb.c       Mon Feb 21 01:44:36 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pccbb.c,v 1.23 2000/02/06 08:14:13 cgd Exp $   */
+/*     $NetBSD: pccbb.c,v 1.24 2000/02/21 01:44:36 thorpej Exp $       */
 
 /*
  * Copyright (c) 1998, 1999 and 2000
@@ -2395,7 +2395,8 @@
 
        int kind = ph->mem[win].kind & ~PCMCIA_WIDTH_MEM_MASK;
        int mem8 =
-           (ph->mem[win].kind & PCMCIA_WIDTH_MEM_MASK) == PCMCIA_WIDTH_MEM8;
+           (ph->mem[win].kind & PCMCIA_WIDTH_MEM_MASK) == PCMCIA_WIDTH_MEM8
+           || (kind == PCMCIA_MEM_ATTR);
 
        regbase_win = 0x10 + win * 0x08;
 



Home | Main Index | Thread Index | Old Index