ReactOS  0.4.13-dev-479-gec9c8fd
stubs.c File Reference
#include "precomp.h"
#include <debug.h>
Include dependency graph for stubs.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

STORPORT_API VOID NTAPI StorPortReadPortBufferUchar (_In_ PVOID HwDeviceExtension, _In_ PUCHAR Port, _In_ PUCHAR Buffer, _In_ ULONG Count)
 
STORPORT_API VOID NTAPI StorPortReadPortBufferUlong (_In_ PVOID HwDeviceExtension, _In_ PULONG Port, _In_ PULONG Buffer, _In_ ULONG Count)
 
STORPORT_API VOID NTAPI StorPortReadPortBufferUshort (_In_ PVOID HwDeviceExtension, _In_ PUSHORT Port, _In_ PUSHORT Buffer, _In_ ULONG Count)
 
STORPORT_API UCHAR NTAPI StorPortReadPortUchar (_In_ PVOID HwDeviceExtension, _In_ PUCHAR Port)
 
STORPORT_API ULONG NTAPI StorPortReadPortUlong (_In_ PVOID HwDeviceExtension, _In_ PULONG Port)
 
STORPORT_API USHORT NTAPI StorPortReadPortUshort (_In_ PVOID HwDeviceExtension, _In_ PUSHORT Port)
 
STORPORT_API VOID NTAPI StorPortReadRegisterBufferUchar (_In_ PVOID HwDeviceExtension, _In_ PUCHAR Register, _In_ PUCHAR Buffer, _In_ ULONG Count)
 
STORPORT_API VOID NTAPI StorPortReadRegisterBufferUlong (_In_ PVOID HwDeviceExtension, _In_ PULONG Register, _In_ PULONG Buffer, _In_ ULONG Count)
 
STORPORT_API VOID NTAPI StorPortReadRegisterBufferUshort (_In_ PVOID HwDeviceExtension, _In_ PUSHORT Register, _In_ PUSHORT Buffer, _In_ ULONG Count)
 
STORPORT_API UCHAR NTAPI StorPortReadRegisterUchar (_In_ PVOID HwDeviceExtension, _In_ PUCHAR Register)
 
STORPORT_API ULONG NTAPI StorPortReadRegisterUlong (_In_ PVOID HwDeviceExtension, _In_ PULONG Register)
 
STORPORT_API USHORT NTAPI StorPortReadRegisterUshort (_In_ PVOID HwDeviceExtension, _In_ PUSHORT Register)
 
STORPORT_API VOID NTAPI StorPortWritePortBufferUchar (_In_ PVOID HwDeviceExtension, _In_ PUCHAR Port, _In_ PUCHAR Buffer, _In_ ULONG Count)
 
STORPORT_API VOID NTAPI StorPortWritePortBufferUlong (_In_ PVOID HwDeviceExtension, _In_ PULONG Port, _In_ PULONG Buffer, _In_ ULONG Count)
 
STORPORT_API VOID NTAPI StorPortWritePortBufferUshort (_In_ PVOID HwDeviceExtension, _In_ PUSHORT Port, _In_ PUSHORT Buffer, _In_ ULONG Count)
 
STORPORT_API VOID NTAPI StorPortWritePortUchar (_In_ PVOID HwDeviceExtension, _In_ PUCHAR Port, _In_ UCHAR Value)
 
STORPORT_API VOID NTAPI StorPortWritePortUlong (_In_ PVOID HwDeviceExtension, _In_ PULONG Port, _In_ ULONG Value)
 
STORPORT_API VOID NTAPI StorPortWritePortUshort (_In_ PVOID HwDeviceExtension, _In_ PUSHORT Port, _In_ USHORT Value)
 
STORPORT_API VOID NTAPI StorPortWriteRegisterBufferUchar (_In_ PVOID HwDeviceExtension, _In_ PUCHAR Register, _In_ PUCHAR Buffer, _In_ ULONG Count)
 
STORPORT_API VOID NTAPI StorPortWriteRegisterBufferUlong (_In_ PVOID HwDeviceExtension, _In_ PULONG Register, _In_ PULONG Buffer, _In_ ULONG Count)
 
