ReactOS 0.4.15-dev-8096-ga0eec98
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 "scsiport.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
44 IN ULONG_PTR UlongAddress)
45{
47
48 Address.QuadPart = UlongAddress;
49 return Address;
50}
51
52VOID
58{
60}
61
62VOID
68{
70}
71
72VOID
78{
80}
81
86{
87 return READ_PORT_UCHAR(Port);
88}
89
94{
95 return READ_PORT_USHORT(Port);
96}
97
101 IN PULONG Port)
102{
103 return READ_PORT_ULONG(Port);
104}
105
106VOID
107NTAPI
111 IN ULONG Count)
112{
114}
115
116VOID
117NTAPI
121 IN ULONG Count)
122{
124}
125
126VOID
127NTAPI
131 IN ULONG Count)
132{
134}
135
136UCHAR
137NTAPI
140{
142}
143
144USHORT
145NTAPI
148{
150}
151
152ULONG
153NTAPI
156{
158}
159
160VOID
161NTAPI
163 IN PUCHAR Port,
165 IN ULONG Count)
166{
168}
169
170VOID
171NTAPI
175 IN ULONG Count)
176{
178}
179
180VOID
181NTAPI
183 IN PULONG Port,
185 IN ULONG Count)
186{
188}
189
190VOID
191NTAPI
193 IN PUCHAR Port,
194 IN UCHAR Value)
195{
197}
198
199VOID
200NTAPI
204{
206}
207
208VOID
209NTAPI
211 IN PULONG Port,
212 IN ULONG Value)
213{
215}
216
217VOID
218NTAPI
222 IN ULONG Count)
223{
225}
226
227VOID
228NTAPI
232 IN ULONG Count)
233{
235}
236
237VOID
238NTAPI
242 IN ULONG Count)
243{
245}
246
247VOID
248NTAPI
251 IN UCHAR Value)
252{
254}
255
256VOID
257NTAPI
261{
263}
264
265VOID
266NTAPI
269 IN ULONG Value)
270{
272}
#define WRITE_REGISTER_USHORT(r, v)
Definition: arm.h:30
#define READ_REGISTER_USHORT(r)
Definition: arm.h:29
#define WRITE_REGISTER_ULONG(r, v)
Definition: arm.h:27
#define READ_REGISTER_ULONG(r)
Definition: arm.h:26
Definition: bufpool.h:45
VOID NTAPI ScsiPortWritePortBufferUlong(IN PULONG Port, IN PULONG Buffer, IN ULONG Count)
Definition: stubs.c:182
VOID NTAPI ScsiPortWritePortUlong(IN PULONG Port, IN ULONG Value)
Definition: stubs.c:210
USHORT NTAPI ScsiPortReadPortUshort(IN PUSHORT Port)
Definition: stubs.c:92
VOID NTAPI ScsiPortWriteRegisterBufferUshort(IN PUSHORT Register, IN PUSHORT Buffer, IN ULONG Count)
Definition: stubs.c:229
VOID NTAPI ScsiPortWritePortUshort(IN PUSHORT Port, IN USHORT Value)
Definition: stubs.c:201
SCSI_PHYSICAL_ADDRESS NTAPI ScsiPortConvertUlongToPhysicalAddress(IN ULONG_PTR UlongAddress)
Definition: stubs.c:43
VOID NTAPI ScsiPortWritePortUchar(IN PUCHAR Port, IN UCHAR Value)
Definition: stubs.c:192
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
VOID NTAPI ScsiPortReadRegisterBufferUshort(IN PUSHORT Register, IN PUSHORT Buffer, IN ULONG Count)
Definition: stubs.c:118
VOID NTAPI ScsiPortWritePortBufferUshort(IN PUSHORT Port, IN PUSHORT Buffer, IN ULONG Count)
Definition: stubs.c:172
VOID NTAPI ScsiPortWriteRegisterBufferUlong(IN PULONG Register, IN PULONG Buffer, IN ULONG Count)
Definition: stubs.c:239
VOID NTAPI ScsiPortReadRegisterBufferUchar(IN PUCHAR Register, IN PUCHAR Buffer, IN ULONG Count)
Definition: stubs.c:108
VOID NTAPI ScsiPortWriteRegisterUchar(IN PUCHAR Register, IN UCHAR Value)
Definition: stubs.c:249
VOID NTAPI ScsiPortWriteRegisterUlong(IN PULONG Register, IN ULONG Value)
Definition: stubs.c:267
VOID NTAPI ScsiPortReadPortBufferUshort(IN PUSHORT Port, IN PUSHORT Buffer, IN ULONG Count)
Definition: stubs.c:64
VOID NTAPI ScsiPortReadRegisterBufferUlong(IN PULONG Register, IN PULONG Buffer, IN ULONG Count)
Definition: stubs.c:128
UCHAR NTAPI ScsiPortReadRegisterUchar(IN PUCHAR Register)
Definition: stubs.c:138
ULONG NTAPI ScsiPortReadRegisterUlong(IN PULONG Register)
Definition: stubs.c:154
VOID NTAPI ScsiPortReadPortBufferUlong(IN PULONG Port, IN PULONG Buffer, IN ULONG Count)
Definition: stubs.c:74
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 ScsiPortReadPortBufferUchar(IN PUCHAR Port, IN PUCHAR Buffer, IN ULONG Count)
Definition: stubs.c:54
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
ULONG NTAPI READ_PORT_ULONG(IN PULONG Port)
Definition: portio.c:70
VOID NTAPI WRITE_PORT_BUFFER_UCHAR(IN PUCHAR Port, IN PUCHAR Buffer, IN ULONG Count)
Definition: portio.c:77
VOID NTAPI WRITE_PORT_ULONG(IN PULONG Port, IN ULONG Value)
Definition: portio.c:123
VOID NTAPI WRITE_PORT_BUFFER_ULONG(IN PULONG Port, IN PULONG Buffer, IN ULONG Count)
Definition: portio.c:97
VOID NTAPI WRITE_PORT_BUFFER_USHORT(IN PUSHORT Port, IN PUSHORT Buffer, IN ULONG Count)
Definition: portio.c:87
VOID NTAPI READ_PORT_BUFFER_UCHAR(IN PUCHAR Port, OUT PUCHAR Buffer, IN ULONG Count)
Definition: portio.c:26
VOID NTAPI READ_PORT_BUFFER_USHORT(IN PUSHORT Port, OUT PUSHORT Buffer, IN ULONG Count)
Definition: portio.c:36
USHORT NTAPI READ_PORT_USHORT(IN PUSHORT Port)
Definition: portio.c:63
VOID NTAPI READ_PORT_BUFFER_ULONG(IN PULONG Port, OUT PULONG Buffer, IN ULONG Count)
Definition: portio.c:46
CPPORT Port[4]
Definition: headless.c:35
int Count
Definition: noreturn.cpp:7
#define READ_PORT_UCHAR(p)
Definition: pc98vid.h:22
#define WRITE_PORT_UCHAR(p, d)
Definition: pc98vid.h:21
unsigned short USHORT
Definition: pedump.c:61
static WCHAR Address[46]
Definition: ping.c:68
uint32_t * PULONG
Definition: typedefs.h:59
#define NTAPI
Definition: typedefs.h:36
uint16_t * PUSHORT
Definition: typedefs.h:56
uint32_t ULONG_PTR
Definition: typedefs.h:65
#define IN
Definition: typedefs.h:39
unsigned char * PUCHAR
Definition: typedefs.h:53
uint32_t ULONG
Definition: typedefs.h:59
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Definition: wdfregistry.h:413
NTKERNELAPI VOID NTAPI WRITE_REGISTER_BUFFER_UCHAR(IN PUCHAR Register, IN PUCHAR Buffer, IN ULONG Count)
NTKERNELAPI VOID NTAPI READ_REGISTER_BUFFER_UCHAR(IN PUCHAR Register, IN PUCHAR Buffer, IN ULONG Count)
NTKERNELAPI VOID NTAPI WRITE_REGISTER_UCHAR(IN PUCHAR Register, IN UCHAR Value)
NTKERNELAPI VOID NTAPI READ_REGISTER_BUFFER_USHORT(IN PUSHORT Register, IN PUSHORT Buffer, IN ULONG Count)
NTKERNELAPI VOID NTAPI READ_REGISTER_BUFFER_ULONG(IN PULONG Register, IN PULONG Buffer, IN ULONG Count)
NTKERNELAPI VOID NTAPI WRITE_REGISTER_BUFFER_ULONG(IN PULONG Register, IN PULONG Buffer, IN ULONG Count)
NTKERNELAPI VOID NTAPI WRITE_REGISTER_BUFFER_USHORT(IN PUSHORT Register, IN PUSHORT Buffer, IN ULONG Count)
NTKERNELAPI UCHAR NTAPI READ_REGISTER_UCHAR(IN PUCHAR Register)
unsigned char UCHAR
Definition: xmlstorage.h:181