Release 980315
[wine/multimedia.git] / documentation / aspi
blob942357e8170a5e94dc64f749fca62fd58e270375
1 This file describes setting up the Windows ASPI interface.
3 Warning/Warning/Warning!!!!!!
4 =============================
5 THIS MAY TRASH YOUR SYSTEM IF USED INCORRECTLY
6 THIS MAY TRASH YOUR SYSTEM IF USED CORRECTLY
8 Now that I have said that. ASPI is a direct link to SCSI devices from
9 windows programs. ASPI just forwards the SCSI commands that programs send
10 to it to the SCSI bus.
12 If you use the wrong scsi device in your setup file, you can send
13 completely bogus commands to the wrong device - An example would be
14 formatting your hard drives (assuming the device gave you permission -
15 if you're running as root, all bets are off).
17 Cookbook for setting up scanner: (At least how mine is to work)
18 ================================
20 Windows requirements:
21 =====================
22 0) The scanner software needs to use the "Adaptec" compatible drivers
23 (ASPI). At least with Mustek, they allow you the choice of using
24 the builtin card or the "Adaptec (AHA)" compatible drivers. This will not
25 work any other way.
27 1) You probably need a real windows install of the software to set the
28 LUN's/SCSI id's up correctly. I'm not exactly sure.
30 LINUX requirements:
31 ============================================================
32 0) Your scsi card must be supported under linux. This will not work with
33 an unknown scsi card.
35 1) Compile generic scsi drivers into your kernel.
37 2) Linux by default uses smaller scsi buffers than Windows. There is a
38 kernel build define SG_BIG_BUFF (in sg.h) that is by default set too low.
39 The SANE project recommends 130560 and this seems to work just fine. This
40 does require a kernel rebuild.
42 3) Make the devices for the scanner (generic scsi devices) - look at the scsi
43 programming how-to for device numbering.
45 4) I would recommend making the scanner device writable by a group.
46 I made a group called "scanner" and added myself to it. Running as root
47 increases your risk of sending bad scsi commands to the wrong device. With
48 a regular user, you are better protected.
50 5) Add a scsi device entry for your particular scanner to wine.conf.
51 The format is [scsi cCtTdD] where C=controller, T=target, D=LUN
53 ex. I set mine up as  controller 0, Target 6, LUN 0.
54 [scsi c0t6d0]
55 Device=/dev/sgi
57 Yours will vary with your particular SCSI setup.
60 General Information:
61 ====================
62 The mustek scanner I have was shipped with a package "ipplus". This
63 program uses the TWAIN driver specification to access scanners.
65                             (TWAIN MANAGER)
66 ipplus.exe <---> (TWAIN INTERFACE) <---> (TWAIN DATA SOURCE . ASPI) -> WINASPI
68 NOTES/BUGS:
69 ===========
70 The biggest is that it only works under linux at the moment.
71 The ASPI code was only tested using a Mustek 800SP with a Buslogic
72 controller under Linux.
74 I make no warranty to the aspi code. It makes my scanner work. Your scanner
75 may explode. I have no way of determining this. I take zero responsibility!
78 Bruce Milner