STORPORT_API VOID NTAPI StorPortWriteRegisterBufferUshort (_In_ PVOID HwDeviceExtension, _In_ PUSHORT Register, _In_ PUSHORT Buffer, _In_ ULONG Count)
 
STORPORT_API VOID NTAPI StorPortWriteRegisterUchar (_In_ PVOID HwDeviceExtension, _In_ PUCHAR Register, _In_ UCHAR Value)
 
STORPORT_API VOID NTAPI StorPortWriteRegisterUlong (_In_ PVOID HwDeviceExtension, _In_ PULONG Register, _In_ ULONG Value)
 
STORPORT_API VOID NTAPI StorPortWriteRegisterUshort (_In_ PVOID HwDeviceExtension, _In_ PUSHORT Register, _In_ USHORT Value)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 12 of file stubs.c.

Function Documentation

◆ StorPortReadPortBufferUchar()

STORPORT_API VOID NTAPI StorPortReadPortBufferUchar ( _In_ PVOID  HwDeviceExtension,
_In_ PUCHAR  Port,
_In_ PUCHAR  Buffer,
_In_ ULONG  Count 
)

Definition at line 21 of file stubs.c.

26 {
28 }
CPPORT Port[4]
Definition: headless.c:34
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:1015
Definition: bufpool.h:45

◆ StorPortReadPortBufferUlong()

STORPORT_API VOID NTAPI StorPortReadPortBufferUlong ( _In_ PVOID  HwDeviceExtension,
_In_ PULONG  Port,
_In_ PULONG  Buffer,
_In_ ULONG  Count 
)

Definition at line 34 of file stubs.c.

39 {
41 }
CPPORT Port[4]
Definition: headless.c:34
_Inout_ __drv_aliasesMem PSLIST_ENTRY _Inout_ PSLIST_ENTRY _In_ ULONG Count
Definition: exfuncs.h:1015
Definition: bufpool.h:45
VOID NTAPI READ_PORT_BUFFER_ULONG(IN PULONG Port, OUT PULONG Buffer, IN ULONG Count)
Definition: portio.c:46

◆ StorPortReadPortBufferUshort()

STORPORT_API VOID NTAPI StorPortReadPortBufferUshort ( _In_ PVOID  HwDeviceExtension,
_In_ PUSHORT  Port,
_In_ PUSHORT  Buffer,
_In_ ULONG  Count 
)

Definition at line 47 of file stubs.c.

52 {
54 }
CPPORT Port[4]
Definition: headless.c:34
_Inout_ __drv_aliasesMem PSLIST_ENTRY _Inout_ PSLIST_ENTRY _In_ ULONG Count
Definition: exfuncs.h:1015
Definition: bufpool.h:45
VOID NTAPI READ_PORT_BUFFER_USHORT(IN PUSHORT Port, OUT PUSHORT Buffer, IN ULONG Count)
Definition: portio.c:36

◆ StorPortReadPortUchar()

STORPORT_API UCHAR NTAPI StorPortReadPortUchar ( _In_ PVOID  HwDeviceExtension,
_In_ PUCHAR  Port 
)

Definition at line 60 of file stubs.c.

63 {
64  return READ_PORT_UCHAR(Port);
65 }
CPPORT Port[4]
Definition: headless.c:34
UCHAR NTAPI READ_PORT_UCHAR(PUCHAR Address)
Definition: mach.c:535

◆ StorPortReadPortUlong()

STORPORT_API ULONG NTAPI StorPortReadPortUlong ( _In_ PVOID  HwDeviceExtension,
_In_ PULONG  Port 
)

Definition at line 71 of file stubs.c.

74 {
75  return READ_PORT_ULONG(Port);
76 }
CPPORT Port[4]
Definition: headless.c:34
ULONG NTAPI READ_PORT_ULONG(IN PULONG Port)
Definition: portio.c:70

◆ StorPortReadPortUshort()

STORPORT_API USHORT NTAPI StorPortReadPortUshort ( _In_ PVOID  HwDeviceExtension,
_In_ PUSHORT  Port 
)

Definition at line 82 of file stubs.c.

