1 /* ASPI definitions used for both WINASPI and WNASPI32 */
11 #endif /* #ifdef __cplusplus */
13 /*********** OLD ****************/
15 /* Target status codes */
16 #define STATUS_GOOD 0x00
17 #define STATUS_CHKCOND 0x02
18 #define STATUS_BUSY 0x08
19 #define STATUS_RESCONF 0x18
21 #define ASPI_POSTING(prb) (prb->SRB_Flags & 0x1)
23 /* WNASPI32/WINASPI defs */
24 #define HOST_TO_TARGET(prb) (((prb->SRB_Flags>>3) & 0x3) == 0x2)
25 #define TARGET_TO_HOST(prb) (((prb->SRB_Flags>>3) & 0x3) == 0x1)
26 #define NO_DATA_TRANSFERED(prb) (((prb->SRB_Flags>>3) & 0x3) == 0x3)
29 #define INQUIRY_VENDOR 8
31 #define MUSTEK_SCSI_AREA_AND_WINDOWS 0x04
32 #define MUSTEK_SCSI_READ_SCANNED_DATA 0x08
33 #define MUSTEK_SCSI_GET_IMAGE_STATUS 0x0f
34 #define MUSTEK_SCSI_ADF_AND_BACKTRACE 0x10
35 #define MUSTEK_SCSI_CCD_DISTANCE 0x11
36 #define MUSTEK_SCSI_START_STOP 0x1b
38 #define CMD_TEST_UNIT_READY 0x00
39 #define CMD_REQUEST_SENSE 0x03
40 #define CMD_INQUIRY 0x12
42 /* scanner commands - just for debug */
43 #define CMD_SCAN_GET_DATA_BUFFER_STATUS 0x34
44 #define CMD_SCAN_GET_WINDOW 0x25
45 #define CMD_SCAN_OBJECT_POSITION 0x31
46 #define CMD_SCAN_READ 0x28
47 #define CMD_SCAN_RELEASE_UNIT 0x17
48 #define CMD_SCAN_RESERVE_UNIT 0x16
49 #define CMD_SCAN_SCAN 0x1b
50 #define CMD_SCAN_SEND 0x2a
51 #define CMD_SCAN_CHANGE_DEFINITION 0x40
53 #define INQURIY_CMDLEN 6
54 #define INQURIY_REPLY_LEN 96
55 #define INQUIRY_VENDOR 8
57 #define SENSE_BUFFER(prb) (&prb->CDBByte[prb->SRB_CDBLen])
61 #endif /* #ifdef __cplusplus */