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
46 #define UNIATA_DUMP_RW
48 /***************************************/
49 // Optimization for uni-processor machines
50 /***************************************/
52 //#define UNI_CPU_OPTIMIZATION
54 /***************************************/
55 // Enable/disable performance statistics
56 /***************************************/
58 #define QUEUE_STATISTICS
62 /***************************************/
64 /***************************************/
68 /***************************************************/
69 /* Validate Options */
70 /***************************************************/
80 #ifdef USE_DBGPRINT_LOGGER
81 #undef USE_DBGPRINT_LOGGER
82 #endif //USE_DBGPRINT_LOGGER
86 /***************************************************/
87 /* Compiler dependencies */
88 /***************************************************/
90 /* ReactOS-specific defines */
92 #define USE_REACTOS_DDK
95 #ifdef USE_REACTOS_DDK
96 #define ULONGIO_PTR ULONG_PTR
98 #define CRNT_ILK_PTYPE
99 #define REGRTL_STR_PTYPE
101 #define ULONG_PTR ULONG
102 #define ULONGIO_PTR ULONG
103 #define CRNT_ILK_TYPE (PVOID)
104 #define CRNT_ILK_PTYPE (PVOID*)
105 #define REGRTL_STR_PTYPE (PWCHAR)
106 #endif //USE_REACTOS_DDK
108 /* Are we under GNU C (mingw) ??? */
111 #define DEF_U64(x) (x##ULL)
112 #define DEF_I64(x) (x##LL)
114 /* ReactOS-specific defines */
117 #define DDKAPI __attribute__((stdcall))
120 #define DDKCDECLAPI __attribute__((cdecl))
123 #define DDKFASTAPI __attribute__((fastcall))
126 #define DECLSPEC_NAKED __attribute__((naked))
128 #else // !__GNUC__ => MSVC/Intel
130 #define DEF_U64(x) (x##UI64)
131 #define DEF_I64(x) (x##I64)
133 /* ReactOS-specific defines */
136 #define DDKAPI __stdcall
139 #define DDKCDECLAPI _cdecl
142 #define DDKFASTAPI __fastcall
145 #define DECLSPEC_NAKED __declspec(naked)
150 #endif //__UNIATA_CONFIG__H__