Don't return from overlapped ReadFile on EAGAIN and other non-fatal
[wine/gsoc_dplay.git] / dlls / winaspi / aspi.h
blobb9efd4d43fee832ac68af04e021a97a780c35229
1 /* ASPI definitions used for both WINASPI and WNASPI32 */
3 #ifndef __WINE_ASPI_H
4 #define __WINE_ASPI_H
6 #include "windef.h"
8 #include "pshpack1.h"
9 #ifdef __cplusplus
10 extern "C" {
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])
59 #ifdef __cplusplus
61 #endif /* #ifdef __cplusplus */
62 #include "poppack.h"
64 #endif