summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti/wlcore/conf.h
diff options
context:
space:
mode:
authorLuciano Coelho <coelho@ti.com>2012-06-07 23:39:27 +0300
committerLuciano Coelho <coelho@ti.com>2012-06-08 09:14:08 +0300
commit18b70ac9c7fd640cbd5921b5ca2705db0f8b9d83 (patch)
tree372eb61055aac139e99c3668cc9c52edfcc93ca9 /drivers/net/wireless/ti/wlcore/conf.h
parent34bacf73c62cd71542ee12eba5896e1f360faa9b (diff)
wlcore/wl18xx: export conf struct in a debugfs file
Add conf file header structure, magic and version values and export the entire conf struct in debugfs. Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/conf.h')
-rw-r--r--drivers/net/wireless/ti/wlcore/conf.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wlcore/conf.h b/drivers/net/wireless/ti/wlcore/conf.h
index 27d919fa997f..03c635872335 100644
--- a/drivers/net/wireless/ti/wlcore/conf.h
+++ b/drivers/net/wireless/ti/wlcore/conf.h
@@ -1271,6 +1271,22 @@ struct conf_hangover_settings {
u8 window_size;
} __packed;
+/*
+ * The conf version consists of 4 bytes. The two MSB are the wlcore
+ * version, the two LSB are the lower driver's private conf
+ * version.
+ */
+#define WLCORE_CONF_VERSION (0x0001 << 16)
+#define WLCORE_CONF_MASK 0xffff0000
+#define WLCORE_CONF_SIZE (sizeof(struct wlcore_conf_header) + \
+ sizeof(struct wlcore_conf))
+
+struct wlcore_conf_header {
+ __le32 magic;
+ __le32 version;
+ __le32 checksum;
+} __packed;
+
struct wlcore_conf {
struct conf_sg_settings sg;
struct conf_rx_settings rx;
@@ -1290,4 +1306,10 @@ struct wlcore_conf {
struct conf_hangover_settings hangover;
} __packed;
+struct wlcore_conf_file {
+ struct wlcore_conf_header header;
+ struct wlcore_conf core;
+ u8 priv[0];
+} __packed;
+
#endif