Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pcmcia deal with PCMCIA_TPCE_IO_RANGE_ADDRSIZE_NONE and
details: https://anonhg.NetBSD.org/src/rev/3087730d3f5e
branches: trunk
changeset: 570011:3087730d3f5e
user: itojun <itojun%NetBSD.org@localhost>
date: Fri Sep 17 18:42:41 2004 +0000
description:
deal with PCMCIA_TPCE_IO_RANGE_ADDRSIZE_NONE and
PCMCIA_TPCE_IO_RANGE_LENGTHSIZE_NONE properly. enami
solves kern/26726.
diffstat:
sys/dev/pcmcia/pcmcia_cis.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (40 lines):
diff -r 04a765ac4c77 -r 3087730d3f5e sys/dev/pcmcia/pcmcia_cis.c
--- a/sys/dev/pcmcia/pcmcia_cis.c Fri Sep 17 18:27:28 2004 +0000
+++ b/sys/dev/pcmcia/pcmcia_cis.c Fri Sep 17 18:42:41 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcmcia_cis.c,v 1.35 2004/08/10 19:20:20 mycroft Exp $ */
+/* $NetBSD: pcmcia_cis.c,v 1.36 2004/09/17 18:42:41 itojun Exp $ */
/*
* Copyright (c) 1997 Marc Horowitz. All rights reserved.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pcmcia_cis.c,v 1.35 2004/08/10 19:20:20 mycroft Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcmcia_cis.c,v 1.36 2004/09/17 18:42:41 itojun Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1140,6 +1140,10 @@
}
for (i = 0; i < cfe->num_iospace; i++) {
switch (reg & PCMCIA_TPCE_IO_RANGE_ADDRSIZE_MASK) {
+ case PCMCIA_TPCE_IO_RANGE_ADDRSIZE_NONE:
+ cfe->iospace[i].start =
+ 0;
+ break;
case PCMCIA_TPCE_IO_RANGE_ADDRSIZE_ONE:
cfe->iospace[i].start =
pcmcia_tuple_read_1(tuple, idx);
@@ -1158,6 +1162,10 @@
}
switch (reg &
PCMCIA_TPCE_IO_RANGE_LENGTHSIZE_MASK) {
+ case PCMCIA_TPCE_IO_RANGE_LENGTHSIZE_NONE:
+ cfe->iospace[i].length =
+ 0;
+ break;
case PCMCIA_TPCE_IO_RANGE_LENGTHSIZE_ONE:
cfe->iospace[i].length =
pcmcia_tuple_read_1(tuple, idx);
Home |
Main Index |
Thread Index |
Old Index