summaryrefslogtreecommitdiffstats
path: root/private/ntos/ndis/ubnei/map.h
diff options
context:
space:
mode:
authorAdam <you@example.com>2020-05-17 05:51:50 +0200
committerAdam <you@example.com>2020-05-17 05:51:50 +0200
commite611b132f9b8abe35b362e5870b74bce94a1e58e (patch)
treea5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/ntos/ndis/ubnei/map.h
downloadNT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip
Diffstat (limited to 'private/ntos/ndis/ubnei/map.h')
-rw-r--r--private/ntos/ndis/ubnei/map.h164
1 files changed, 164 insertions, 0 deletions
diff --git a/private/ntos/ndis/ubnei/map.h b/private/ntos/ndis/ubnei/map.h
new file mode 100644
index 000000000..171fd5dec
--- /dev/null
+++ b/private/ntos/ndis/ubnei/map.h
@@ -0,0 +1,164 @@
+/*++
+
+Copyright (c) 1990 Microsoft Corporation
+
+Module Name:
+
+ init.c
+
+Abstract:
+
+ This is the init file for the Ungermann Bass Ethernet Controller.
+ This driver conforms to the NDIS 3.0 interface.
+
+Author:
+
+ Brian Lieuallen BrianLie 11/21/93
+
+Environment:
+
+ Kernel Mode Operating Systems : NT and other lesser OS's
+
+Revision History:
+
+ Brian Lieuallen BrianLie 12/15/93
+ Made it a mini-port
+
+
+--*/
+
+
+
+#if DBG
+
+// declared in init.c
+
+VOID
+ASSERT_INTERRUPT_ENABLED(
+ PUBNEI_ADAPTER pAdapter
+ );
+
+
+
+VOID ASSERT_RECEIVE_WINDOW(PUBNEI_ADAPTER pNewAdapt);
+
+VOID SET_RECDWINDOW(PUBNEI_ADAPTER pNewAdapt,UCHAR intflag);
+
+VOID SET_INITWINDOW(PUBNEI_ADAPTER pNewAdapt,UCHAR intflag);
+
+VOID SET_DATAWINDOW(PUBNEI_ADAPTER pNewAdapt,UCHAR intflag);
+
+VOID SET_CODEWINDOW(PUBNEI_ADAPTER pNewAdapt,UCHAR intflag);
+
+VOID SET_RECDWINDOW_SYNC(PUBNEI_ADAPTER pNewAdapt,UCHAR intflag);
+
+VOID SET_INITWINDOW_SYNC(PUBNEI_ADAPTER pNewAdapt,UCHAR intflag);
+
+VOID SET_DATAWINDOW_SYNC(PUBNEI_ADAPTER pNewAdapt,UCHAR intflag);
+
+VOID SET_CODEWINDOW_SYNC(PUBNEI_ADAPTER pNewAdapt,UCHAR intflag);
+
+
+#else
+
+#define ASSERT_INTERRUPT_ENABLED(pAdapter)
+
+#define ASSERT_RECEIVE_WINDOW(pNewAdapt)
+
+
+#define SET_RECDWINDOW(pAdapter,intflag) { \
+ \
+ pAdapter->MapRegSync.CurrentMapRegister=pAdapter->ReceiveDataWindow_Page | (intflag);\
+ \
+ NdisRawWritePortUchar ( \
+ (ULONG)pAdapter->MapPort, \
+ pAdapter->MapRegSync.CurrentMapRegister \
+ ); \
+ }
+
+#define SET_INITWINDOW(pAdapter,intflag) { \
+ \
+ pAdapter->MapRegSync.CurrentMapRegister=(pAdapter->InitWindow_Page | ((UCHAR)(intflag))); \
+ \
+ NdisRawWritePortUchar ( \
+ (ULONG)pAdapter->MapPort, \
+ pAdapter->MapRegSync.CurrentMapRegister \
+ ); \
+ }
+
+
+#define SET_DATAWINDOW(pAdapter,intflag) { \
+ \
+ pAdapter->MapRegSync.CurrentMapRegister=pAdapter->DataWindow_Page | (intflag);\
+ \
+ NdisRawWritePortUchar ( \
+ (ULONG)pAdapter->MapPort, \
+ pAdapter->MapRegSync.CurrentMapRegister \
+ ); \
+ }
+
+
+#define SET_CODEWINDOW(pAdapter,intflag) { \
+ \
+ pAdapter->MapRegSync.CurrentMapRegister=(pAdapter->CodeWindow_Page | ((UCHAR)(intflag))); \
+ \
+ NdisRawWritePortUchar ( \
+ (ULONG)pAdapter->MapPort, \
+ pAdapter->MapRegSync.CurrentMapRegister \
+ ); \
+ }
+
+
+
+#define SET_RECDWINDOW_SYNC(pAdapter,intflag) { \
+ \
+ pAdapter->MapRegSync.NewMapRegister=(pAdapter->ReceiveDataWindow_Page | ((UCHAR)intflag)); \
+ \
+ NdisMSynchronizeWithInterrupt( \
+ &pAdapter->NdisInterrupt, \
+ UbneiMapRegisterChangeSync, \
+ &pAdapter->MapRegSync \
+ ); \
+ \
+ }
+
+#define SET_INITWINDOW_SYNC(pAdapter, intflag) { \
+ \
+ pAdapter->MapRegSync.NewMapRegister=(pAdapter->InitWindow_Page | ((UCHAR)intflag)); \
+ \
+ NdisMSynchronizeWithInterrupt( \
+ &pAdapter->NdisInterrupt, \
+ UbneiMapRegisterChangeSync, \
+ &pAdapter->MapRegSync \
+ ); \
+ \
+ }
+
+#define SET_DATAWINDOW_SYNC(pAdapter, intflag) { \
+ \
+ pAdapter->MapRegSync.NewMapRegister=(pAdapter->DataWindow_Page | ((UCHAR)intflag)); \
+ \
+ NdisMSynchronizeWithInterrupt( \
+ &pAdapter->NdisInterrupt, \
+ UbneiMapRegisterChangeSync, \
+ &pAdapter->MapRegSync \
+ ); \
+ \
+ }
+
+#define SET_CODEWINDOW_SYNC( pAdapter, intflag) { \
+ \
+ pAdapter->MapRegSync.NewMapRegister=(pAdapter->CodeWindow_Page | ((UCHAR)intflag)); \
+ \
+ NdisMSynchronizeWithInterrupt( \
+ &pAdapter->NdisInterrupt, \
+ UbneiMapRegisterChangeSync, \
+ &pAdapter->MapRegSync \
+ ); \
+ \
+ }
+
+
+
+
+#endif