[PARPORT] parport_pc & ECR


Andrea Arcangeli (arcangeli@mbox.queen.it)
Sat, 30 May 1998 17:04:48 +0200 (CEST)


Here a more complete patch against parport_pc.c in 2.1.103. This fix some
other points where we wrote to the ECR register even if it wasn' t
detected. Also it avoid the saving of that register for every parport
scheduling.

A more delicate point is the default initialization of the ECR if
detected. The patch set the ECR to 0x0 and this allows Andreas Muck to
print also with the port in ECP.

Please Andreas try this patch with your HP printer (also using
interrupts) with 2.1.104 (or with my latest lp HP patch applyed to 103).

To understand better what your hardware need, you could try to edit by
hand parport_pc.c changing the underlined value:

[..] line 721
        if (p->modes & PARPORT_MODE_PCECR)
                /*
                 * Put the ECP port in SPP mode, if a pardevice will need
                 * ECP it will had to use parport_change_mode().
                 */
                parport_pc_write_econtrol(p, 0x0);
[..] ^

before to 0x8 and then to 0x4 (since before was set to 0xc).

Comments?

Andrea[s] Arcangeli

PS. The patch is untested since my parallel port is set to EPP and
currently I have the machine under high usage so I haven' t a lot of time
to reset... if somebody will report problems I will reset ;-).

begin 644 parport_pc-ECR-2.1.103-1.diff.gz
M'XL("!<<<#4"`W!A<G!O<G1?<&,M14-2+3(N,2XQ,#,M,2YD:69F`-V7WW/B
M1@S'G^&OT,W-M(`-V&`,29J;,(3<9.:2T"3MJ\?8:]@Y\+J[ZR37]O[WTZX-
MAD#X<<U37T@`22M]]%U9U.MUF-$X?6F&G#X1+IIS*H)FXO.$<>DE02,HV2<G
MO:;E-%L=L*W3=N^T[93LAETV#.-`WTZS;8'MG#KN::M7OKB`NMUU3+L-AO[;
M@8N+,CPQ&D+A[`G_B7A"^I)4A.1I(!=?0BTQ8?VCS`YJHEJ&?\I0$O5/:4,E
M(#F<KP;EQ`^]@,62LUDEJ9Z5ZTM;$FRS):O&1HE&4$GJG^8L)`)^@5'_?G1W
M_^C=W%T.O=M_^C=W%T.O=%@.+BOHM$Q(>%[&39KYT1(QG^Z_)5(SYQ*4E2,M_^C=W%T.O=%@.+BOHM$Q(>%[&39KYT1(QG^Z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9EZ?7+TW%=C65%DY`2V/1Q6P9?XJG)OO6W#M2E/"V*M$+
M!Y?Q;MK*CX*5GN\(M!Y?Q;MK*CX*5GN\(J._GB@ZPZ`GWYW-_/,M4E8^Y8LBYCEXYW4Y[(:T5]R4W
MM74N$\%Y<KI+,/"^BH%UR6P10W9)NE9/5=*U>XL'80F7_FCF3P3\6UR)JR_]
MS][@[J:?0=5[<DSTQ<,=J`%X39XA266Q%:.2]"9-L-G(40F,RWJ::*61_=OR
M8@\^](<(+F7XBDO6*,]";0=Y)H"-T,]G$S"8KV03DB<:$'BFLQG$A(2YLW+"
M+4U_//5#M?'C0K?4&0HVGA!/A:I4&YE/<^_/(.O%VG-O]R[]:*!E]`.;-(#)
$Q`\`````
`
end

-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --



This archive was generated by hypermail 2.0b3 on Wed 30 Dec 1998 - 10:17:48 EST