Hi,
I have attached a first set of patches for
1) parallel support (part of PIO code and configure.in changes are from Rocco Caputo / troc@netrus.net)
2) support for sanei_scsi_find_devices;
But I don't know if PIO code works, because Rocco didn't tell it to me.
Bye,
Yuri Dario
/*
* member of TeamOS/2 - Italy
*/
--_=_=_=IMA.BOUNDARY.EWJW1J138764=_=_=_
Content-Type: application/octet-stream; name="patch1.073"
Content-Transfer-Encoding: base64
ZGlmZiAtdXJiQiBiYWNrZW5kL3FjYW0uYyBiYWNrZW5kL3FjYW0uYw0KLS0tIGJhY2tlbmQvcWNh
bS5jCVR1ZSBKYW4gMjcgMDg6Mzg6MTIgMTk5OA0KKysrIGJhY2tlbmQvcWNhbS5jCUZyaSBNYXkg
MjkgMTc6NDQ6MjAgMTk5OA0KQEAgLTIwMCwxMyArMjAwLDE4IEBADQogc3RhdGljIGNvbnN0IFNB
TkVfUmFuZ2UgYndfeV9yYW5nZSA9IHswLCAyNDEsIDF9OyANCiBzdGF0aWMgY29uc3QgU0FORV9S
YW5nZSBvZGRfYndfeV9yYW5nZSA9IHsxLCAyNDIsIDF9OyANCiANCi0jaWZkZWYgX19saW51eF9f
DQorI2lmIGRlZmluZWQoIF9fbGludXhfXykgfHwgSEFWRV9TWVNfSFdfSA0KIA0KLSNpZiBfX0dO
VV9MSUJSQVJZX18gLSAwIDwgNg0KLSMgaW5jbHVkZSA8YXNtL2lvLmg+DQotI2Vsc2UNCisjIGlm
IEhBVkVfU1lTX0lPX0gNCiAjIGluY2x1ZGUgPHN5cy9pby5oPg0KLSNlbmRpZg0KKyMgZWxpZiBI
QVZFX0FTTV9JT19IDQorIyAgaW5jbHVkZSA8YXNtL2lvLmg+DQorIyBlbGlmIEhBVkVfU1lTX0hX
X0gNCisjICBpbmNsdWRlIDxzeXMvaHcuaD4NCisjICBkZWZpbmUgaW5iKHApICAgICAgICBfaW5w
OChwKQ0KKyMgIGRlZmluZSBvdXRiKHYscCkgICAgIF9vdXRwOCgocCksKHYpKQ0KKyMgIGRlZmlu
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gZm9yKCBp
ZD0wOyBpZDw3OyBpZCsrKSB7DQorICAgICAgICAgdW5zaWduZWQgY2hhciBsZW47DQorICAgICAg
ICAgdW5zaWduZWQgY2hhciB2ZW5kb3JbOV07DQorICAgICAgICAgdW5zaWduZWQgY2hhciBwcm9k
dWN0WzE3XTsNCisgICAgICAgICB1bnNpZ25lZCBjaGFyIHZlcnNpb25bNV07DQorICAgICAgICAg
dW5zaWduZWQgY2hhciAqcHA7DQorDQorICAgICAgICAgbWVtc2V0KCAmU1JCbG9jaywgMCwgc2l6
ZW9mKCBTUkJsb2NrKSk7DQorICAgICAgICAgU1JCbG9jay5jbWQgPSBTUkJfRGV2aWNlOyAgICAg
ICAvLyBnZXQgZGV2aWNlIHR5cGUNCisgICAgICAgICBTUkJsb2NrLmhhX251bT1pOyAgICAgICAg
ICAgICAgIC8vIGhvc3QgYWRhcHRlciBudW1iZXINCisgICAgICAgICBTUkJsb2NrLmZsYWdzPTA7
ICAgICAgICAgICAgICAgIC8vIG5vIGZsYWdzIHNldA0KKyAgICAgICAgIFNSQmxvY2sudS5kZXYu
dGFyZ2V0PWlkOyAgICAgICAgLy8gdGFyZ2V0IGlkDQorICAgICAgICAgU1JCbG9jay51LmRldi5s
dW49MDsgICAgICAgICAgICAvLyB0YXJnZXQgTFVODQorICAgICAgICAgcmMgPSBEb3NEZXZJT0N0
bChkcml2ZXJfaGFuZGxlLCAweDkyLCAweDAyLA0KKyAgICAgICAgICAgICAgICAgICAgKHZvaWQq
KSAmU1JCbG9jaywgc2l6ZW9mKFNSQiksICZjYlBhcmFtLA0KKyAgICAgICAgICAgICAgICAgICAg
KHZvaWQqKSAmU1JCbG9jaywgc2l6ZW9mKFNSQiksICZjYnJldHVybik7DQorICAgICAgICAgREJH
KCAxLCAiT1MvMjogICAgICAgICAgICAgaWQjJTAyZCBzdGF0dXM9JTAyeGhcbiIsIGlkLCBTUkJs
b2NrLnN0YXR1cyk7DQorDQorICAgICAgICAgICAgLy8gc2tpcCBpZiB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AgICB9IH0sDQorICAgICAgeyAiTW9kZWw6IiwgICA2LCAwLCB7IG1vZGVsICAgICB9
IH0sDQorICAgICAgeyAiVHlwZToiLCAgICA1LCAwLCB7IHR5cGUgICAgICB9IH0sDQorICAgICAg
eyAiUmV2OiIsICAgICA0LCAwLCB7IHJldmlzaW9uICB9IH0sDQorICAgICAgeyAic2NzaSIsCSAg
ICA0LCAxLCB7ICZidXMgICAgICB9IH0sDQorICAgICAgeyAiQ2hhbm5lbDoiLCA4LCAxLCB7ICZj
aGFubmVsICB9IH0sDQorICAgICAgeyAiSWQ6IiwJICAgIDMsIDEsIHsgJmlkICAgICAgIH0gfSwN
CisgICAgICB7ICJMdW46IiwJICAgIDQsIDEsIHsgJmx1biAgICAgIH0gfQ0KKyAgICB9Ow0KKw0K
KyAgREJHX0lOSVQgKCk7DQorDQorICBvcGVuX2FzcGkoKTsgICAgICAgICAgICAgICAgICAgICAg
ICAgICAvLyBvcGVuIGFzcGkgbWFuYWdlciBpZiBub3QgYWxyZWFkeSBkb25lDQorDQorICBwcm9j
X2ZwID0gZm9wZW4oIHRtcEFzcGksICJyIik7DQorICBpZiAoIXByb2NfZnApDQorICAgIHsNCisg
ICAgICBEQkcgKDEsICJjb3VsZCBub3Qgb3BlbiAlcyBmb3IgcmVhZGluZ1xuIiwgdG1wQXNwaSk7
DQorICAgICAgcmV0dXJuOw0KKyAgICB9DQorDQorICBudW1iZXIgPSBidXMgPSBjaGFubmVsID0g
aWQgPSBsdW4gPSAtMTsNCisNCisgIHZlbmRvclswXSA9IG1vZGVsWzBdID0gdHlwZVswXSA9ICdc
MCc7DQorICBpZiAoZmluZHZlbmRvcikNCisgICAgZmluZHZlbmRvcl9sZW4gPSBzdHJsZW4gKGZp
bmR2ZW5kb3IpOw0KKyAgaWYgKGZpbmRtb2RlbCkNCisgICAgZmluZG1vZGVsX2xlbiA9IHN0cmxl
biAoZmluZG1vZGVsKTsNCisgIGlmIChmaW5kdHlwZSkNCisgICAgZmluZHR5cG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Y.EWJW1J138764=_=_=_--
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com