From owner-freebsd-mobile Sat Dec 6 15:31:02 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA24214 for mobile-outgoing; Sat, 6 Dec 1997 15:31:02 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from dominator.eecs.harvard.edu (dominator.eecs.harvard.edu [140.247.60.28]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id PAA24201 for ; Sat, 6 Dec 1997 15:30:58 -0800 (PST) (envelope-from karp@eecs.harvard.edu) Received: (from karp@localhost) by dominator.eecs.harvard.edu (8.6.12/8.6.12) id SAA15532 for freebsd-mobile@freebsd.org; Sat, 6 Dec 1997 18:30:57 -0500 Date: Sat, 6 Dec 1997 18:30:57 -0500 From: Brad Karp Message-Id: <199712062330.SAA15532@dominator.eecs.harvard.edu> To: freebsd-mobile@freebsd.org Subject: pccard.conf entry for Linksys Combo Ethernet (EC2T) Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Just wanted to share a pccard.conf entry I had to cook up to get my Linksys PCMCIA Ethernet Combo (10Base{2,T}) card recognized by 2.2.5-STABLE. My card seems to have different CIS ID strings than the Linksys cards that have entries in PAO's pccard.conf. Odd. # Linksys Combo PCMCIA EthenretCard (model EC2T on box) card "Linksys" "Combo PCMCIA EthernetCard (EC" config 0x1 "ed0" ? insert echo Linksys Ethernet inserted insert /etc/pccard_ether ed0 remove echo Linksys Ethernet removed remove /sbin/ifconfig ed0 delete Yes, the second string looks truncated--the string is so long that the fixed array size in the slot data structure truncates it. BTW, this suggests that someone ought to change the strcmp for the CIS strings in pccardd to strncmp, so the comparison is bounded by the length of the slot's stored string, eh? That way, one could safely put `pccardc dumpcis` into a pccard.conf entry verbatim. -Brad, karp@eecs.harvard.edu