Subject: bar_size could be 8192 on some cards
To: None <tech-kern@netbsd.org>
From: Jun-ichiro itojun Hagino <itojun@iijlab.net>
List: tech-kern
Date: 10/18/2004 13:21:34
	without this change, kernel panics with certain card (buffero
	WLI-CB-G54S) because of bar_size limitation (the card has
	bar_size=8192).

itojun


Index: cardbus.c
===================================================================
RCS file: /cvsroot/src/sys/dev/cardbus/cardbus.c,v
retrieving revision 1.59
diff -u -r1.59 cardbus.c
--- cardbus.c	10 Oct 2004 22:26:34 -0000	1.59
+++ cardbus.c	18 Oct 2004 04:20:14 -0000
@@ -423,7 +423,7 @@
 	cardbustag_t tag;
 	cardbusreg_t id, class, cis_ptr;
 	cardbusreg_t bhlc;
-	u_int8_t tuple[2048];
+	static u_int8_t tuple[8192];
 	int cdstatus;
 	int function, nfunction;
 	struct device *csc;