Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Apr 2000 16:07:52 +0700 (NOVST)
From:      Alex Morozov <alex@idisys.iae.nsk.su>
To:        Warner Losh <imp@village.org>
Cc:        mobile@freebsd.org
Subject:   Re: We're reading CIS!
Message-ID:  <Pine.LNX.4.10.KSI2mu3.10004191606390.9645-100000@idisys.iae.nsk.su>
In-Reply-To: <200004190844.CAA99540@harmony.village.org>

next in thread | previous in thread | raw e-mail | index | archive | help

Does this mean that we're getting proper support for memory mapped cards?
Finally!
 
On Wed, 19 Apr 2000, Warner Losh wrote:

> 
> OK.  Looks like the newcard stuff is reading CIS.  Yippie skippie!
> attachment code and to convert some drivers to use this and to shake
> out that stuff.  Also, need to consider the proper way to deal with
> the running of scripts on card events currently done by pccardd, as
> well as a way to get pccardc dumpcis and other functions into the new
> system.

> 
> Here's the edited dmesg from my last test run before the commit,
> followed by a pccardc dumpcis to show that things appear to be
> working:
> 
> pcic0: intr
> pccard0: 00 CD 7f
> pccard0: enqueing INSERTION event
> pccard0: insertion event
> pcic_attach_card h 0xc0aa2844 h->dev 0xc0aa1a80 pccard pcic
> pccard0: pccard_card_attach
> pccard0: chip_socket_enable
> pccard0: pcic_chip_socket_enable cardtype mem 40
> pccard0: read_cis
> Calling scan_cis
> pcic_chip_mem_map window 0 bus 0+0+400 at card addr 0
> pcic_chip_do_mem_map window 0: 0000 8000 0000
> 0xc0a9aa80 0xc0aa1a80 3 0 0x1
> pcic_chip_do_mem_map window 0: 00d2 80d2 4000
> cis mem map c00d2000
> pccard0: CIS tuple chain:
> CISTPL_DEVICE type=null speed=null
>  01 03 00 00 ff
> CISTPL_FUNCID
>  21 02 06 00
> CISTPL_VERS_1
>  15 47 04 01 4d 65 67 61 68 65 72 74 7a 00 43 43
>  31 30 42 54 2f 32 00 50 43 4d 43 49 41 20 31 30
>  42 41 53 45 2d 54 2f 32 20 45 54 48 45 52 4e 45
>  54 20 41 44 41 50 54 45 52 00 30 30 30 30 38 36
>  31 30 32 42 43 30 00 00 ff
> CISTPL_CONFIG
>  1a 05 01 01 00 03 01
> CISTPL_CFTABLE_ENTRY
>  1b 0c c1 01 19 71 55 06 0e 2d 64 30 ff ff
> CISTPL_CFTABLE_ENTRY
>  1b 05 83 01 08 65 ff
> CISTPL_MANFID
>  20 04 28 01 03 01
> CISTPL_NO_LINK
>  14 00
> CISTPL_END
>  ff
> pccard0: chip_socket_disable
> pcic_chip_socket_disable
> pccard0: check_cis_quirks
> pccard0: functions scanning
> 
> ######## should have attached cards here. :-(
> 
> pcic0: intr
> pccard0: 00 CD 37
> pccard0: detaching card
> pccard0: enqueing REMOVAL event
> pcic0: intr
> pccard0: 00 CD 33
> pccard0: removal event
> pcic_detach_card: already detached
> 
> Notice that the above compares well to the dumpcis for the card, shown
> below:
> 
> Configuration data for card in slot 0
> Tuple #1, code = 0x1 (Common memory descriptor), length = 3
>     000:  00 00 ff
> 	Common memory device information:
> 		Device number 1, type No device, WPS = OFF
> 		Speed = No speed, Memory block size = 512b, 1 units
> Tuple #2, code = 0x21 (Functional ID), length = 2
>     000:  06 00
> 	Network/LAN adapter
> Tuple #3, code = 0x15 (Version 1 info), length = 71
>     000:  04 01 4d 65 67 61 68 65 72 74 7a 00 43 43 31 30
>     010:  42 54 2f 32 00 50 43 4d 43 49 41 20 31 30 42 41
>     020:  53 45 2d 54 2f 32 20 45 54 48 45 52 4e 45 54 20
>     030:  41 44 41 50 54 45 52 00 30 30 30 30 38 36 31 30
>     040:  32 42 43 30 00 00 ff
> 	Version = 4.1, Manuf = [Megahertz],card vers = [CC10BT/2]
> 	Addit. info = [PCMCIA 10BASE-T/2 ETHERNET ADAPTER],[000086102BC0],[]
> Tuple #4, code = 0x1a (Configuration map), length = 5
>     000:  01 01 00 03 01
> 	Reg len = 2, config register addr = 0x300, last config = 0x1
> 	Registers: X------- 
> Tuple #5, code = 0x1b (Configuration entry), length = 12
>     000:  c1 01 19 71 55 06 0e 2d 64 30 ff ff
> 	Config index = 0x1(default)
> 	Interface byte = 0x1 (I/O)
> 	Vcc pwr:
> 		Nominal operating supply voltage: 5 x 1V
> 		Max current average over 1 second: 1 x 100mA
> 		Max current average over 10 ms: 1.2 x 100mA
> 		Power down supply current: 2.5 x 10mA
> 	Card decodes 4 address lines, full 8/16 Bit I/O
> 		IRQ modes: Level, Pulse
> 		IRQ level = 4
> Tuple #6, code = 0x1b (Configuration entry), length = 5
>     000:  83 01 08 65 ff
> 	Config index = 0x3
> 	Interface byte = 0x1 (I/O)
> 	Card decodes 5 address lines, full 8/16 Bit I/O
> Tuple #7, code = 0x20 (Manufacturer ID), length = 4
>     000:  28 01 03 01
> 	PCMCIA ID = 0x128, OEM ID = 0x103
> Tuple #8, code = 0x14 (No link), length = 0
> Tuple #9, code = 0xff (Terminator), length = 0
> 1 slots found
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-mobile" in the body of the message
> 



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?Pine.LNX.4.10.KSI2mu3.10004191606390.9645-100000>