diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-03-04 21:09:30 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-07 16:03:00 -0500 |
commit | 82b9a1213132aa53ddbcc459ed77a335d031cd2e (patch) | |
tree | f6e75639b37eba98273ce51cbdf4dad25d280fae /drivers/net/wireless/iwlwifi/iwl-4965.c | |
parent | 750fe6396614e267aeec0e2ff636740e2688d4d9 (diff) |
iwlwifi: add struct iwl_cfg
This patch introduces struct iwl_cfg. struct iwl_cfg defines static
configuration for each device type and sku. It is passed as driver_data
to the bus probe function.
This patch also introduce new common header file iwl-core.h
which will represent core functionality of iwlwifi driver
3945ABG uses separate iwl-3945-dev.h header file for now
Signed-off-by: Tomas Winkler <tomas.winkler@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-4965.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index 2da153331a7d..8cf1b9ce4dab 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -38,6 +38,7 @@ | |||
38 | #include <linux/etherdevice.h> | 38 | #include <linux/etherdevice.h> |
39 | #include <asm/unaligned.h> | 39 | #include <asm/unaligned.h> |
40 | 40 | ||
41 | #include "iwl-core.h" | ||
41 | #include "iwl-4965.h" | 42 | #include "iwl-4965.h" |
42 | #include "iwl-helpers.h" | 43 | #include "iwl-helpers.h" |
43 | 44 | ||
@@ -4820,9 +4821,14 @@ void iwl4965_hw_cancel_deferred_work(struct iwl4965_priv *priv) | |||
4820 | cancel_delayed_work(&priv->init_alive_start); | 4821 | cancel_delayed_work(&priv->init_alive_start); |
4821 | } | 4822 | } |
4822 | 4823 | ||
4824 | static struct iwl_cfg iwl4965_agn_cfg = { | ||
4825 | .name = "4965AGN", | ||
4826 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, | ||
4827 | }; | ||
4828 | |||
4823 | struct pci_device_id iwl4965_hw_card_ids[] = { | 4829 | struct pci_device_id iwl4965_hw_card_ids[] = { |
4824 | {PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x4229)}, | 4830 | {IWL_PCI_DEVICE(0x4229, PCI_ANY_ID, iwl4965_agn_cfg)}, |
4825 | {PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x4230)}, | 4831 | {IWL_PCI_DEVICE(0x4230, PCI_ANY_ID, iwl4965_agn_cfg)}, |
4826 | {0} | 4832 | {0} |
4827 | }; | 4833 | }; |
4828 | 4834 | ||