SiS 645DX patch
Jeroen
koffieyahoo at hotmail.com
Mon Jan 26 04:49:02 PST 2004
This patch enables the dma for the SiS 963 south bridge that accompanies my
SiS 645DX. It may also enable the dma in case of a SiS 962, although I don't
have the right hardware test this. In case of the SiS 961 I'm pretty sure
Jeroen Ruigrok already did the appropriate patching.
The pci_read/pci_write command in the patch come from the FreeBSD 5 code.
The rest of the code is just a copy of what occurs in many places in
ata-dma.c and ata-pci.c
Note that this patch does not fix the hanging during boot that occurs once
in a while. I have no idea why this happens.
Jeroen Ketema
begin 666 ata.patch
M26YD97 at Z(&1E=B]D:7-K+V%T82]A=&$M9&UA+F,*/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/0I20U, at 9FEL93H@+VAO;64O9&-V<R]S<F,O<WES+V1E=B]D:7-K
M+V%T82]A=&$M9&UA+F,L=@IR971R:65V:6YG(')E=FES:6]N(#$N.0ID:69F
M("UU("UR,2XY(&%T82UD;6$N8PHM+2T at 9&5V+V1I<VLO871A+V%T82UD;6$N
M8PDR,R!*86X@,C P-" Q-3HS-3HQ,R M,# P, DQ+CD**RLK(&1E=B]D:7-K
M+V%T82]A=&$M9&UA+F,),C8 at 2F%N(#(P,#0@,3(Z,#@Z-3@@+3 P,# *0$ @
M+34Q,"PV("LU,3 L.#<@0$ *( EB<F5A:SL*( H@(" @(&-A<V4@,'@U-3$S
M,3 S.3H)+RH at 4VE3(#4U.3$@*B\**PEI9B H871A7V9I;F1?9&5V*'!A<F5N
M="P@,'@P-C0V,3 S.2P@,"DI('L)+RH at 4VE3(#8T-418("HO"BL)(" @('!C
M:5]W<FET95]C;VYF:6<H<&%R96YT+" P>#4W+ HK"0D)(" @(" H<&-I7W)E
M861?8V]N9FEG*'!A<F5N="P@,'@U-RP@,2D@)B P>#=&*2P@,2D["BL)(" @
M(&EF("AP8VE?<F5A9%]C;VYF:6<H<&%R96YT+" P># P+" T*2 ]/2 P>#4U
M,3 at Q,#,Y*2!["BL)"75?:6YT,S)?="!R96=?8F%S92P@<F5G.PHK"BL)"7)E
M9U]B87-E(#T@<&-I7W)E861?8V]N9FEG*'!A<F5N="P@,'@U-RP@,2DF,'@T
M,#\P>#<P.C!X-# ["BL)"7)E9R ](')E9U]B87-E("L@*&1E=FYO/#PR*3L*
M*PHK"0EI9B H=61M86UO9&4@/B R("8F"BL)"2 @("!P8VE?<F5A9%]C;VYF
M:6<H<&%R96YT+ HK"0D)(" @(" @(" @(" @871A9&5V+3YC:&%N;F5L+3YU
M;FET/S!X-3(Z,'@U,"PR*28P>#@P,# I('L**PD)(" @(&%T85]P<G1D978H
M871A9&5V+ HK"0D)(" @(D1-02!L:6UI=&5D('1O(%5$34$R+"!N;VXM051!
M-C8 at 8V%B;&4@;W(@9&5V:6-E7&XB*3L**PD)(" @('5D;6%M;V1E(#T@,CL*
M*PD)?0HK"BL)"6EF("AU9&UA;6]D92 ^/2 V*2!["BL)"2 @("!E<G)O<B ]
M(&%T85]C;VUM86YD*&%T861E=BP at 051!7T-?4T541D5!5%5215,L(# L($%4
M05]51$U!-BP**PD)"0D)051!7T-?1E]315181D52+"!!5$%?5T%)5%]214%$
M62D["BL)"2 @("!I9B H8F]O='9E<F)O<V4I"BL)"0EA=&%?<')T9&5V*&%T
M861E=BP@(B5S('-E='1I;F<@541-038@;VX at 4VE3(&-H:7!<;B(L"BL)"0D)
M(" @*&5R<F]R*2 _(")F86EL960B(#H@(G-U8V-E<W,B*3L**PD)(" @(&EF
M("@A97)R;W(I('L**PD)"7!C:5]W<FET95]C;VYF:6<H<&%R96YT+"!R96<L
M(#!X,#4P.3,R,6,L(#(I.PHK"0D)871A9&5V+3YM;V1E(#T at 051!7U5$34$V
M.PHK"0D)<F5T=7)N.PHK"0D@(" @?0HK"0E]"BL)"6EF("AU9&UA;6]D92 ^
M/2 U*2!["BL)"2 @("!E<G)O<B ](&%T85]C;VUM86YD*&%T861E=BP at 051!
M7T-?4T541D5!5%5215,L(# L($%405]51$U!-2P**PD)(" @( D)(" @(" @
M("!!5$%?0U]&7U-%5%A&15(L($%405]704E47U)%0419*3L**PD)(" @(&EF
M("AB;V]T=F5R8F]S92D**PD)"6%T85]P<G1D978H871A9&5V+" B)7,@<V5T
M=&EN9R!51$U!-2!O;B!3:5, at 8VAI<%QN(BP**PD)"0D@(" H97)R;W(I(#\@
M(F9A:6QE9"(@.B B<W5C8V5S<R(I.PHK"0D@(" @:68@*"%E<G)O<BD@>PHK
M"0D)<&-I7W=R:71E7V-O;F9I9RAP87)E;G0L(')E9RP@,'@P-3 Y,S(R8RP@
M,BD["BL)"0EA=&%D978M/FUO9&4@/2!!5$%?541-034["BL)"0ER971U<FX[
M"BL)"2 @("!]"BL)"7T**PD):68@*'5D;6%M;V1E(#X](#0I('L**PD)(" @
M(&5R<F]R(#T at 871A7V-O;6UA;F0H871A9&5V+"!!5$%?0U]3151&14%455)%
M4RP@,"P at 051!7U5$34$T+ HK"0D)"0E!5$%?0U]&7U-%5%A&15(L($%405]7
M04E47U)%0419*3L**PD)(" @(&EF("AB;V]T=F5R8F]S92D**PD)"6%T85]P
M<G1D978H871A9&5V+" B)7,@<V5T=&EN9R!51$U!-"!O;B!3:5, at 8VAI<%QN
M(BP**PD)"0D@(" H97)R;W(I(#\@(F9A:6QE9"(@.B B<W5C8V5S<R(I.PHK
M"0D@(" @:68@*"%E<G)O<BD@>PHK"0D)<&-I7W=R:71E7V-O;F9I9RAP87)E
M;G0L(')E9RP@,'@P-3 Y,S(S8RP@,BD["BL)"0EA=&%D978M/FUO9&4@/2!!
M5$%?541-030["BL)"0ER971U<FX["BL)"2 @("!]"BL)"7T**PD):68@*'5D
M;6%M;V1E(#X](#(I('L**PD)(" @(&5R<F]R(#T at 871A7V-O;6UA;F0H871A
M9&5V+"!!5$%?0U]3151&14%455)%4RP@,"P at 051!7U5$34$R+ HK"0D)"0E!
M5$%?0U]&7U-%5%A&15(L($%405]704E47U)%0419*3L**PD)(" @(&EF("AB
M;V]T=F5R8F]S92D**PD)"6%T85]P<G1D978H871A9&5V+" B)7,@<V5T=&EN
M9R!51$U!,B!O;B!3:5, at 8VAI<%QN(BP**PD)"0D@(" H97)R;W(I(#\@(F9A
M:6QE9"(@.B B<W5C8V5S<R(I.PHK"0D@(" @:68@*"%E<G)O<BD@>PHK"0D)
M<&-I7W=R:71E7V-O;F9I9RAP87)E;G0L(')E9RP@,'@P-3 Y,S0W8RP@,BD[
M"BL)"0EA=&%D978M/FUO9&4@/2!!5$%?541-03(["BL)"0ER971U<FX["BL)
M"2 @("!]"BL)"7T**PD):68@*'=D;6%M;V1E(#X],B F)B!A<&EO;6]D92 ^
M/2 T*2!["BL)"2 @("!E<G)O<B ](&%T85]C;VUM86YD*&%T861E=BP at 051!
M7T-?4T541D5!5%5215,L(# L($%405]71$U!,BP**PD)"0D)051!7T-?1E]3
M15181D52+"!!5$%?5T%)5%]214%$62D["BL)"2 @("!I9B H8F]O='9E<F)O
M<V4I"BL)"0EA=&%?<')T9&5V*&%T861E=BP@(B5S('-E='1I;F<@5T1-03(@
M;VX at 4VE3(&-H:7!<;B(L"BL)"0D)(" @*&5R<F]R*2 _(")F86EL960B(#H@
M(G-U8V-E<W,B*3L**PD)(" @(&EF("@A97)R;W(I('L**PD)"7!C:5]W<FET
M95]C;VYF:6<H<&%R96YT+"!R96<L(#!X,#4P.3,P,#@L(#(I.PHK"0D)871A
M9&5V+3YM;V1E(#T at 051!7U=$34$R.PHK"0D)<F5T=7)N.PHK"0D@(" @?0HK
M"0E]"BL)"2\J('=E(&-O=6QD('-E="!024\@;6]D92!T:6UI;F=S+"!B=70@
M87-S=6UE($))3U, at 9&ED('1H870@*B\**PD)8G)E86L["BL)(" @('T**PE]
M"B ):68@*&%T85]F:6YD7V1E=BAP87)E;G0L(#!X,#8S,#$P,SDL(#!X,S I
M('Q\"2\J(%-I4R V,S @*B\*( D@(" @871A7V9I;F1?9&5V*'!A<F5N="P@
M,'@P-C,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BP@,2D[
M"B )8G)E86L["B **R @("!C87-E(#!X-34Q,S$P,SDZ(" @("\J(%-I4R U
M-3DQ("HO"BL):68@*&%T85]F:6YD7V1E=BAD978L(#!X,#8T-C$P,SDL(# I
M*2![(" @(" @+RH at 4VE3(#8T-418("HO"BL)(" @('!C:5]W<FET95]C;VYF
M:6<H9&5V+" P>#4W+ HK"0D)(" @(" H<&-I7W)E861?8V]N9FEG*&1E=BP@
M,'@U-RP@,2D@)B P>#=&*2P@,2D["BL)(" @(&EF("AP8VE?<F5A9%]C;VYF
M:6<H9&5V+" P># P+" T*2 ]/2 P>#4U,3 at Q,#,Y*2!["BL)"7!C:5]W<FET
M95]C;VYF:6<H9&5V+" P>#4P+ HK"0D)"2 H<&-I7W)E861?8V]N9FEG*&1E
M=BP@,'@U,"P@,BD@)B P>$9&1C<I+" R*3L**PD)<&-I7W=R:71E7V-O;F9I
M9RAD978L(#!X-3(L"BL)"0D)("AP8VE?<F5A9%]C;VYF:6<H9&5V+" P>#4R
M+" R*2 F(#!X1D9&,BDL(#(I.PHK"2 @("!]"BL)?0HK"6)R96%K.PHK"B @
M(" @8V%S92 P># V.# Q,#DU.B O*B!3:4D@,#8X,"!S970 at 051!(')E9F5R
M96YC92!C;&]C:R!S<&5E9" J+PH@"6EF("@H<&-I7W)E861?8V]N9FEG*&1E
M=BP@,'@X82P@,2D@)B P>#,P*2 A/2 P>#$P*0H@"2 @("!P8VE?=W)I=&5?
38V]N9FEG*&1E=BP@,'@X82P@"@``
`
end
More information about the Submit
mailing list