On the Windows side:
$ cat /proc/scsi/scsiIt should show something like
Attached devices: Host: scsi0 Channel: 00 Id: 06 Lun: 00 Vendor: N-TEK Model: NuScan II Rev: 1.60 Type: Scanner ANSI SCSI revision: 03
# ln -s /dev/sga /dev/scanner
# chmod 666 /dev/sga
[scsi c0t6d0]
Device=/dev/scanner
--- wine-cvs/dlls/wnaspi32/winaspi32.c Sun Oct 24 23:14:40 1999
+++ wine/dlls/wnaspi32/winaspi32.c Sun Dec 19 12:48:50 1999
@@ -372,6 +372,7 @@
X(Status);X(HaId);X(Flags);X(Target);X(Lun);
#undef X
tmpsrb.cmd.SRB_BufLen = sizeof(inqbuf);
+ tmpsrb.cmd.SRB_Flags = 8;/*target->host data. FIXME: anything more?*/
tmpsrb.cmd.SRB_BufPointer = inqbuf;
tmpsrb.cmd.CDBByte[0] = 0x12; /* INQUIRY */
tmpsrb.cmd.CDBByte[4] = sizeof(inqbuf);
@@ -380,8 +381,8 @@
#define X(x) lpSRB->devtype.SRB_##x = tmpsrb.cmd.SRB_##x
X(Status);
#undef X
- lpSRB->devtype.SRB_DeviceType = inqbuf[0]>>3;
- FIXME("returning devicetype %d for target %d\n",inqbuf[0]>>3,tmpsrb.cmd.SRB_Target);
+ lpSRB->devtype.SRB_DeviceType = inqbuf[0]&0x1f;
+ FIXME("returning devicetype %d for target %d\n",inqbuf[0]&0x1f,tmpsrb.cmd.SRB_Target);
break;
}
case SC_EXEC_SCSI_CMD:
(Hopefully you won't have to do that; the January release of Wine should already include that patch.)
cd /dos/c/windows/twain_32/scanport wine scan32.exe
cd /dos/c/qv25 wine qv25.exe