Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Apr 2002 09:59:54 +0300 (EEST)
From:      ari.suutari@syncrontech.com
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/37333: puc driver does not recoginize new LAVA Quattro PCI cards
Message-ID:  <200204220659.g3M6xsM30623@guinness.syncrontech.com>

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

>Number:         37333
>Category:       kern
>Synopsis:       puc driver does not recoginize new LAVA Quattro PCI cards
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 22 00:10:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ari Suutari
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
Syncron Tech Oy
>Environment:
System: FreeBSD guinness.syncrontech.com 4.5-STABLE FreeBSD 4.5-STABLE #0: Tue Mar 12 12:43:14 EET 2002 root@guinness.syncrontech.com:/usr/src/sys/compile/GUINNESS i386


>Description:
	puc driver does not recognize new LAVA 4-port serial cards.
	There are two reasons for this: First, in puc.c pic_read_config
	is called to get PCIR_HEADERTYPE and the return is tested
	for being 0. However, new LAVA card is a multifunction one
	so it reports 0x80 as return. The high bit should be stripped
	before testing for zero as it is the multifunction indicator.

	Second reason is that chip id is different in new versions.
	Instead of being 0x0100 it is now 0x0120.
	
>How-To-Repeat:
	put LAVA Quattro-PCI card on FreeBSD 4.5-STABLE machine
	and compile kernel with 'puc' driver
>Fix:

	Apply folloing patches. The add description for new card
	into pucdata.c and correct the test in probe code in puc.c


begin 644 puc-patches
M(R!4:&ES(&ES(&$@<VAE;&P@87)C:&EV92X@(%-A=F4@:70@:6X@82!F:6QE
M+"!R96UO=F4@86YY=&AI;F<@8F5F;W)E"B,@=&AI<R!L:6YE+"!A;F0@=&AE
M;B!U;G!A8VL@:70@8GD@96YT97)I;F<@(G-H(&9I;&4B+B`@3F]T92P@:70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+6]F+7!U8RYC+F1I9F8*96-H;R!X("T@
M<'5C9&%T82YC+F1I9F8*<V5D("=S+UY8+R\G(#YP=6-D871A+F,N9&EF9B`\
M/"`G14Y$+6]F+7!U8V1A=&$N8RYD:69F)PI8*BHJ('!U8V1A=&$N8RYO<FEG
M"4UO;B!!<'(@,C(@,#DZ-#0Z-#,@,C`P,@I8+2TM('!U8V1A=&$N8PE-;VX@
M07!R(#(R(#`Y.C0Q.C(Q(#(P,#(*6"HJ*BHJ*BHJ*BHJ*BHJ*@I8*BHJ(#8P
M-RPV,3(@*BHJ*@I8+2TM(#8P-RPV,C(@+2TM+0I8("`)("`@('TL"E@@(`E]
M+`I8("`*6"L@"2\J($QA=F$@0V]M<'5T97)S(&YE=V5R(%%U871T<F\M4$-)
M('-E<FEA;"!P;W)T<R`J+PI8*R`)>R`@("),879A($-O;7!U=&5R<R!1=6%T
M=')O+5!#22!S97)I86P@<&]R="(L"E@K(`D@("`@>PDP>#$T,#<L"3!X,#$R
M,"P),"P),`E]+`I8*R`)("`@('L),'AF9F9F+`DP>&9F9F,L"3`L"3`)?2P*
M6"L@"2`@("!["E@K(`D)>R!054-?4$]25%]465!%7T-/32P@,'@Q,"P@,'@P
M,"P@0T]-7T9215$@?2P*6"L@"0E[(%!50U]03U)47U194$5?0T]-+"`P>#$T
M+"`P>#`P+"!#3TU?1E)%42!]+`I8*R`)("`@('TL"E@K(`E]+`I8*R`*6"`@
M"2\J($QA=F$@0V]M<'5T97)S($1397)I86P@4$-)('-E<FEA;"!P;W)T<R`J
M+PI8("`)>R`@("),879A($-O;7!U=&5R<R!S97)I86P@<&]R="(L"E@@(`D@
M("`@>PDP>#$T,#<L"3!X,#$Q,"P),"P),`E]+`I%3D0M;V8M<'5C9&%T82YC
,+F1I9F8*97AI=`H*
`
end
>Release-Note:
>Audit-Trail:
>Unformatted:

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




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