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 */ 20 PADAPTER_OBJECT 21 NTAPI 22 HalGetAdapter(IN PDEVICE_DESCRIPTION DeviceDescription, 23 OUT PULONG NumberOfMapRegisters) 24 { 25 UNIMPLEMENTED; 26 while (TRUE); 27 return NULL; 28 } 29 30 /* 31 * @unimplemented 32 */ 33 VOID 34 NTAPI 35 HalPutDmaAdapter(IN PADAPTER_OBJECT AdapterObject) 36 { 37 UNIMPLEMENTED; 38 while (TRUE); 39 } 40 41 /* 42 * @unimplemented 43 */ 44 PVOID 45 NTAPI 46 HalAllocateCommonBuffer(IN PADAPTER_OBJECT AdapterObject, 47 IN ULONG Length, 48 IN PPHYSICAL_ADDRESS LogicalAddress, 49 IN BOOLEAN CacheEnabled) 50 { 51 UNIMPLEMENTED; 52 while (TRUE); 53 return NULL; 54 } 55 56 /* 57 * @unimplemented 58 */ 59 VOID 60 NTAPI 61 HalFreeCommonBuffer(IN PADAPTER_OBJECT AdapterObject, 62 IN ULONG Length, 63 IN PHYSICAL_ADDRESS LogicalAddress, 64 IN PVOID VirtualAddress, 65 IN BOOLEAN CacheEnabled) 66 { 67 UNIMPLEMENTED; 68 while (TRUE); 69 } 70 71 /* 72 * @unimplemented 73 */ 74 ULONG 75 NTAPI 76 HalReadDmaCounter(IN PADAPTER_OBJECT AdapterObject) 77 { 78 UNIMPLEMENTED; 79 while (TRUE); 80 return 0; 81 } 82 83 /* 84 * @unimplemented 85 */ 86 NTSTATUS 87 NTAPI 88 HalAllocateAdapterChannel(IN PADAPTER_OBJECT AdapterObject, 89 IN PWAIT_CONTEXT_BLOCK WaitContextBlock, 90 IN ULONG NumberOfMapRegisters, 91 IN PDRIVER_CONTROL ExecutionRoutine) 92 { 93 UNIMPLEMENTED; 94 while (TRUE); 95 return STATUS_SUCCESS; 96 } 97 98 /* 99 * @unimplemented 100 */ 101 VOID 102 NTAPI 103 IoFreeAdapterChannel(IN PADAPTER_OBJECT AdapterObject) 104 { 105 UNIMPLEMENTED; 106 while (TRUE); 107 } 108 109 /* 110 * @unimplemented 111 */ 112 VOID 113 NTAPI 114 IoFreeMapRegisters(IN PADAPTER_OBJECT AdapterObject, 115 IN PVOID MapRegisterBase, 116 IN ULONG NumberOfMapRegisters) 117 { 118 UNIMPLEMENTED; 119 while (TRUE); 120 } 121 122 /* 123 * @unimplemented 124 */ 125 BOOLEAN 126 NTAPI 127 IoFlushAdapterBuffers(IN PADAPTER_OBJECT AdapterObject, 128 IN PMDL Mdl, 129 IN PVOID MapRegisterBase, 130 IN PVOID CurrentVa, 131 IN ULONG Length, 132 IN BOOLEAN WriteToDevice) 133 { 134 UNIMPLEMENTED; 135 while (TRUE); 136 return FALSE; 137 } 138 139 /* 140 * @unimplemented 141 */ 142 PHYSICAL_ADDRESS 143 NTAPI 144 IoMapTransfer(IN PADAPTER_OBJECT AdapterObject, 145 IN PMDL Mdl, 146 IN PVOID MapRegisterBase, 147 IN PVOID CurrentVa, 148 IN OUT PULONG Length, 149 IN BOOLEAN WriteToDevice) 150 { 151 PHYSICAL_ADDRESS Address; 152 153 UNIMPLEMENTED; 154 while (TRUE); 155 156 Address.QuadPart = 0; 157 return Address; 158 } 159 160 /* 161 * @unimplemented 162 */ 163 BOOLEAN 164 NTAPI 165 HalFlushCommonBuffer(IN PADAPTER_OBJECT AdapterObject, 166 IN ULONG Length, 167 IN PHYSICAL_ADDRESS LogicalAddress, 168 IN PVOID VirtualAddress) 169 { 170 UNIMPLEMENTED; 171 while (TRUE); 172 return FALSE; 173 } 174 175 /* 176 * @unimplemented 177 */ 178 PVOID 179 NTAPI 180 HalAllocateCrashDumpRegisters(IN PADAPTER_OBJECT AdapterObject, 181 IN OUT PULONG NumberOfMapRegisters) 182 { 183 UNIMPLEMENTED; 184 while (TRUE); 185 return NULL; 186 } 187 188 /* EOF */ 189