1 #ifndef __UNIATA_CONFIG__H__
2 #define __UNIATA_CONFIG__H__
5 /***************************************************/
7 /***************************************************/
9 /***************************************/
10 // Send Debug messages directly to DbgPrintLonner using its SDK
11 /***************************************/
13 //#define USE_DBGPRINT_LOGGER
15 /***************************************/
16 // Send Debug messages via ScsiPort API
17 /***************************************/
19 //#define SCSI_PORT_DBG_PRINT
21 /***************************************/
22 // Using DbgPrint on raised IRQL will crash w2k
23 // this will not happen immediately, so we shall see some logs.
24 // You can tune Irql checking here
25 // Note: you can avoid crashes if configure DbgPrintLogger to check Irql
26 /***************************************/
28 #define LOG_ON_RAISED_IRQL_W2K TRUE
29 //#define LOG_ON_RAISED_IRQL_W2K FALSE
31 /***************************************/
32 // Use hack to avoid PCI-ISA DMA limitations (physical memory must
33 // be allocated below 16Mb). Actually there is no such limitation,
34 // so we have to pretent to be PIO and converl logical addresses
35 // to physical manually
36 /***************************************/
40 /***************************************/
41 // Special option, enables dumping of ATAPI cammands and data buffers
43 /***************************************/
45 //#define UNIATA_DUMP_ATAPI
47 /***************************************/
48 // Optimization for uni-processor machines
49 /***************************************/
51 //#define UNI_CPU_OPTIMIZATION
53 /***************************************/
54 // Enable/disable performance statistics
55 /***************************************/
57 #define QUEUE_STATISTICS
61 /***************************************/
63 /***************************************/
67 /***************************************************/
68 /* Validate Options */
69 /***************************************************/
79 #ifdef USE_DBGPRINT_LOGGER
80 #undef USE_DBGPRINT_LOGGER
81 #endif //USE_DBGPRINT_LOGGER
85 /***************************************************/
86 /* Compiler dependencies */
87 /***************************************************/
89 #define DDKFASTAPI __fastcall
91 /* Are we under GNU C (mingw) ??? */
94 #define DEF_U64(x) (x##ULL)
95 #define DEF_I64(x) (x##LL)
97 #else // !__GNUC__ => MSVC/Intel
99 #define DEF_U64(x) (x##UI64)
100 #define DEF_I64(x) (x##I64)
105 #endif //__UNIATA_CONFIG__H__