Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenndissys.h
Go to the documentation of this file.
00001 /* 00002 * COPYRIGHT: See COPYING in the top level directory 00003 * PROJECT: ReactOS NDIS library 00004 * FILE: ndissys.h 00005 * PURPOSE: NDIS library definitions 00006 * NOTES: Spin lock acquire order: 00007 * - Miniport list lock 00008 * - Adapter list lock 00009 */ 00010 #ifndef __NDISSYS_H 00011 #define __NDISSYS_H 00012 00013 #include <ntifs.h> 00014 #include <ndis.h> 00015 #include <xfilter.h> 00016 #include <afilter.h> 00017 #include <atm.h> 00018 #include <ndistapi.h> 00019 #include <ndisguid.h> 00020 #include <debug.h> 00021 00022 #include "miniport.h" 00023 #include "protocol.h" 00024 #include "efilter.h" 00025 #include "buffer.h" 00026 00027 /* Exported functions */ 00028 #ifndef EXPORT 00029 #define EXPORT NTAPI 00030 #endif 00031 00032 /* the version of NDIS we claim to be */ 00033 #define NDIS_VERSION 0x00050001 00034 00035 #define NDIS_TAG 0x4e4d4953 00036 00037 #define MIN(value1, value2) \ 00038 ((value1 < value2)? value1 : value2) 00039 00040 #define MAX(value1, value2) \ 00041 ((value1 > value2)? value1 : value2) 00042 00043 #define ExInterlockedRemoveEntryList(_List,_Lock) \ 00044 { KIRQL OldIrql; \ 00045 KeAcquireSpinLock(_Lock, &OldIrql); \ 00046 RemoveEntryList(_List); \ 00047 KeReleaseSpinLock(_Lock, OldIrql); \ 00048 } 00049 00050 /* missing protypes */ 00051 VOID 00052 NTAPI 00053 ExGetCurrentProcessorCounts( 00054 PULONG ThreadKernelTime, 00055 PULONG TotalCpuTime, 00056 PULONG ProcessorNumber); 00057 00058 VOID 00059 NTAPI 00060 ExGetCurrentProcessorCpuUsage( 00061 PULONG CpuUsage); 00062 00063 /* portability fixes */ 00064 #ifdef _M_AMD64 00065 #define KfReleaseSpinLock KeReleaseSpinLock 00066 #define KefAcquireSpinLockAtDpcLevel KeAcquireSpinLockAtDpcLevel 00067 #define KefReleaseSpinLockFromDpcLevel KeReleaseSpinLockFromDpcLevel 00068 #endif 00069 00070 #endif /* __NDISSYS_H */ 00071 00072 /* EOF */ Generated on Sat May 26 2012 04:26:38 for ReactOS by
1.7.6.1
|