85 {
86  return READ_PORT_USHORT(Port);
87 }
CPPORT Port[4]
Definition: headless.c:34
USHORT NTAPI READ_PORT_USHORT(IN PUSHORT Port)
Definition: portio.c:63

◆ StorPortReadRegisterBufferUchar()

STORPORT_API VOID NTAPI StorPortReadRegisterBufferUchar ( _In_ PVOID  HwDeviceExtension,
_In_ PUCHAR  Register,
_In_ PUCHAR  Buffer,
_In_ ULONG  Count 
)

Definition at line 93 of file stubs.c.

98 {
100 }
_Inout_ __drv_aliasesMem PSLIST_ENTRY _Inout_ PSLIST_ENTRY _In_ ULONG Count
Definition: exfuncs.h:1015
Definition: bufpool.h:45
NTKERNELAPI VOID NTAPI READ_REGISTER_BUFFER_UCHAR(IN PUCHAR Register, IN PUCHAR Buffer, IN ULONG Count)

◆ StorPortReadRegisterBufferUlong()

STORPORT_API VOID NTAPI StorPortReadRegisterBufferUlong ( _In_ PVOID  HwDeviceExtension,
_In_ PULONG  Register,
_In_ PULONG  Buffer,
_In_ ULONG  Count 
)

Definition at line 106 of file stubs.c.

111 {
113 }
_Inout_ __drv_aliasesMem PSLIST_ENTRY _Inout_ PSLIST_ENTRY _In_ ULONG Count
Definition: exfuncs.h:1015
NTKERNELAPI VOID NTAPI READ_REGISTER_BUFFER_ULONG(IN PULONG Register, IN PULONG Buffer, IN ULONG Count)
Definition: bufpool.h:45

◆ StorPortReadRegisterBufferUshort()

STORPORT_API VOID NTAPI StorPortReadRegisterBufferUshort ( _In_ PVOID  HwDeviceExtension,
_In_ PUSHORT  Register,
_In_ PUSHORT  Buffer,
_In_ ULONG  Count 
)

Definition at line 119 of file stubs.c.

124 {
126 }
_Inout_ __drv_aliasesMem PSLIST_ENTRY _Inout_ PSLIST_ENTRY _In_ ULONG Count
Definition: exfuncs.h:1015
Definition: bufpool.h:45
NTKERNELAPI VOID NTAPI READ_REGISTER_BUFFER_USHORT(IN PUSHORT Register, IN PUSHORT Buffer, IN ULONG Count)

◆ StorPortReadRegisterUchar()

STORPORT_API UCHAR NTAPI StorPortReadRegisterUchar ( _In_ PVOID  HwDeviceExtension,
_In_ PUCHAR  Register 
)

Definition at line 132 of file stubs.c.

135 {
136  return READ_REGISTER_UCHAR(Register);
137 }
NTKERNELAPI UCHAR NTAPI READ_REGISTER_UCHAR(IN PUCHAR Register)

◆ StorPortReadRegisterUlong()

STORPORT_API ULONG NTAPI StorPortReadRegisterUlong ( _In_ PVOID  HwDeviceExtension,
_In_ PULONG  Register 
)

Definition at line 143 of file stubs.c.

146 {
147  return READ_REGISTER_ULONG(Register);
148 }
NTKERNELAPI ULONG NTAPI READ_REGISTER_ULONG(IN PULONG Register)

Referenced by AhciActivatePort(), AhciAdapterReset(), AhciHwFindAdapter(), AhciHwInitialize(), AhciHwInterrupt(), AhciInterruptHandler(), AhciPortInitialize(), AhciProcessSrb(), and AhciStartPort().

◆ StorPortReadRegisterUshort()

STORPORT_API USHORT NTAPI StorPortReadRegisterUshort ( _In_ PVOID  HwDeviceExtension,
_In_ PUSHORT  Register 
)

Definition at line 154 of file stubs.c.

157 {
158  return READ_REGISTER_USHORT(Register);
159 }
NTKERNELAPI USHORT NTAPI READ_REGISTER_USHORT(IN PUSHORT Register)

◆ StorPortWritePortBufferUchar()

