Date: Sun, 03 Sep 2000 16:29:09 -0600 From: Warner Losh <imp@village.org> To: Jim Weeks <jim@siteplus.net> Cc: stable@freebsd.org Subject: Re: FreeBSD v4.1R on laptops Message-ID: <200009032229.e83MT9G07093@billy-club.village.org> In-Reply-To: Your message of "Sun, 03 Sep 2000 18:20:41 EDT." <Pine.BSF.4.21.0009031816590.313-100000@veager.siteplus.net> References: <Pine.BSF.4.21.0009031816590.313-100000@veager.siteplus.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[[ Added stable back to the list, since this should go into the archives ]] In message <Pine.BSF.4.21.0009031816590.313-100000@veager.siteplus.net> Jim Weeks writes: : Configuration data for card in slot 0 First thing we need to do is get the mfg names. We look for the so called "Version 1 info" tuple which has this information. Ah, here we find it. : Tuple #2, code = 0x15 (Version 1 info), length = 46 : 000: 05 00 54 44 4b 00 44 46 33 30 30 30 20 44 61 74 : 010: 61 2f 46 61 78 20 4d 6f 64 65 6d 00 54 44 4b 20 : 020: 53 79 73 74 65 6d 73 00 56 30 2e 30 00 ff : Version = 5.0, Manuf = [TDK], card vers = [DF3000 Data/Fax Modem] : Addit. info = [TDK Systems],[V0.0] This tells me that we should start with an entry that looks like: card "TDK" "DF3000 Data/Fax Modem" config auto "sio" ? which should get you about 90% of the way there. If this doesn't work, then we need to tweak the config line to not use auto. To do that, you need to find the config entries for the CIS. These are in the "Configuration Entry" (type 0x1b). : Tuple #14, code = 0x1b (Configuration entry), length = 20 : 000: e0 41 9d 78 3d 86 46 26 4c e7 5f aa 60 f8 03 07 : 010: 30 bc 86 28 : Config index = 0x20(default) : Interface byte = 0x41 (I/O) +RDY/-BSY active : Vcc pwr: : Continuous supply current: 3.5 x 10mA : Max current average over 1 second: 1 x 100mA, ext = 0x46 : Max current average over 10 ms: 2 x 100mA : Power down supply current: 4.5 x 1mA : RDY/BSY scale Speed = 5.0 x 10 ms, scaled by 10 : Card decodes 10 address lines, 8 Bit I/O only : I/O address # 1: block start = 0x3f8 block length = 0x8 : IRQ modes: Level : IRQs: 2 3 4 5 7 9 10 15 : Max twin cards = 0 : Misc attr: (Audio-BVD2) (Power down supported) : Tuple #15, code = 0x1b (Configuration entry), length = 7 : 000: 21 08 aa 60 f8 02 07 : Config index = 0x21 : Card decodes 10 address lines, 8 Bit I/O only : I/O address # 1: block start = 0x2f8 block length = 0x8 : Tuple #16, code = 0x1b (Configuration entry), length = 7 : 000: 22 08 aa 60 e8 03 07 : Config index = 0x22 : Card decodes 10 address lines, 8 Bit I/O only : I/O address # 1: block start = 0x3e8 block length = 0x8 : Tuple #17, code = 0x1b (Configuration entry), length = 7 : 000: 23 08 aa 60 e8 02 07 : Config index = 0x23 : Card decodes 10 address lines, 8 Bit I/O only : I/O address # 1: block start = 0x2e8 block length = 0x8 : Tuple #18, code = 0x1b (Configuration entry), length = 3 : 000: 30 08 23 : Config index = 0x30 : Card decodes 3 address lines, 8 Bit I/O only OK. This tells me that this is a fairly standard modem card. They seem to like to have config 0x2N map to what FreeBSD calles sioN (or COM(N+1) in the DOS world). This means that you need to take into account which COM ports are used in your laptop, and then pick the next higher number: config 0x23 "sio" ? would likely be the right line. This card is different than most cards in that it can also decode any address that you give it, which means that config 0x30 "sio" ? might give you a better chance of having it work. In general I always try to give the "auto" entry a chance, then look for an entry that has one window mappable anywhere, then go for the specific entry if all else fails. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009032229.e83MT9G07093>