Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Apr 2000 03:51:08 +0900
From:      Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org>
To:        mobile@FreeBSD.ORG
Subject:   [MFPAO patch] readcis enhancement
Message-ID:  <20000424035108M.iwasaki@jp.FreeBSD.org>

next in thread | raw e-mail | index | archive | help
Hi,

I've just made the patches for the enhancement of pccard cis tuple
dump capability, available at
http://people.freebsd.org/~iwasaki/pccard/pccardd-readcis.diff

I'll commit this 2 or 3 days later if no objections.

With this, we can share cis dump data between PAO and non-PAO system
including a lot of dump files at
http://www.linkclub.or.jp/~clover/cis/

Also this include telling drivers ethernet address if Network node ID
tuple is available.  This is usefull for some bogus ehter cards which
can't get correct ethernet address from CIS tupple.

The following sample is diffs of `pccardc dumpcis' command output
between pccardc w/o the patches and w/ the patches. It seems there
were some bugs in CIS parsing of current pccardc (and pccardd).
I hope this also help people to migrate from PAO to plain FreeBSD.

Thanks

--- OC2220-NonPAO.cis	Mon Apr 24 02:55:46 2000
+++ OC2220-PAO.cis	Mon Apr 24 03:00:11 2000
@@ -9,11 +9,11 @@
 	Network/LAN adapter
 Tuple #3, code = 0x22 (Functional EXT), length = 8
     000:  04 06 00 00 24 81 10 d4
-	Voice services available:
+	Network node ID: 00 00 24 81 10 d4
 Tuple #4, code = 0x15 (Version 1 info), length = 31
     000:  04 01 4f 6c 69 63 6f 6d 00 45 74 68 65 72 6e 65
     010:  74 00 4f 43 32 32 32 30 00 4e 4f 4e 45 00 ff
-	Version = 4.1, Manuf = [Olicom],card vers = [Ethernet]
+	Version = 4.1, Manuf = [Olicom], card vers = [Ethernet]
 	Addit. info = [OC2220],[NONE]
 Tuple #5, code = 0x1a (Configuration map), length = 5
     000:  01 00 f8 03 03
@@ -27,128 +27,129 @@
 		Nominal operating supply voltage: 5 x 1V
 		Max current average over 1 second: 2.5 x 100mA
 	Wait scale Speed = Reserved x 1 ms, scaled by 100
-	Card decodes 6 address lines
-		IRQ modes:
-		IRQ level = 6
+	External scale Speed = 8.0 x 10 us, scaled by 10
+	Card decodes 3 address lines, 8 Bit I/O only
+		IRQ modes:  Pulse
+		IRQ level = 4
 Tuple #7, code = 0x1b (Configuration entry), length = 10
     000:  01 18 c4 60 00 03 0f 30 a8 ce
 	Config index = 0x1
 	Card decodes 4 address lines, limited 8/16 Bit I/O
 		I/O address # 1: block start = 0x300 block length = 0x10
 		IRQ modes: Level
-		IRQs:  4 5 11 13 15
+		IRQs:  3 5 7 9 10 11 14 15
 Tuple #8, code = 0x1b (Configuration entry), length = 10
     000:  01 18 c4 60 20 03 0f 30 a8 ce
 	Config index = 0x1
 	Card decodes 4 address lines, limited 8/16 Bit I/O
 		I/O address # 1: block start = 0x320 block length = 0x10
 		IRQ modes: Level
-		IRQs:  4 5 11 13 15
+		IRQs:  3 5 7 9 10 11 14 15
 Tuple #9, code = 0x1b (Configuration entry), length = 10
     000:  01 18 c4 60 40 03 0f 30 a8 ce
 	Config index = 0x1
 	Card decodes 4 address lines, limited 8/16 Bit I/O
 		I/O address # 1: block start = 0x340 block length = 0x10
 		IRQ modes: Level
-		IRQs:  4 5 11 13 15
+		IRQs:  3 5 7 9 10 11 14 15
 Tuple #10, code = 0x1b (Configuration entry), length = 10
     000:  01 18 c4 60 60 03 0f 30 a8 ce
 	Config index = 0x1
 	Card decodes 4 address lines, limited 8/16 Bit I/O
 		I/O address # 1: block start = 0x360 block length = 0x10
 		IRQ modes: Level
-		IRQs:  4 5 11 13 15
+		IRQs:  3 5 7 9 10 11 14 15
 Tuple #11, code = 0x1b (Configuration entry), length = 10
     000:  01 18 c4 60 40 02 0f 30 a8 ce
 	Config index = 0x1
 	Card decodes 4 address lines, limited 8/16 Bit I/O
 		I/O address # 1: block start = 0x240 block length = 0x10
 		IRQ modes: Level
-		IRQs:  4 5 11 13 15
+		IRQs:  3 5 7 9 10 11 14 15
 Tuple #12, code = 0x1b (Configuration entry), length = 10
     000:  01 18 c4 60 60 02 0f 30 a8 ce
 	Config index = 0x1
 	Card decodes 4 address lines, limited 8/16 Bit I/O
 		I/O address # 1: block start = 0x260 block length = 0x10
 		IRQ modes: Level
-		IRQs:  4 5 11 13 15
+		IRQs:  3 5 7 9 10 11 14 15
 Tuple #13, code = 0x1b (Configuration entry), length = 10
     000:  01 18 c4 60 80 02 0f 30 a8 ce
 	Config index = 0x1
 	Card decodes 4 address lines, limited 8/16 Bit I/O
 		I/O address # 1: block start = 0x280 block length = 0x10
 		IRQ modes: Level
-		IRQs:  4 5 11 13 15
+		IRQs:  3 5 7 9 10 11 14 15
 Tuple #14, code = 0x1b (Configuration entry), length = 10
     000:  01 18 c4 60 a0 02 0f 30 a8 ce
 	Config index = 0x1
 	Card decodes 4 address lines, limited 8/16 Bit I/O
 		I/O address # 1: block start = 0x2a0 block length = 0x10
 		IRQ modes: Level
-		IRQs:  4 5 11 13 15
+		IRQs:  3 5 7 9 10 11 14 15
 Tuple #15, code = 0x1b (Configuration entry), length = 10
     000:  01 18 c4 60 c0 02 0f 30 a8 ce
 	Config index = 0x1
 	Card decodes 4 address lines, limited 8/16 Bit I/O
 		I/O address # 1: block start = 0x2c0 block length = 0x10
 		IRQ modes: Level
-		IRQs:  4 5 11 13 15
+		IRQs:  3 5 7 9 10 11 14 15
 Tuple #16, code = 0x1b (Configuration entry), length = 10
     000:  01 18 c4 60 e0 02 0f 30 a8 ce
 	Config index = 0x1
 	Card decodes 4 address lines, limited 8/16 Bit I/O
 		I/O address # 1: block start = 0x2e0 block length = 0x10
 		IRQ modes: Level
-		IRQs:  4 5 11 13 15
+		IRQs:  3 5 7 9 10 11 14 15
 Tuple #17, code = 0x1b (Configuration entry), length = 10
     000:  01 18 c4 60 00 02 0f 30 a8 ce
 	Config index = 0x1
 	Card decodes 4 address lines, limited 8/16 Bit I/O
 		I/O address # 1: block start = 0x200 block length = 0x10
 		IRQ modes: Level
-		IRQs:  4 5 11 13 15
+		IRQs:  3 5 7 9 10 11 14 15
 Tuple #18, code = 0x1b (Configuration entry), length = 10
     000:  01 18 c4 60 20 02 0f 30 a8 ce
 	Config index = 0x1
 	Card decodes 4 address lines, limited 8/16 Bit I/O
 		I/O address # 1: block start = 0x220 block length = 0x10
 		IRQ modes: Level
-		IRQs:  4 5 11 13 15
+		IRQs:  3 5 7 9 10 11 14 15
 Tuple #19, code = 0x1b (Configuration entry), length = 10
     000:  01 18 c4 60 80 03 0f 30 a8 ce
 	Config index = 0x1
 	Card decodes 4 address lines, limited 8/16 Bit I/O
 		I/O address # 1: block start = 0x380 block length = 0x10
 		IRQ modes: Level
-		IRQs:  4 5 11 13 15
+		IRQs:  3 5 7 9 10 11 14 15
 Tuple #20, code = 0x1b (Configuration entry), length = 10
     000:  01 18 c4 60 a0 03 0f 30 a8 ce
 	Config index = 0x1
 	Card decodes 4 address lines, limited 8/16 Bit I/O
 		I/O address # 1: block start = 0x3a0 block length = 0x10
 		IRQ modes: Level
-		IRQs:  4 5 11 13 15
+		IRQs:  3 5 7 9 10 11 14 15
 Tuple #21, code = 0x1b (Configuration entry), length = 10
     000:  01 18 c4 60 c0 03 0f 30 a8 ce
 	Config index = 0x1
 	Card decodes 4 address lines, limited 8/16 Bit I/O
 		I/O address # 1: block start = 0x3c0 block length = 0x10
 		IRQ modes: Level
-		IRQs:  4 5 11 13 15
+		IRQs:  3 5 7 9 10 11 14 15
 Tuple #22, code = 0x1b (Configuration entry), length = 10
     000:  01 18 c4 60 e0 03 0f 30 a8 ce
 	Config index = 0x1
 	Card decodes 4 address lines, limited 8/16 Bit I/O
 		I/O address # 1: block start = 0x3e0 block length = 0x10
 		IRQ modes: Level
-		IRQs:  4 5 11 13 15
+		IRQs:  3 5 7 9 10 11 14 15
 Tuple #23, code = 0x1b (Configuration entry), length = 10
     000:  00 18 c4 60 e0 03 0f 30 a8 ce
 	Config index = 0x0
 	Card decodes 4 address lines, limited 8/16 Bit I/O
 		I/O address # 1: block start = 0x3e0 block length = 0x10
 		IRQ modes: Level
-		IRQs:  4 5 11 13 15
+		IRQs:  3 5 7 9 10 11 14 15
 Tuple #24, code = 0x20 (Manufacturer ID), length = 4
     000:  21 01 01 01
 	PCMCIA ID = 0x121, OEM ID = 0x101



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000424035108M.iwasaki>