17768e42a2021a52c561ed8d3ff613159e173998
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 /* ReactOS-specific defines */
91 #define USE_REACTOS_DDK
94 /* Are we under GNU C (mingw) ??? */
97 #define DEF_U64(x) (x##ULL)
98 #define DEF_I64(x) (x##LL)
100 /* ReactOS-specific defines */
101 #ifdef USE_REACTOS_DDK
102 #define DDKFASTAPI __attribute__((fastcall))
103 #else //USE_REACTOS_DDK
105 #define DDKAPI __attribute__((stdcall))
106 #define DDKFASTAPI __attribute__((fastcall))
107 #define DDKCDECLAPI __attribute__((cdecl))
111 #define DECLSPEC_NAKED __attribute__((naked))
113 #else // !__GNUC__ => MSVC/Intel
115 #define DEF_U64(x) (x##UI64)
116 #define DEF_I64(x) (x##I64)
118 /* ReactOS-specific defines */
119 #ifdef USE_REACTOS_DDK
120 #else //USE_REACTOS_DDK
122 #define DDKAPI __stdcall
123 #define DDKFASTAPI __fastcall
124 #define DDKCDECLAPI _cdecl
128 #define DECLSPEC_NAKED __declspec(naked)
133 #endif //__UNIATA_CONFIG__H__