diff options
author | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
---|---|---|
committer | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
commit | e611b132f9b8abe35b362e5870b74bce94a1e58e (patch) | |
tree | a5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/ntos/ndis/digi/pcimac/util.h | |
download | NT4.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.h | 27 |
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_ */ |