[7560] in linux-scsi channel archive
NCR53C400A for ScanJet - minor changes needed
daemon@ATHENA.MIT.EDU (Pavel Roskin)
Wed Nov 17 23:29:34 1999
Date: Wed, 17 Nov 1999 23:25:34 -0500 (EST)
From: Pavel Roskin <pavel_roskin@geocities.com>
To: K.Lentin@cs.monash.edu.au, linux-scsi@vger.rutgers.edu
Message-ID: <Pine.LNX.4.20.9911152123480.919-200000@localhost.localdomain>
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-384648810-942899047=:510"
Content-ID: <Pine.LNX.4.20.9911172325300.834@localhost.localdomain>
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.
--8323328-384648810-942899047=:510
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.LNX.4.20.9911172325301.834@localhost.localdomain>
Hello!
I've got a scanner HP ScanJet 3p with a SCSI interface card. The interface
card has a chip marked as NCR53C400A and other smaller chips. It also has
a jumper without any information. The documantation that comes with the
scanner mentiones 4 jumpers, so presumably it's a slightly modified
version of the interface card.
Linux-2.2.13 cannot find the card. But if I boot it with loadlin from DOS
with the DOS driver loaded, it does find the card! I can even scan images
with SANE!
The parameters are:
modprobe g_NCR5380 ncr_53c400a=1 ncr_addr=0x280
My investigation shows that the DOS driver sends different values to the
ports 0x379 and 0x779
The attached patch makes Linux see my scanner. However, it is _not_ meant
to be applied.
If I understand correctly, the port 0x379 (write only) has to do with
IsaPNP. Although the scanner card is not a PnP card, it may have an ID
for configuring it through the port 0x379. That ID is different in my
case.
Possible solutions:
1) Specify the ID as a parameter. Not nice, but flexible.
2) Add a parameter ncr_brand. If it is "HP", use the values from my patch,
otherwise use the existing values.
I know that the last 2.3.x kernel has the same driver for NCR53C400A
Pavel Roskin
--8323328-384648810-942899047=:510
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="400a.diff"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.20.9911172324070.510@localhost.localdomain>
Content-Description:
Content-Disposition: ATTACHMENT; FILENAME="400a.diff"
LS0tIGRyaXZlcnMvc2NzaS9nX05DUjUzODAuYy52MAlUdWUgT2N0IDE5IDIw
OjE0OjAxIDE5OTkNCisrKyBkcml2ZXJzL3Njc2kvZ19OQ1I1MzgwLmMJVGh1
IE5vdiAxMSAwNzo1ODo1OCAxOTk5DQpAQCAtMzE3LDExICszMTcsMTEgQEAN
CiAJICAgIC8qIHdha2V1cCBzZXF1ZW5jZSBmb3IgdGhlIE5DUjUzQzQwMEEg
YW5kIERUQzMxODFFKi8NCiANCiAJICAgIC8qIERpc2FibGUgdGhlIGFkYXB0
ZXIgYW5kIGxvb2sgZm9yIGEgZnJlZSBpbyBwb3J0ICovDQotCSAgICBvdXRi
KDB4NTksIDB4Nzc5KTsNCi0JICAgIG91dGIoMHhiOSwgMHgzNzkpOw0KLQkg
ICAgb3V0YigweGM1LCAweDM3OSk7DQotCSAgICBvdXRiKDB4YWUsIDB4Mzc5
KTsNCi0JICAgIG91dGIoMHhhNiwgMHgzNzkpOw0KKwkgICAgb3V0YigweDBm
LCAweDc3OSk7DQorCSAgICBvdXRiKDB4MjIsIDB4Mzc5KTsNCisJICAgIG91
dGIoMHhmMCwgMHgzNzkpOw0KKwkgICAgb3V0YigweDIwLCAweDM3OSk7DQor
CSAgICBvdXRiKDB4ODAsIDB4Mzc5KTsNCiAJICAgIG91dGIoMHgwMCwgMHgz
NzkpOw0KIA0KIAkgICAgaWYgKG92ZXJyaWRlc1tjdXJyZW50X292ZXJyaWRl
XS5OQ1I1MzgwX21hcF9uYW1lICE9IFBPUlRfQVVUTykNCkBAIC0zMzUsMTEg
KzMzNSwxMSBAQA0KIAkgICAgICAgICAgICAgICAgYnJlYWs7DQogCQl9DQog
CSAgICBpZiAocG9ydHNbaV0pIHsNCi0JICAgICAgICBvdXRiKDB4NTksIDB4
Nzc5KTsNCi0JICAgICAgICBvdXRiKDB4YjksIDB4Mzc5KTsNCi0JICAgICAg
ICBvdXRiKDB4YzUsIDB4Mzc5KTsNCi0JICAgICAgICBvdXRiKDB4YWUsIDB4
Mzc5KTsNCi0JICAgICAgICBvdXRiKDB4YTYsIDB4Mzc5KTsNCisJICAgICAg
ICBvdXRiKDB4MGYsIDB4Nzc5KTsNCisJICAgICAgICBvdXRiKDB4MjIsIDB4
Mzc5KTsNCisJICAgICAgICBvdXRiKDB4ZjAsIDB4Mzc5KTsNCisJICAgICAg
ICBvdXRiKDB4MjAsIDB4Mzc5KTsNCisJICAgICAgICBvdXRiKDB4ODAsIDB4
Mzc5KTsNCiAJICAgICAgICBvdXRiKDB4ODAgfCBpLCAweDM3OSk7ICAgICAg
ICAgIC8qIHNldCBpbyBwb3J0IHRvIGJlIHVzZWQgKi8NCiAgICAgICAgIAlv
dXRiKDB4YzAsIHBvcnRzW2ldICsgOSk7DQogCSAgICAgICAgaWYgKGluYihw
b3J0c1tpXSArIDkpICE9IDB4ODApDQo=
--8323328-384648810-942899047=:510--
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu