[PARPORT] some patches concerning IEEE1284 negotiation things


schreite@helena.physik.uni-stuttgart.de
Wed, 10 Jun 98 10:21:49 +0200


Hi,

I've made a little patch concerning IEEE1284 negotiation things and
sent them tom Tim.

This patch contains two things:

- While probing an IEEE1284 device: stores the well known command sets,
  the device reports, in a bit field (parport->device_info.well_known_cmdsets),
  as discussed in the parport mailing list some weeks ago.

- in parport_ieee1284.c: A function, parport_ieee1284_negotiate,
  very similar to parport_ieee1284_nibble_mode_ok, but slightly modified:
  * It provides 3 states to return: + device not IEEE1284 compliant
                                    + device IEEE1284 compliant and mode
                                      available
                                    + device IEEE1284 compliant, but mode
                                      not available (new)
  * Some signal bits are slightly changed, since the existing
    parport_ieee1284_nibble_mode_ok doesn't work with the HP OfficeJets,
    allthough they are specified to be IEEE1284 compliant devices. I have no
    original IEEE1284 specs, but I use the docs from Warp Nine Engeneering -
    The IEEE1284 Experts, and I think to strictly follow them.

    For not to disturb any other hardware, parport_probe uses
    the new parport_ieee1284_negotiate instead of
    parport_ieee1284_nibble_mode_ok only, if it was compiled with the
    command line argument -DHPOJ.

    Hm, should I include this option into the kernel configuration scripts?

    Hm, will parport_ieee1284_negotiate perhaps work with e v e r y
    IEEE1284 device, so it can fully replace parport_ieee1284_nibble_mode_ok?

Roger.

==================================================================
parport-2.1.105-diffs.tar.gz.uuencode:

begin 644 parport-2.1.105-diffs.tar.gz
M'XL(`%4\?C4``^U987,B-Q+=KYY?T;6INH`#9#M'XL(`%4\?C4``^U987,B-Q+=KYY?T;6INH`#9#0S@-=D-]ESG%KOV;'+N"JY
M3Y28$8S*@T2--,:NV_SWZ]8,F+7!V)O85[>ARX9"2$_=3ZW6TW!^^/[GD\-7
MSVK,]SM1!*\`PJ#MWM'\ZAT;69<!=-IA-PH[?A0",+_;#EZ!_[QNE588RW.`
M5R9.<R&M6-<OU]J^A#\O;&?<QBF,=`Y3GD]U;B'6B8`F7(I<B0RN1&ZD5A"T
M6(OY;>_MT\SS+E)I$)MFB;6R7"H#=J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GA2BN4E
M"?]D%8_ZG3._VV#,I_N\'.&-'M"?]D%8_ZG3._VV#,I_N\'.&-'N@Y*1W8!A5VG,(#56<A)RIQ$'.\5`3DT#<B
M,P+A.YRQT'U6F,0>8P%G@=]@071_/C>:[5?RP129A;<HQ]SG82[X96\)Z`WC
M@1\U`N<XJ2P2,RAR\:]FQ+0!K\\^'K]&Q\H?EMQ.6O>[TJ>W2T].>FOQ#KX`
M[^`!O/[3X?KKT4[[%_V#\Z.SB[\2M?\%,?<?B/GD^.#)>#AF?=0G7[`F)^@?
M>Q/%`0LQ?]K>#P_D#WSZ!"NRP&LVFTL^/6+^?]26<NQ3-=;9\N.Y-5_T<<8@
A##@6:B?M-T_WUM\*@JUM;6M;V]K6_K_LO^,J\U$`*```
`
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:49 EST