ReactOS  0.4.15-dev-1619-g69dffed
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,
133 {
135  while (TRUE);
136  return FALSE;
137 }
138 
139 /*
140  * @unimplemented
141  */
143 NTAPI
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  */
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:39
ULONG NTAPI HalReadDmaCounter(IN PADAPTER_OBJECT AdapterObject)
Definition: dma.c:76
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
_Out_ PULONG NumberOfMapRegisters
Definition: halfuncs.h:209
#define TRUE
Definition: types.h:120
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
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ PCUNICODE_STRING DeviceDescription
Definition: wdfpdo.h:430
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
#define FALSE
Definition: types.h: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
static WCHAR Address[46]
Definition: ping.c:68
_Must_inspect_result_ _In_ WDFDMATRANSACTION _In_ PFN_WDF_PROGRAM_DMA _In_ WDF_DMA_DIRECTION _In_ PMDL _In_ PVOID VirtualAddress
VOID NTAPI IoFreeAdapterChannel(IN PADAPTER_OBJECT AdapterObject)
Definition: dma.c:103
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
_In_ PSCSI_REQUEST_BLOCK _In_opt_ PVOID _In_ ULONG _In_ BOOLEAN WriteToDevice
Definition: cdrom.h:989
_Inout_ struct _IRP _In_ PVOID MapRegisterBase
Definition: iotypes.h:212
unsigned int * PULONG
Definition: retypes.h:1
#define NULL
Definition: types.h:112
_In_ WDFDEVICE _In_ PVOID _In_opt_ PMDL Mdl
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:40
_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:115
DRIVER_CONTROL * PDRIVER_CONTROL
Definition: iotypes.h:215
#define STATUS_SUCCESS
Definition: shellext.h:65
PVOID NTAPI HalAllocateCommonBuffer(IN PADAPTER_OBJECT AdapterObject, IN ULONG Length, IN PPHYSICAL_ADDRESS LogicalAddress, IN BOOLEAN CacheEnabled)
Definition: dma.c:46
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