[PATCH] I2O support on alpha.

Pierrick Hascoet (pierrick.hascoet@hydromel.net)
Mon, 3 Jun 2002 11:23:23 +0200 (CEST)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

--389981102-1238584545-1023096203=:12819
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi,

Please find enclosed a little patch to support i2o controllers on alpha.
This patch is against 2.4.19-pre9 and works correctly with my i2o
controller used with the i2o_block driver.

Best regards,
Pierrick.

PS: Please, cc me to reply.

--389981102-1238584545-1023096203=:12819
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="i2o_alpha_support.diff"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.44.0206031123230.12819@host.alias.fr>
Content-Description:
Content-Disposition: attachment; filename="i2o_alpha_support.diff"

ZGlmZiAtTmF1ciBsaW51eC0yLjQuMTktcHJlOS9hcmNoL2FscGhhL2NvbmZp
Zy5pbiBsaW51eC0yLjQuMTktcHJlOS1waC9hcmNoL2FscGhhL2NvbmZpZy5p
bg0KLS0tIGxpbnV4LTIuNC4xOS1wcmU5L2FyY2gvYWxwaGEvY29uZmlnLmlu
CU1vbiBKdW4gIDMgMTE6MTM6NDcgMjAwMg0KKysrIGxpbnV4LTIuNC4xOS1w
cmU5LXBoL2FyY2gvYWxwaGEvY29uZmlnLmluCVdlZCBNYXkgMjkgMTE6NTY6
NDQgMjAwMg0KQEAgLTMyNiw2ICszMjYsNyBAQA0KIA0KIGlmIFsgIiRDT05G
SUdfUENJIiA9ICJ5IiBdOyB0aGVuDQogICBzb3VyY2UgZHJpdmVycy9tZXNz
YWdlL2Z1c2lvbi9Db25maWcuaW4NCisgIHNvdXJjZSBkcml2ZXJzL21lc3Nh
Z2UvaTJvL0NvbmZpZy5pbg0KIGZpDQogDQogaWYgWyAiJENPTkZJR19ORVQi
ID0gInkiIF07IHRoZW4NCmRpZmYgLU5hdXIgbGludXgtMi40LjE5LXByZTk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XQoaTJvX3BjaV9jb3JlX2F0dGFjaCk7DQogbW9kdWxl
X2V4aXQoaTJvX3BjaV9jb3JlX2RldGFjaCk7DQotIA0KXCBObyBuZXdsaW5l
IGF0IGVuZCBvZiBmaWxlDQorIA0KZGlmZiAtTmF1ciBsaW51eC0yLjQuMTkt
cHJlOS9kcml2ZXJzL21lc3NhZ2UvaTJvL2kyb19wcm9jLmMgbGludXgtMi40
LjE5LXByZTktcGgvZHJpdmVycy9tZXNzYWdlL2kyby9pMm9fcHJvYy5jDQot
LS0gbGludXgtMi40LjE5LXByZTkvZHJpdmVycy9tZXNzYWdlL2kyby9pMm9f
cHJvYy5jCU1vbiBKdW4gIDMgMTE6MTQ6MDUgMjAwMg0KKysrIGxpbnV4LTIu
NC4xOS1wcmU5LXBoL2RyaXZlcnMvbWVzc2FnZS9pMm8vaTJvX3Byb2MuYwlT
dW4gSnVuICAyIDE2OjM1OjMxIDIwMDINCkBAIC0zNSw3ICszNSw2IEBADQog
I2luY2x1ZGUgPGxpbnV4L3R5cGVzLmg+DQogI2luY2x1ZGUgPGxpbnV4L2tl
cm5lbC5oPg0KICNpbmNsdWRlIDxsaW51eC9wY2kuaD4NCi0jaW5jbHVkZSA8
bGludXgvaTJvLmg+DQogI2luY2x1ZGUgPGxpbnV4L3Byb2NfZnMuaD4NCiAj
aW5jbHVkZSA8bGludXgvaW5pdC5oPg0KICNpbmNsdWRlIDxsaW51eC9tb2R1
bGUuaD4NCkBAIC00Myw2ICs0Miw3IEBADQogI2luY2x1ZGUgPGxpbnV4L3Nw
aW5sb2NrLmg+DQogDQogI2luY2x1ZGUgPGFzbS9pby5oPg0KKyNpbmNsdWRl
IDxsaW51eC9pMm8uaD4NCiAjaW5jbHVkZSA8YXNtL3VhY2Nlc3MuaD4NCiAj
aW5jbHVkZSA8YXNtL2J5dGVvcmRlci5oPg0KIA0K
--389981102-1238584545-1023096203=:12819--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/