aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wimax/i2400m/i2400m.h
diff options
context:
space:
mode:
authorInaky Perez-Gonzalez <inaky@linux.intel.com>2009-02-28 18:42:49 -0500
committerDavid S. Miller <davem@davemloft.net>2009-03-02 06:10:24 -0500
commit6a0f7ab8305cb60a43a6c4a548f57adab784e6cd (patch)
tree549aaceafa4e95e35050a6e98e8953afbbc1b1c8 /drivers/net/wimax/i2400m/i2400m.h
parentefa05d0f0a723642fd0d88bb97b0f31800a3f716 (diff)
wimax/i2400m: firmware_check() encodes the firmware version in i2400m->fw_version
Upcoming modifications will need to test for the running firmware version before activating a feature or not. This is helpful to implement backward compatibility with older firmware versions. Modify i2400m_firmware_check() to encode in i2400m->fw_version the major and minor version numbers of the firmware interface. As well, move the call to be done as the very first operation once we have communication with the device during probe() [in __i2400m_dev_start()]. This is needed so any operation that is executed afterwards can determine which fw version it is talking to. Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wimax/i2400m/i2400m.h')
-rw-r--r--drivers/net/wimax/i2400m/i2400m.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wimax/i2400m/i2400m.h b/drivers/net/wimax/i2400m/i2400m.h
index ad71ad1086ea..5008cdb12b42 100644
--- a/drivers/net/wimax/i2400m/i2400m.h
+++ b/drivers/net/wimax/i2400m/i2400m.h
@@ -366,6 +366,9 @@ struct i2400m_reset_ctx;
366 * module unloads, as we don't keep each dentry. 366 * module unloads, as we don't keep each dentry.
367 * 367 *
368 * @fw_name: name of the firmware image that is currently being used. 368 * @fw_name: name of the firmware image that is currently being used.
369 *
370 * @fw_version: version of the firmware interface, Major.minor,
371 * encoded in the high word and low word (major << 16 | minor).
369 */ 372 */
370struct i2400m { 373struct i2400m {
371 struct wimax_dev wimax_dev; /* FIRST! See doc */ 374 struct wimax_dev wimax_dev; /* FIRST! See doc */
@@ -424,6 +427,7 @@ struct i2400m {
424 427
425 struct dentry *debugfs_dentry; 428 struct dentry *debugfs_dentry;
426 const char *fw_name; /* name of the current firmware image */ 429 const char *fw_name; /* name of the current firmware image */
430 unsigned long fw_version; /* version of the firmware interface */
427}; 431};
428 432
429 433