STORPORT_API VOID NTAPI StorPortWritePortBufferUchar ( _In_ PVOID  HwDeviceExtension,
_In_ PUCHAR  Port,
_In_ PUCHAR  Buffer,
_In_ ULONG  Count 
)

Definition at line 165 of file stubs.c.

170 {
172 }
CPPORT Port[4]
Definition: headless.c:34
VOID NTAPI WRITE_PORT_BUFFER_UCHAR(IN PUCHAR Port, IN PUCHAR Buffer, IN ULONG Count)
Definition: portio.c:77
_Inout_ __drv_aliasesMem PSLIST_ENTRY _Inout_ PSLIST_ENTRY _In_ ULONG Count
Definition: exfuncs.h:1015
Definition: bufpool.h:45

◆ StorPortWritePortBufferUlong()

STORPORT_API VOID NTAPI StorPortWritePortBufferUlong ( _In_ PVOID  HwDeviceExtension,
_In_ PULONG  Port,
_In_ PULONG  Buffer,
_In_ ULONG  Count 
)

Definition at line 178 of file stubs.c.

183 {
185 }
CPPORT Port[4]
Definition: headless.c:34
_Inout_ __drv_aliasesMem PSLIST_ENTRY _Inout_ PSLIST_ENTRY _In_ ULONG Count
Definition: exfuncs.h:1015
Definition: bufpool.h:45
VOID NTAPI WRITE_PORT_BUFFER_ULONG(IN PULONG Port, IN PULONG Buffer, IN ULONG Count)
Definition: portio.c:97

◆ StorPortWritePortBufferUshort()

STORPORT_API VOID NTAPI StorPortWritePortBufferUshort ( _In_ PVOID  HwDeviceExtension,
_In_ PUSHORT  Port,
_In_ PUSHORT  Buffer,
_In_ ULONG  Count 
)

Definition at line 191 of file stubs.c.

196 {
198 }
CPPORT Port[4]
Definition: headless.c:34
_Inout_ __drv_aliasesMem PSLIST_ENTRY _Inout_ PSLIST_ENTRY _In_ ULONG Count
Definition: exfuncs.h:1015
Definition: bufpool.h:45
VOID NTAPI WRITE_PORT_BUFFER_USHORT(IN PUSHORT Port, IN PUSHORT Buffer, IN ULONG Count)
Definition: portio.c:87

◆ StorPortWritePortUchar()

STORPORT_API VOID NTAPI StorPortWritePortUchar ( _In_ PVOID  HwDeviceExtension,
_In_ PUCHAR  Port,
_In_ UCHAR  Value 
)

Definition at line 204 of file stubs.c.

208 {
210 }
_In_opt_ ULONG _Out_ PULONG Value
Definition: rtlfuncs.h:2327
CPPORT Port[4]
Definition: headless.c:34
void WRITE_PORT_UCHAR(PUCHAR Address, UCHAR Value)
Definition: mach.c:539

◆ StorPortWritePortUlong()

STORPORT_API VOID NTAPI StorPortWritePortUlong ( _In_ PVOID  HwDeviceExtension,
_In_ PULONG  Port,
_In_ ULONG  Value 
)

Definition at line 216 of file stubs.c.

220 {
222 }
_In_opt_ ULONG _Out_ PULONG Value
Definition: rtlfuncs.h:2327
CPPORT Port[4]
Definition: headless.c:34
VOID NTAPI WRITE_PORT_ULONG(IN PULONG Port, IN ULONG Value)
Definition: portio.c:123

◆ StorPortWritePortUshort()

STORPORT_API VOID NTAPI StorPortWritePortUshort ( _In_ PVOID  HwDeviceExtension,
_In_ PUSHORT  Port,
_In_ USHORT  Value 
)

Definition at line 228 of file stubs.c.

232 {
234 }
_In_opt_ ULONG _Out_ PULONG Value
Definition: rtlfuncs.h:2327
CPPORT Port[4]
Definition: headless.c:34
VOID NTAPI WRITE_PORT_USHORT(IN PUSHORT Port, IN USHORT Value)
Definition: portio.c:115

◆ StorPortWriteRegisterBufferUchar()

