- Check that all pins have been closed when the last filter reference is gone
[reactos.git] / reactos / drivers / network / ndis / include / ndissys.h
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS NDIS library
4 * FILE: ndissys.h
5 * PURPOSE: NDIS library definitions
6 * NOTES: Spin lock acquire order:
7 * - Miniport list lock
8 * - Adapter list lock
9 */
10 #ifndef __NDISSYS_H
11 #define __NDISSYS_H
12
13 #include <ntifs.h>
14 #include <ndis.h>
15 #include <xfilter.h>
16 #include <afilter.h>
17 #include <atm.h>
18 #include <ndistapi.h>
19 #include <ndisguid.h>
20 #include <debug.h>
21
22 #include "miniport.h"
23 #include "protocol.h"
24 #include "buffer.h"
25
26 /* Exported functions */
27 #ifndef EXPORT
28 #define EXPORT NTAPI
29 #endif
30
31 /* the version of NDIS we claim to be */
32 #define NDIS_VERSION 0x00050000
33
34 #define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24))
35 #define NDIS_TAG 0x4e4d4953
36
37 #define MIN(value1, value2) \
38 ((value1 < value2)? value1 : value2)
39
40 #define MAX(value1, value2) \
41 ((value1 > value2)? value1 : value2)
42
43 #define ExInterlockedRemoveEntryList(_List,_Lock) \
44 { KIRQL OldIrql; \
45 KeAcquireSpinLock(_Lock, &OldIrql); \
46 RemoveEntryList(_List); \
47 KeReleaseSpinLock(_Lock, OldIrql); \
48 }
49
50 /* missing protypes */
51 VOID
52 NTAPI
53 ExGetCurrentProcessorCounts(
54 PULONG ThreadKernelTime,
55 PULONG TotalCpuTime,
56 PULONG ProcessorNumber);
57
58 VOID
59 NTAPI
60 ExGetCurrentProcessorCpuUsage(
61 PULONG CpuUsage);
62
63 #endif /* __NDISSYS_H */
64
65 /* EOF */