summaryrefslogtreecommitdiffstats
path: root/private/ntos/ndis/digi/pcimac/util.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/digi/pcimac/util.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/digi/pcimac/util.h')
-rw-r--r--private/ntos/ndis/digi/pcimac/util.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/private/ntos/ndis/digi/pcimac/util.h b/private/ntos/ndis/digi/pcimac/util.h
new file mode 100644
index 000000000..629c49a71
--- /dev/null
+++ b/private/ntos/ndis/digi/pcimac/util.h
@@ -0,0 +1,27 @@
+/*
+ * UTIL.H - utility module header
+ */
+
+#ifndef _UTIL_
+#define _UTIL_
+
+/* data structure */
+typedef struct
+{
+ BOOL signalled;
+ NDIS_SPIN_LOCK lock;
+} SEMA;
+
+/* prototypes */
+VOID sema_init(SEMA* s);
+VOID sema_term(SEMA* s);
+BOOL sema_get(SEMA* s);
+VOID sema_free(SEMA* s);
+
+ULONG ut_time_now(VOID);
+CHAR *ut_get_buf(VOID);
+VOID ut_free_buf(CHAR* buf);
+
+/* macros */
+
+#endif /* _UTIL_ */