ReactOS  0.4.15-dev-489-g75a0787
stubs.c
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS Storage Stack
4  * FILE: drivers/storage/scsiport/stubs.c
5  * PURPOSE: SCSI port driver
6  * PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org)
7  */
8 
9 #include "precomp.h"
10 
11 #include <srb.h>
12 
13 #define NDEBUG
14 #include <debug.h>
15 
16 #undef ScsiPortReadPortBufferUchar
17 #undef ScsiPortReadPortBufferUshort
18 #undef ScsiPortReadPortBufferUlong
19 #undef ScsiPortReadPortUchar
20 #undef ScsiPortReadPortUshort
21 #undef ScsiPortReadPortUlong
22 #undef ScsiPortReadRegisterBufferUchar
23 #undef ScsiPortReadRegisterBufferUshort
24 #undef ScsiPortReadRegisterBufferUlong
25 #undef ScsiPortReadRegisterUchar
26 #undef ScsiPortReadRegisterUshort
27 #undef ScsiPortReadRegisterUlong
28 #undef ScsiPortWritePortBufferUchar
29 #undef ScsiPortWritePortBufferUshort
30 #undef ScsiPortWritePortBufferUlong
31 #undef ScsiPortWritePortUchar
32 #undef ScsiPortWritePortUshort
33 #undef ScsiPortWritePortUlong
34 #undef ScsiPortWriteRegisterBufferUchar
35 #undef ScsiPortWriteRegisterBufferUshort
36 #undef ScsiPortWriteRegisterBufferUlong
37 #undef ScsiPortWriteRegisterUchar
38 #undef ScsiPortWriteRegisterUshort
39 #undef ScsiPortWriteRegisterUlong
40 
42 NTAPI
44  IN ULONG_PTR UlongAddress)
45 {
47 
48  Address.QuadPart = UlongAddress;
49  return Address;
50 }
51 
52 VOID
53 NTAPI
55  IN PUCHAR Port,
57  IN ULONG Count)
58 {
60 }
61 
62 VOID
63 NTAPI
65  IN PUSHORT Port,
67  IN ULONG Count)
68 {
70 }
71 
72 VOID
73 NTAPI
75  IN PULONG Port,
77  IN ULONG Count)
78 {
80 }
81 
82 UCHAR
83 NTAPI
85  IN PUCHAR Port)
86 {
87  return READ_PORT_UCHAR(Port);
88 }
89 
90 USHORT
91 NTAPI
93  IN PUSHORT Port)
94 {
95  return READ_PORT_USHORT(Port);
96 }
97 
98 ULONG
99 NTAPI
101  IN PULONG Port)
102 {
103  return READ_PORT_ULONG(Port);
104 }
105 
106 VOID
107 NTAPI
109  IN PUCHAR Register,
110  IN PUCHAR Buffer,
111  IN ULONG Count)
112 {
114 }
115 
116 VOID
117 NTAPI
119  IN PUSHORT Register,
120  IN PUSHORT Buffer,
121  IN ULONG Count)
122 {
124 }
125 
126 VOID
127 NTAPI
129  IN PULONG Register,
130  IN PULONG Buffer,
131  IN ULONG Count)
132 {
134 }
135 
136 UCHAR
137 NTAPI
139  IN PUCHAR Register)
140 {
141  return READ_REGISTER_UCHAR(Register);
142 }
143 
144 USHORT
145 NTAPI
147  IN PUSHORT Register)
148 {
149  return READ_REGISTER_USHORT(Register);
150 }
151 
152 ULONG
153 NTAPI
155  IN PULONG Register)
156 {
157  return READ_REGISTER_ULONG(Register);
158 }
159 
160 VOID
161 NTAPI
163  IN PUCHAR Port,
164  IN PUCHAR Buffer,
165  IN ULONG Count)
166 {
168 }
169 
170 VOID
171 NTAPI
173  IN PUSHORT Port,
174  IN PUSHORT Buffer,
175  IN ULONG Count)
176 {
178 }
179 
180 VOID
181 NTAPI
183  IN PULONG Port,
184  IN PULONG Buffer,
185  IN ULONG Count)
186 {
188 }
189 
190 VOID
191 NTAPI
193  IN PUCHAR Port,
194  IN UCHAR Value)
195 {
197 }
198 
199 VOID
200 NTAPI
202  IN PUSHORT Port,
203  IN USHORT Value)
204 {
206 }
207 
208 VOID
209 NTAPI
211  IN PULONG Port,
212  IN ULONG Value)
213 {
215 }
216 
217 VOID
218 NTAPI
220  IN PUCHAR Register,
221  IN PUCHAR Buffer,
222  IN ULONG Count)
223 {
225 }
226 
227 VOID
228 NTAPI
230  IN PUSHORT Register,
231  IN PUSHORT Buffer,
232  IN ULONG Count)
233 {
235 }
236 
237 VOID
238 NTAPI
240  IN PULONG Register,
241  IN PULONG Buffer,
242  IN ULONG Count)
243 {
245 }
246 
247 VOID
248 NTAPI
250  IN PUCHAR Register,
251  IN UCHAR Value)
252 {
253  WRITE_REGISTER_UCHAR(Register, Value);
254 }
255 
256 VOID
257 NTAPI
259  IN PUSHORT Register,
260  IN USHORT Value)
261 {
262  WRITE_REGISTER_USHORT(Register, Value);
263 }
264 
265 VOID
266 NTAPI
268  IN PULONG Register,
269  IN ULONG Value)
270 {
271  WRITE_REGISTER_ULONG(Register, Value);
272 }
VOID NTAPI ScsiPortReadRegisterBufferUshort(IN PUSHORT Register, IN PUSHORT Buffer, IN ULONG Count)
Definition: stubs.c:118
CPPORT Port[4]
Definition: headless.c:34
#define IN
Definition: typedefs.h:39
ULONG NTAPI ScsiPortReadRegisterUlong(IN PULONG Register)
Definition: stubs.c:154
NTKERNELAPI VOID NTAPI WRITE_REGISTER_ULONG(IN PULONG Register, IN ULONG Value)
USHORT NTAPI ScsiPortReadRegisterUshort(IN PUSHORT Register)
Definition: stubs.c:146
VOID NTAPI WRITE_PORT_USHORT(IN PUSHORT Port, IN USHORT Value)
Definition: portio.c:115
VOID NTAPI WRITE_PORT_BUFFER_UCHAR(IN PUCHAR Port, IN PUCHAR Buffer, IN ULONG Count)
Definition: portio.c:77
SCSI_PHYSICAL_ADDRESS NTAPI ScsiPortConvertUlongToPhysicalAddress(IN ULONG_PTR UlongAddress)
Definition: stubs.c:43
USHORT NTAPI ScsiPortReadPortUshort(IN PUSHORT Port)
Definition: stubs.c:92
unsigned char * PUCHAR
Definition: retypes.h:3
UCHAR NTAPI READ_PORT_UCHAR(PUCHAR Address)
Definition: mach.c:528
VOID NTAPI ScsiPortWriteRegisterUlong(IN PULONG Register, IN ULONG Value)
Definition: stubs.c:267
ULONG NTAPI READ_PORT_ULONG(IN PULONG Port)
Definition: portio.c:70
VOID NTAPI READ_PORT_BUFFER_UCHAR(IN PUCHAR Port, OUT PUCHAR Buffer, IN ULONG Count)
Definition: portio.c:26
_Inout_ __drv_aliasesMem PSLIST_ENTRY _Inout_ PSLIST_ENTRY _In_ ULONG Count
Definition: exfuncs.h:1173
NTKERNELAPI VOID NTAPI WRITE_REGISTER_USHORT(IN PUSHORT Register, IN USHORT Value)
VOID NTAPI ScsiPortWriteRegisterBufferUchar(IN PUCHAR Register, IN PUCHAR Buffer, IN ULONG Count)
Definition: stubs.c:219
VOID NTAPI ScsiPortWriteRegisterUshort(IN PUSHORT Register, IN USHORT Value)
Definition: stubs.c:258
NTKERNELAPI ULONG NTAPI READ_REGISTER_ULONG(IN PULONG Register)
VOID NTAPI ScsiPortWritePortBufferUlong(IN PULONG Port, IN PULONG Buffer, IN ULONG Count)
Definition: stubs.c:182
IN UCHAR Value
Definition: halp.h:394
VOID NTAPI ScsiPortWriteRegisterBufferUshort(IN PUSHORT Register, IN PUSHORT Buffer, IN ULONG Count)
Definition: stubs.c:229
uint32_t ULONG_PTR
Definition: typedefs.h:64
NTKERNELAPI VOID NTAPI WRITE_REGISTER_BUFFER_UCHAR(IN PUCHAR Register, IN PUCHAR Buffer, IN ULONG Count)
UCHAR NTAPI ScsiPortReadRegisterUchar(IN PUCHAR Register)
Definition: stubs.c:138
VOID NTAPI WRITE_PORT_ULONG(IN PULONG Port, IN ULONG Value)
Definition: portio.c:123
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
NTKERNELAPI VOID NTAPI READ_REGISTER_BUFFER_ULONG(IN PULONG Register, IN PULONG Buffer, IN ULONG Count)
static WCHAR Address[46]
Definition: ping.c:68
VOID NTAPI ScsiPortReadPortBufferUchar(IN PUCHAR Port, IN PUCHAR Buffer, IN ULONG Count)
Definition: stubs.c:54
Definition: bufpool.h:45
VOID NTAPI ScsiPortWritePortBufferUchar(IN PUCHAR Port, IN PUCHAR Buffer, IN ULONG Count)
Definition: stubs.c:162
UCHAR NTAPI ScsiPortReadPortUchar(IN PUCHAR Port)
Definition: stubs.c:84
ULONG NTAPI ScsiPortReadPortUlong(IN PULONG Port)
Definition: stubs.c:100
VOID NTAPI ScsiPortWritePortUlong(IN PULONG Port, IN ULONG Value)
Definition: stubs.c:210
VOID NTAPI ScsiPortWriteRegisterBufferUlong(IN PULONG Register, IN PULONG Buffer, IN ULONG Count)
Definition: stubs.c:239
VOID NTAPI READ_PORT_BUFFER_USHORT(IN PUSHORT Port, OUT PUSHORT Buffer, IN ULONG Count)
Definition: portio.c:36
VOID NTAPI ScsiPortWriteRegisterUchar(IN PUCHAR Register, IN UCHAR Value)
Definition: stubs.c:249
unsigned char UCHAR
Definition: xmlstorage.h:181
VOID NTAPI ScsiPortWritePortBufferUshort(IN PUSHORT Port, IN PUSHORT Buffer, IN ULONG Count)
Definition: stubs.c:172
VOID NTAPI ScsiPortWritePortUshort(IN PUSHORT Port, IN USHORT Value)
Definition: stubs.c:201
VOID NTAPI ScsiPortReadRegisterBufferUlong(IN PULONG Register, IN PULONG Buffer, IN ULONG Count)
Definition: stubs.c:128
NTKERNELAPI UCHAR NTAPI READ_REGISTER_UCHAR(IN PUCHAR Register)
VOID NTAPI ScsiPortReadPortBufferUshort(IN PUSHORT Port, IN PUSHORT Buffer, IN ULONG Count)
Definition: stubs.c:64
VOID NTAPI ScsiPortReadRegisterBufferUchar(IN PUCHAR Register, IN PUCHAR Buffer, IN ULONG Count)
Definition: stubs.c:108
unsigned short USHORT
Definition: pedump.c:61
unsigned int * PULONG
Definition: retypes.h:1
NTKERNELAPI VOID NTAPI WRITE_REGISTER_BUFFER_USHORT(IN PUSHORT Register, IN PUSHORT Buffer, IN ULONG Count)
VOID NTAPI ScsiPortReadPortBufferUlong(IN PULONG Port, IN PULONG Buffer, IN ULONG Count)
Definition: stubs.c:74
NTKERNELAPI VOID NTAPI READ_REGISTER_BUFFER_UCHAR(IN PUCHAR Register, IN PUCHAR Buffer, IN ULONG Count)
VOID NTAPI ScsiPortWritePortUchar(IN PUCHAR Port, IN UCHAR Value)
Definition: stubs.c:192
VOID NTAPI READ_PORT_BUFFER_ULONG(IN PULONG Port, OUT PULONG Buffer, IN ULONG Count)
Definition: portio.c:46
unsigned int ULONG
Definition: retypes.h:1
NTKERNELAPI USHORT NTAPI READ_REGISTER_USHORT(IN PUSHORT Register)
void WRITE_PORT_UCHAR(PUCHAR Address, UCHAR Value)
Definition: mach.c:532
USHORT NTAPI READ_PORT_USHORT(IN PUSHORT Port)
Definition: portio.c:63
VOID NTAPI WRITE_PORT_BUFFER_ULONG(IN PULONG Port, IN PULONG Buffer, IN ULONG Count)
Definition: portio.c:97
NTKERNELAPI VOID NTAPI WRITE_REGISTER_UCHAR(IN PUCHAR Register, IN UCHAR Value)
unsigned short * PUSHORT
Definition: retypes.h:2
VOID NTAPI WRITE_PORT_BUFFER_USHORT(IN PUSHORT Port, IN PUSHORT Buffer, IN ULONG Count)
Definition: portio.c:87
NTKERNELAPI VOID NTAPI WRITE_REGISTER_BUFFER_ULONG(IN PULONG Register, IN PULONG Buffer, IN ULONG Count)
NTKERNELAPI VOID NTAPI READ_REGISTER_BUFFER_USHORT(IN PUSHORT Register, IN PUSHORT Buffer, IN ULONG Count)