STORPORT_API VOID NTAPI StorPortWriteRegisterBufferUchar ( _In_ PVOID  HwDeviceExtension,
_In_ PUCHAR  Register,
_In_ PUCHAR  Buffer,
_In_ ULONG  Count 
)

Definition at line 240 of file stubs.c.

245 {
247 }
_Inout_ __drv_aliasesMem PSLIST_ENTRY _Inout_ PSLIST_ENTRY _In_ ULONG Count
Definition: exfuncs.h:1015
NTKERNELAPI VOID NTAPI WRITE_REGISTER_BUFFER_UCHAR(IN PUCHAR Register, IN PUCHAR Buffer, IN ULONG Count)
Definition: bufpool.h:45

◆ StorPortWriteRegisterBufferUlong()

STORPORT_API VOID NTAPI StorPortWriteRegisterBufferUlong ( _In_ PVOID  HwDeviceExtension,
_In_ PULONG  Register,
_In_ PULONG  Buffer,
_In_ ULONG  Count 
)

Definition at line 253 of file stubs.c.

258 {
260 }
_Inout_ __drv_aliasesMem PSLIST_ENTRY _Inout_ PSLIST_ENTRY _In_ ULONG Count
Definition: exfuncs.h:1015
Definition: bufpool.h:45
NTKERNELAPI VOID NTAPI WRITE_REGISTER_BUFFER_ULONG(IN PULONG Register, IN PULONG Buffer, IN ULONG Count)

◆ StorPortWriteRegisterBufferUshort()

STORPORT_API VOID NTAPI StorPortWriteRegisterBufferUshort ( _In_ PVOID  HwDeviceExtension,
_In_ PUSHORT  Register,
_In_ PUSHORT  Buffer,
_In_ ULONG  Count 
)

Definition at line 266 of file stubs.c.

271 {
273 }
_Inout_ __drv_aliasesMem PSLIST_ENTRY _Inout_ PSLIST_ENTRY _In_ ULONG Count
Definition: exfuncs.h:1015
Definition: bufpool.h:45
NTKERNELAPI VOID NTAPI WRITE_REGISTER_BUFFER_USHORT(IN PUSHORT Register, IN PUSHORT Buffer, IN ULONG Count)

◆ StorPortWriteRegisterUchar()

STORPORT_API VOID NTAPI StorPortWriteRegisterUchar ( _In_ PVOID  HwDeviceExtension,
_In_ PUCHAR  Register,
_In_ UCHAR  Value 
)

Definition at line 279 of file stubs.c.

283 {
284  WRITE_REGISTER_UCHAR(Register, Value);
285 }
_In_opt_ ULONG _Out_ PULONG Value
Definition: rtlfuncs.h:2327
NTKERNELAPI VOID NTAPI WRITE_REGISTER_UCHAR(IN PUCHAR Register, IN UCHAR Value)

◆ StorPortWriteRegisterUlong()

STORPORT_API VOID NTAPI StorPortWriteRegisterUlong ( _In_ PVOID  HwDeviceExtension,
_In_ PULONG  Register,
_In_ ULONG  Value 
)

Definition at line 291 of file stubs.c.

295 {
296  WRITE_REGISTER_ULONG(Register, Value);
297 }
_In_opt_ ULONG _Out_ PULONG Value
Definition: rtlfuncs.h:2327
NTKERNELAPI VOID NTAPI WRITE_REGISTER_ULONG(IN PULONG Register, IN ULONG Value)

Referenced by AhciActivatePort(), AhciAdapterReset(), AhciHwFindAdapter(), AhciInterruptHandler(), AhciPortInitialize(), and AhciStartPort().

◆ StorPortWriteRegisterUshort()

STORPORT_API VOID NTAPI StorPortWriteRegisterUshort ( _In_ PVOID  HwDeviceExtension,
_In_ PUSHORT  Register,
_In_ USHORT  Value 
)

Definition at line 303 of file stubs.c.

307 {
308  WRITE_REGISTER_USHORT(Register, Value);
309 }
_In_opt_ ULONG _Out_ PULONG Value
Definition: rtlfuncs.h:2327
NTKERNELAPI VOID NTAPI WRITE_REGISTER_USHORT(IN PUSHORT Register, IN USHORT Value)