diff options
author | Mohamed Abbas | 2008-03-29 00:21:05 +0100 |
---|---|---|
committer | John W. Linville | 2008-04-01 23:13:18 +0200 |
commit | c8381fdcab98b74f670d879097bab35d97d88400 (patch) | |
tree | ad2622cb396c700377dbeb26f3e36b280225bc8d /drivers/net/wireless/iwlwifi/iwl-core.h | |
parent | net/mac80211/debugfs_netdev.c: use of bool triggers a gcc bug (diff) | |
download | kernel-qcow2-linux-c8381fdcab98b74f670d879097bab35d97d88400.tar.gz kernel-qcow2-linux-c8381fdcab98b74f670d879097bab35d97d88400.tar.xz kernel-qcow2-linux-c8381fdcab98b74f670d879097bab35d97d88400.zip |
iwlwifi: add notification infrastructure to iwlcore
This patch add notification function to be called by low level
iwl driver to notify iwlcore with current state. This function
will call iwlcore subsystem with the new state. This will
help make the code more consistent and easy to extend. For example
the rf-kill need to know when the driver in init, start, stop or
remove state. Instead doing the same call in 3945 and 4965, we
just do it from this function.
Signed-off-by: Mohamed Abbas <mabbas@linux.intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-core.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h index ce7f90ebf367..4dfa05948d73 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.h +++ b/drivers/net/wireless/iwlwifi/iwl-core.h @@ -146,4 +146,13 @@ int iwl_send_cmd_pdu_async(struct iwl_priv *priv, u8 id, u16 len, struct iwl_cmd *cmd, struct sk_buff *skb)); +enum iwlcore_card_notify { + IWLCORE_INIT_EVT = 0, + IWLCORE_START_EVT = 1, + IWLCORE_STOP_EVT = 2, + IWLCORE_REMOVE_EVT = 3, +}; + +int iwlcore_low_level_notify(struct iwl_priv *priv, + enum iwlcore_card_notify notify); #endif /* __iwl_core_h__ */ |