Re: PCMCIA Token Ring and kernels 1.3.78 onward

Yann Doussot (doussot@via.ecp.fr)
Thu, 4 Apr 1996 18:27:05 +0200 (MET DST)


On Thu, 4 Apr 1996, Christopher A. Smith wrote:

> Upon hearing that pcmcia-cs-2.8.9 supported PCMCIA Token Ring cards, a
> co-worker asked me to help him upgrade his IBM Thinkpad to a more recent
> version of Linux (something beyond 1.2.13) so that he could plug it in to
> our Token Ring network at work.
>
> After installing the preliminary stuff -- new gcc, C libraries, etc. --
> and FINALLY getting the right version of the modules stuff -- I won major
> idiot points for that blunder -- I tried installing the latest version of
> the PCMCIA stuff, 2.8.10, and a recent version of the kernel, 1.3.79.
> Everything compiled fine, and everything loaded properly except for the
> PCMCIA token ring stuff, which failed because trdev_init() was undefined.
> After looking through the PCMCIA source and the kernel source, I found
> that trdev_init(), in drivers/net/ibmtr.c, is mentioned in comments and as
> a prototype, but never defined anywhere in the kernel source. I backed up
> to kernel 1.3.72, found trdev_init() defined there, and then moved forward
> in the revision history, from 1.3.72 to 1.3.83, and found that trdev_init()
> disappeared in 1.3.78.
>
> Was this intentional -- ie. some sort of in-progress code reworking -- or
> was it purely inadvertent?
>

Well in fact it was not intentional. The Tr code was rewritten to work on
linux Alpha. We made a patch against 1.3.70. This patch was included in
1.3.78. PCMCIA stuff vanished when our patch was applied on the source
tree. Here is a patch I made against 1.3.80 (it should work with 1.3.8x).
As I don't have access to PCMCIA I can't test it. All I can tell is that
it compiles fine. Also it doesn't break ISA card code. Can you test it
and tell me if it works ? Thanks

Yann Doussot doussot@via.ecp.fr

----
begin 644 tr-1.3.80
M+2TM(&QI;G5X+V1R:79E<G,O;F5T+VEB;71R+F,)5'5E($UA<B`R-B`Q,#HT
M,#HR,B`Q.3DV"BLK*R!L:6YU>"TQ+C,N.#`M<&-M8VEA+V1R:79E<G,O;F5T
M+VEB;71R+F,)4V%T($UA<B`S,"`P,3HR-3HQ,B`Q.3DV"D!`("TQ-3,L-R`K
M,34S+#<@0$`*(&EN="!T;VM?<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"2-I9F1E9B!00TU#24$**R`@("`@(`D)
M+RH@0VAE8VL@:68@=&AE(%!#34-)02!C87)D('=A<R!P=6QL960N("HO"BL@
M("`@"0EI9B`H<W1A='5S(#T](#!X1D8I"BL@("`@("`@"0E["BL)"2`@("`@
M("`@("!$4%))3E1+*")00TU#24$@8V%R9"!R96UO=F5D+EQN(BD["BL@("`@
M("`@(`D)("!D978M/FEN=&5R<G5P="`](#`["BL@("`@("`@("`@"0D@(')E
M='5R;CL**R`@("`@("`)"7T**PHK("`@(`D@("`@("`@("\J($-H96-K($E3
M4E`@159%3B!T;V\N("HO"BL@("`@("`)("`@("`@("!I9B`H("HH=6YS:6=N
M960@8VAA<B`J*2AT:2T^;6UI;R`K($%#05]/1D93150@*R!!0T%?4E<@*R!)
M4U)07T5614XI(#T](#!X1D8I"BL@("`@"2`@("`@("`@>PHK("`@("`@("`@
M"0D@1%!224Y42R@B4$--0TE!(&-A<F0@<F5M;W9E9"Y<;B(I.PHK("`@("`@
M("`@"0D@9&5V+3YI;G1E<G)U<'0@/2`P.PHK("`@("`@("`@"0D@<F5T=7)N
M.PHK("`@("`@"0D@?0HK"0DC96YD:68**PH@"0D*(`D):68@*'-T871U<R`F
M($%$05!?0TA+7TE.5"D@>PH@"0D)"B`)"0EI;G0@:3L*(`D)"5]?=3,R(&-H
M96-K7W)E87-O;CL*(`HM"0D)8VAE8VM?<F5A<V]N/71I+3YM;6EO("L@;G1O
M:',H<F5A9'<H=&DM/FUM:6\@*R!!0T%?3T9&4T54("L@04-!7U)7("M75T-2
M7T5614XI*3L**PD)"6-H96-K7W)E87-O;CUT:2T^;6UI;R`K(&YT;VAS*')E
M861W*'1I+3YS<F%M("L@04-!7T]&1E-%5"`K($%#05]25R`K5U=#4E]%5D5.
M*2D["B`)"0D*(`D)"4104DE.5$LH(D%D87!T97(@8VAE8VL@:6YT97)R=7!T
M7&XB*3L*(`D)"4104DE.5$LH(C@@<F5A<V]N(&)Y=&5S(&9O;&QO=SH@(BD[
M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