diff options
| author | Stephen Rothwell <sfr@canb.auug.org.au> | 2011-07-25 13:59:46 -0400 | 
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-07-25 14:53:52 -0400 | 
| commit | 5f00bcb38ef9a980a33c6dbdc0044964b05f22dd (patch) | |
| tree | 3175fb9375aecb50bde1be0bf4fa8aa8155131d6 /drivers/net/wireless/wl12xx/cmd.h | |
| parent | 34006cee28f7344f9557a4be3816c7891b1bbab1 (diff) | |
| parent | b6844e8f64920cdee620157252169ba63afb0c89 (diff) | |
Merge branch 'master' into devel and apply fixup from Stephen Rothwell:
vfs/nfs: fixup for nfs_open_context change
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/cmd.h')
| -rw-r--r-- | drivers/net/wireless/wl12xx/cmd.h | 62 | 
1 files changed, 62 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/cmd.h b/drivers/net/wireless/wl12xx/cmd.h index 5cac95d9480..1f7037292c1 100644 --- a/drivers/net/wireless/wl12xx/cmd.h +++ b/drivers/net/wireless/wl12xx/cmd.h @@ -70,6 +70,9 @@ int wl1271_cmd_start_bss(struct wl1271 *wl);  int wl1271_cmd_stop_bss(struct wl1271 *wl);  int wl1271_cmd_add_sta(struct wl1271 *wl, struct ieee80211_sta *sta, u8 hlid);  int wl1271_cmd_remove_sta(struct wl1271 *wl, u8 hlid); +int wl12xx_cmd_config_fwlog(struct wl1271 *wl); +int wl12xx_cmd_start_fwlog(struct wl1271 *wl); +int wl12xx_cmd_stop_fwlog(struct wl1271 *wl);  enum wl1271_commands {  	CMD_INTERROGATE     = 1,    /*use this to read information elements*/ @@ -107,6 +110,9 @@ enum wl1271_commands {  	CMD_START_PERIODIC_SCAN      = 50,  	CMD_STOP_PERIODIC_SCAN       = 51,  	CMD_SET_STA_STATE            = 52, +	CMD_CONFIG_FWLOGGER          = 53, +	CMD_START_FWLOGGER           = 54, +	CMD_STOP_FWLOGGER            = 55,  	/* AP mode commands */  	CMD_BSS_START                = 60, @@ -575,4 +581,60 @@ struct wl1271_cmd_remove_sta {  	u8 padding1;  } __packed; +/* + * Continuous mode - packets are transferred to the host periodically + * via the data path. + * On demand - Log messages are stored in a cyclic buffer in the + * firmware, and only transferred to the host when explicitly requested + */ +enum wl12xx_fwlogger_log_mode { +	WL12XX_FWLOG_CONTINUOUS, +	WL12XX_FWLOG_ON_DEMAND +}; + +/* Include/exclude timestamps from the log messages */ +enum wl12xx_fwlogger_timestamp { +	WL12XX_FWLOG_TIMESTAMP_DISABLED, +	WL12XX_FWLOG_TIMESTAMP_ENABLED +}; + +/* + * Logs can be routed to the debug pinouts (where available), to the host bus + * (SDIO/SPI), or dropped + */ +enum wl12xx_fwlogger_output { +	WL12XX_FWLOG_OUTPUT_NONE, +	WL12XX_FWLOG_OUTPUT_DBG_PINS, +	WL12XX_FWLOG_OUTPUT_HOST, +}; + +struct wl12xx_cmd_config_fwlog { +	struct wl1271_cmd_header header; + +	/* See enum wl12xx_fwlogger_log_mode */ +	u8 logger_mode; + +	/* Minimum log level threshold */ +	u8 log_severity; + +	/* Include/exclude timestamps from the log messages */ +	u8 timestamp; + +	/* See enum wl1271_fwlogger_output */ +	u8 output; + +	/* Regulates the frequency of log messages */ +	u8 threshold; + +	u8 padding[3]; +} __packed; + +struct wl12xx_cmd_start_fwlog { +	struct wl1271_cmd_header header; +} __packed; + +struct wl12xx_cmd_stop_fwlog { +	struct wl1271_cmd_header header; +} __packed; +  #endif /* __WL1271_CMD_H__ */  | 
