ReactOS 0.4.15-dev-7907-g95bf896
dma.c
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS HAL
3 * LICENSE: BSD - See COPYING.ARM in the top level directory
4 * FILE: hal/halarm/generic/dma.c
5 * PURPOSE: DMA Support
6 * PROGRAMMERS: ReactOS Portable Systems Group
7 */
8
9/* INCLUDES *******************************************************************/
10
11#include <hal.h>
12#define NDEBUG
13#include <debug.h>
14
15/* FUNCTIONS ******************************************************************/
16
17/*
18 * @unimplemented
19 */
24{
26 while (TRUE);
27 return NULL;
28}
29
30/*
31 * @unimplemented
32 */
33VOID
36{
38 while (TRUE);
39}
40
41/*
42 * @unimplemented
43 */
48 IN PPHYSICAL_ADDRESS LogicalAddress,
49 IN BOOLEAN CacheEnabled)
50{
52 while (TRUE);
53 return NULL;
54}
55
56/*
57 * @unimplemented
58 */
59VOID
63 IN PHYSICAL_ADDRESS LogicalAddress,
65 IN BOOLEAN CacheEnabled)
66{
68 while (TRUE);
69}
70
71/*
72 * @unimplemented
73 */
77{
79 while (TRUE);
80 return 0;
81}
82
83/*
84 * @unimplemented
85 */
89 IN PWAIT_CONTEXT_BLOCK WaitContextBlock,
92{
94 while (TRUE);
95 return STATUS_SUCCESS;
96}
97
98/*
99 * @unimplemented
100 */
101VOID
102NTAPI
104{
106 while (TRUE);
107}
108
109/*
110 * @unimplemented
111 */
112VOID
113NTAPI
117{
119 while (TRUE);
120}
121
122/*
123 * @unimplemented
124 */
126NTAPI
128 IN PMDL Mdl,
130 IN PVOID CurrentVa,
133{
135 while (TRUE);
136 return FALSE;
137}
138
139/*
140 * @unimplemented
141 */
143NTAPI
145 IN PMDL Mdl,
147 IN PVOID CurrentVa,
150{
152
154 while (TRUE);
155
156 Address.QuadPart = 0;
157 return Address;
158}
159
160/*
161 * @unimplemented
162 */
164NTAPI
167 IN PHYSICAL_ADDRESS LogicalAddress,
169{
171 while (TRUE);
172 return FALSE;
173}
174
175/*
176 * @unimplemented
177 */
178PVOID
179NTAPI
182{
184 while (TRUE);
185 return NULL;
186}
187
188/* EOF */
unsigned char BOOLEAN
LONG NTSTATUS
Definition: precomp.h:26
#define UNIMPLEMENTED
Definition: debug.h:115
_In_ PSCSI_REQUEST_BLOCK _In_opt_ PVOID _In_ ULONG _In_ BOOLEAN WriteToDevice
Definition: cdrom.h:992
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
BOOLEAN NTAPI IoFlushAdapterBuffers(IN PADAPTER_OBJECT AdapterObject, IN PMDL Mdl, IN PVOID MapRegisterBase, IN PVOID CurrentVa, IN ULONG Length, IN BOOLEAN WriteToDevice)
Definition: dma.c:127
VOID NTAPI HalPutDmaAdapter(IN PADAPTER_OBJECT AdapterObject)
Definition: dma.c:35
PVOID NTAPI HalAllocateCommonBuffer(IN PADAPTER_OBJECT AdapterObject, IN ULONG Length, IN PPHYSICAL_ADDRESS LogicalAddress, IN BOOLEAN CacheEnabled)
Definition: dma.c:46
VOID NTAPI IoFreeMapRegisters(IN PADAPTER_OBJECT AdapterObject, IN PVOID MapRegisterBase, IN ULONG NumberOfMapRegisters)
Definition: dma.c:114
PADAPTER_OBJECT NTAPI HalGetAdapter(IN PDEVICE_DESCRIPTION DeviceDescription, OUT PULONG NumberOfMapRegisters)
Definition: dma.c:22
PHYSICAL_ADDRESS NTAPI IoMapTransfer(IN PADAPTER_OBJECT AdapterObject, IN PMDL Mdl, IN PVOID MapRegisterBase, IN PVOID CurrentVa, IN OUT PULONG Length, IN BOOLEAN WriteToDevice)
Definition: dma.c:144
NTSTATUS NTAPI HalAllocateAdapterChannel(IN PADAPTER_OBJECT AdapterObject, IN PWAIT_CONTEXT_BLOCK WaitContextBlock, IN ULONG NumberOfMapRegisters, IN PDRIVER_CONTROL ExecutionRoutine)
Definition: dma.c:88
VOID NTAPI IoFreeAdapterChannel(IN PADAPTER_OBJECT AdapterObject)
Definition: dma.c:103
VOID NTAPI HalFreeCommonBuffer(IN PADAPTER_OBJECT AdapterObject, IN ULONG Length, IN PHYSICAL_ADDRESS LogicalAddress, IN PVOID VirtualAddress, IN BOOLEAN CacheEnabled)
Definition: dma.c:61
BOOLEAN NTAPI HalFlushCommonBuffer(IN PADAPTER_OBJECT AdapterObject, IN ULONG Length, IN PHYSICAL_ADDRESS LogicalAddress, IN PVOID VirtualAddress)
Definition: dma.c:165
ULONG NTAPI HalReadDmaCounter(IN PADAPTER_OBJECT AdapterObject)
Definition: dma.c:76
PVOID NTAPI HalAllocateCrashDumpRegisters(IN PADAPTER_OBJECT AdapterObject, IN OUT PULONG NumberOfMapRegisters)
Definition: dma.c:180
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102
static WCHAR Address[46]
Definition: ping.c:68
#define STATUS_SUCCESS
Definition: shellext.h:65
uint32_t * PULONG
Definition: typedefs.h:59
#define NTAPI
Definition: typedefs.h:36
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
#define OUT
Definition: typedefs.h:40
_Must_inspect_result_ _In_ WDFDMATRANSACTION _In_ PFN_WDF_PROGRAM_DMA _In_ WDF_DMA_DIRECTION _In_ PMDL _In_ PVOID VirtualAddress
_In_ WDFDEVICE _In_ PVOID _In_opt_ PMDL Mdl
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ PCUNICODE_STRING DeviceDescription
Definition: wdfpdo.h:432
_Out_ PULONG NumberOfMapRegisters
Definition: halfuncs.h:209
_In_ PDEVICE_OBJECT _In_ ULONG _In_ PDRIVER_CONTROL ExecutionRoutine
Definition: iofuncs.h:1399
_Inout_ struct _IRP _In_ PVOID MapRegisterBase
Definition: iotypes.h:213
DRIVER_CONTROL * PDRIVER_CONTROL
Definition: iotypes.h:215