aboutsummaryrefslogtreecommitdiff
path: root/drivers/ar6000/include/AR6K_version.h
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2010-05-18 01:01:48 +0200
committerLars-Peter Clausen <lars@metafoo.de>2010-05-18 01:01:48 +0200
commitf1f8ac32dddfb765e8d57fdb3b3e9c10727a0873 (patch)
treee261e1490ba2171d66a2b4940478d6a7a9c98cb5 /drivers/ar6000/include/AR6K_version.h
parent1eec1fc0f0dd4463b06cebaf9825def6acad9a23 (diff)
parent4dbd5b751767bf88ffdda5d55646738871c751ad (diff)
Merge branch 'ar6000-2.6.34' into om-gta02-2.6.34
Diffstat (limited to 'drivers/ar6000/include/AR6K_version.h')
-rw-r--r--drivers/ar6000/include/AR6K_version.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/drivers/ar6000/include/AR6K_version.h b/drivers/ar6000/include/AR6K_version.h
new file mode 100644
index 00000000000..d5b2a20b043
--- /dev/null
+++ b/drivers/ar6000/include/AR6K_version.h
@@ -0,0 +1,36 @@
+#define __VER_MAJOR_ 2
+#define __VER_MINOR_ 0
+#define __VER_PATCH_ 0
+
+
+/*
+ * Copyright (c) 2004-2007 Atheros Communications Inc.
+ * All rights reserved.
+ *
+ * $ATH_LICENSE_HOSTSDK0_C$
+ *
+ * The makear6ksdk script (used for release builds) modifies the following line.
+ */
+#define __BUILD_NUMBER_ 18
+
+
+/* Format of the version number. */
+#define VER_MAJOR_BIT_OFFSET 28
+#define VER_MINOR_BIT_OFFSET 24
+#define VER_PATCH_BIT_OFFSET 16
+#define VER_BUILD_NUM_BIT_OFFSET 0
+
+
+/*
+ * The version has the following format:
+ * Bits 28-31: Major version
+ * Bits 24-27: Minor version
+ * Bits 16-23: Patch version
+ * Bits 0-15: Build number (automatically generated during build process )
+ * E.g. Build 1.1.3.7 would be represented as 0x11030007.
+ *
+ * DO NOT split the following macro into multiple lines as this may confuse the build scripts.
+ */
+#define AR6K_SW_VERSION ( ( __VER_MAJOR_ << VER_MAJOR_BIT_OFFSET ) + ( __VER_MINOR_ << VER_MINOR_BIT_OFFSET ) + ( __VER_PATCH_ << VER_PATCH_BIT_OFFSET ) + ( __BUILD_NUMBER_ << VER_BUILD_NUM_BIT_OFFSET ) )
+
+