ReactOS  0.4.13-dev-961-g238ea69
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  */
21 NTAPI
24 {
26  while (TRUE);
27  return NULL;
28 }
29 
30 /*
31  * @unimplemented
32  */
33 VOID
34 NTAPI
36 {
38  while (TRUE);
39 }
40 
41 /*
42  * @unimplemented
43  */
44 PVOID
45 NTAPI
47  IN ULONG Length,
48  IN PPHYSICAL_ADDRESS LogicalAddress,
49  IN BOOLEAN CacheEnabled)
50 {
52  while (TRUE);
53  return NULL;
54 }
55 
56 /*
57  * @unimplemented
58  */
59 VOID
60 NTAPI
62  IN ULONG Length,
63  IN PHYSICAL_ADDRESS LogicalAddress,
65  IN BOOLEAN CacheEnabled)
66 {
68  while (TRUE);
69 }
70 
71 /*
72  * @unimplemented
73  */
74 ULONG
75 NTAPI
77 {
79  while (TRUE);
80  return 0;
81 }
82 
83 /*
84  * @unimplemented
85  */
87 NTAPI
89  IN PWAIT_CONTEXT_BLOCK WaitContextBlock,
92 {
94  while (TRUE);
95  return STATUS_SUCCESS;
96 }
97 
98 /*
99  * @unimplemented
100  */
101 VOID
102 NTAPI
104 {
106  while (TRUE);
107 }
108 
109 /*
110  * @unimplemented
111  */
112 VOID
113 NTAPI
117 {
119  while (TRUE);
120 }
121 
122 /*
123  * @unimplemented
124  */
125 BOOLEAN
126 NTAPI
128  IN PMDL Mdl,
130  IN PVOID CurrentVa,
131  IN ULONG Length,
132  IN BOOLEAN WriteToDevice)
133 {
135  while (TRUE);
136  return FALSE;
137 }
138 
139 /*
140  * @unimplemented
141  */
143 NTAPI
145  IN PMDL Mdl,
147  IN PVOID CurrentVa,
149  IN BOOLEAN WriteToDevice)
150 {
152 
154  while (TRUE);
155 
156  Address.QuadPart = 0;
157  return Address;
158 }
159 
160 /*
161  * @unimplemented
162  */
163 BOOLEAN
164 NTAPI
166  IN ULONG Length,
167  IN PHYSICAL_ADDRESS LogicalAddress,
169 {
171  while (TRUE);
172  return FALSE;
173 }
174 
175 /*
176  * @unimplemented
177  */
178 PVOID
179 NTAPI
182 {
184  while (TRUE);
185  return NULL;
186 }
187 
188 /* EOF */
#define IN
Definition: typedefs.h:38
#define TRUE
Definition: types.h:120
ULONG NTAPI HalReadDmaCounter(IN PADAPTER_OBJECT AdapterObject)
Definition: dma.c:76
_Out_ PULONG NumberOfMapRegisters
Definition: halfuncs.h:209
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
LONG NTSTATUS
Definition: precomp.h:26
VOID NTAPI IoFreeMapRegisters(IN PADAPTER_OBJECT AdapterObject, IN PVOID MapRegisterBase, IN ULONG NumberOfMapRegisters)
Definition: dma.c:114
PVOID NTAPI HalAllocateCrashDumpRegisters(IN PADAPTER_OBJECT AdapterObject, IN OUT PULONG NumberOfMapRegisters)
Definition: dma.c:180
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
NTSTATUS NTAPI HalAllocateAdapterChannel(IN PADAPTER_OBJECT AdapterObject, IN PWAIT_CONTEXT_BLOCK WaitContextBlock, IN ULONG NumberOfMapRegisters, IN PDRIVER_CONTROL ExecutionRoutine)
Definition: dma.c:88
unsigned char BOOLEAN
smooth NULL
Definition: ftsmooth.c:416
static WCHAR Address[46]
Definition: ping.c:68
VOID NTAPI IoFreeAdapterChannel(IN PADAPTER_OBJECT AdapterObject)
Definition: dma.c:103
_Must_inspect_result_ _In_ PDEVICE_DESCRIPTION DeviceDescription
Definition: iofuncs.h:1015
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
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
_In_ ULONG _In_ BOOLEAN _Must_inspect_result_ PVOID * VirtualAddress
Definition: ndis.h:3791
VOID NTAPI HalPutDmaAdapter(IN PADAPTER_OBJECT AdapterObject)
Definition: dma.c:35
_Inout_ struct _IRP _In_ PVOID MapRegisterBase
Definition: iotypes.h:189
unsigned int * PULONG
Definition: retypes.h:1
BOOLEAN NTAPI HalFlushCommonBuffer(IN PADAPTER_OBJECT AdapterObject, IN ULONG Length, IN PHYSICAL_ADDRESS LogicalAddress, IN PVOID VirtualAddress)
Definition: dma.c:165
#define OUT
Definition: typedefs.h:39
_In_ PDEVICE_OBJECT _In_ ULONG _In_ PDRIVER_CONTROL ExecutionRoutine
Definition: iofuncs.h:1393
unsigned int ULONG
Definition: retypes.h:1
#define UNIMPLEMENTED
Definition: debug.h:114
DRIVER_CONTROL * PDRIVER_CONTROL
Definition: iotypes.h:192
PVOID NTAPI HalAllocateCommonBuffer(IN PADAPTER_OBJECT AdapterObject, IN ULONG Length, IN PPHYSICAL_ADDRESS LogicalAddress, IN BOOLEAN CacheEnabled)
Definition: dma.c:46
return STATUS_SUCCESS
Definition: btrfs.c:2777
VOID NTAPI HalFreeCommonBuffer(IN PADAPTER_OBJECT AdapterObject, IN ULONG Length, IN PHYSICAL_ADDRESS LogicalAddress, IN PVOID VirtualAddress, IN BOOLEAN CacheEnabled)
Definition: dma.c:61
PADAPTER_OBJECT NTAPI HalGetAdapter(IN PDEVICE_DESCRIPTION DeviceDescription, OUT PULONG NumberOfMapRegisters)
Definition: dma.c:22