[vortex] 3c905cx-TXM
Jacques-Yves ANDRE
andre@drfmc.ceng.cea.fr
Wed, 20 Dec 2000 11:05:01 +0100
--------------Boundary-00=_DO2V3QC55QQD40ADDJFE
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
on attachement a backport for kernel 2.2.18 of patch posted in mail
http://www.scyld.com/pipermail/vortex/2000-November/000761.html
This backport work fine with my 3c905cx-TXM on dell dimension 4100.
--
Jacques-Yves ANDRÉ
CEA-Grenoble, DRFMC E-mail : jyandre@cea.fr
17 rue des Martyrs Tel : (33) 04 76 88 55 81
38054 GRENOBLE Cedex 9 Fax : (33) 04 76 88 51 53
--------------Boundary-00=_DO2V3QC55QQD40ADDJFE
Content-Type: text/x-c;
charset="iso-8859-1";
name="kernel-3c905cx.patch"
Content-Disposition: attachment; filename="kernel-3c905cx.patch"
Content-Transfer-Encoding: base64
LS0tIGxpbnV4L2RyaXZlcnMvbmV0LzNjNTl4LmMub3JpZwlNb24gRGVjIDExIDAxOjQ5OjQyIDIw
MDAKKysrIGxpbnV4L2RyaXZlcnMvbmV0LzNjNTl4LmMJVHVlIERlYyAxOSAxMjoxMDozNyAyMDAw
CkBAIC04NzUsNyArODc1LDcgQEAKIAlzdHJ1Y3Qgdm9ydGV4X3ByaXZhdGUgKnZwOwogCWludCBv
cHRpb247CiAJdW5zaWduZWQgaW50IGVlcHJvbVsweDQwXSwgY2hlY2tzdW0gPSAwOwkJLyogRUVQ
Uk9NIGNvbnRlbnRzICovCi0JaW50IGk7CisJaW50IGksIHN0ZXA7CiAKIAlkZXYgPSBpbml0X2V0
aGVyZGV2KGRldiwgMCk7CiAKQEAgLTk3NSw2ICs5NzUsMTEgQEAKIAkJcHJpbnRrKEtFUk5fV0FS
TklORyAiICoqKiBXYXJuaW5nOiBJUlEgJWQgaXMgdW5saWtlbHkgdG8gd29yayEgKioqXG4iLAog
CQkJICAgZGV2LT5pcnEpOwogI2VuZGlmCisJRUwzV0lORE9XKDQpOyAKKwl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