summaryrefslogtreecommitdiff
path: root/misc/drivers/rtl8187x/rtl8187x.h
diff options
context:
space:
mode:
Diffstat (limited to 'misc/drivers/rtl8187x/rtl8187x.h')
-rwxr-xr-xmisc/drivers/rtl8187x/rtl8187x.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/misc/drivers/rtl8187x/rtl8187x.h b/misc/drivers/rtl8187x/rtl8187x.h
index f8a75afec..fa76bfcc1 100755
--- a/misc/drivers/rtl8187x/rtl8187x.h
+++ b/misc/drivers/rtl8187x/rtl8187x.h
@@ -243,6 +243,24 @@
#define RTL8225_ANAPARAM_OFF 0xa00beb59
#define RTL8225_ANAPARAM2_OFF 0x840dec11
+/* Standard Helper Macros ***************************************************/
+
+#ifndef ARRAY_SIZE
+# define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+#endif
+
+#ifndef MAX
+# define MAX(a,b) (a > b ? a : b)
+#endif
+
+#ifndef MIN
+# define MIN(a,b) (a < b ? a : b)
+#endif
+
+#ifndef NULL
+# define NULL ((void*)0)
+#endif
+
/****************************************************************************
* Type Definitions
****************************************************************************/