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-3945.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-3945.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index 0fca35650ad..b9097643a64 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c | |||
@@ -39,6 +39,7 @@ | |||
39 | #include <asm/unaligned.h> | 39 | #include <asm/unaligned.h> |
40 | #include <net/mac80211.h> | 40 | #include <net/mac80211.h> |
41 | 41 | ||
42 | #include "iwl-3945-core.h" | ||
42 | #include "iwl-3945.h" | 43 | #include "iwl-3945.h" |
43 | #include "iwl-helpers.h" | 44 | #include "iwl-helpers.h" |
44 | #include "iwl-3945-rs.h" | 45 | #include "iwl-3945-rs.h" |
@@ -2523,9 +2524,23 @@ void iwl3945_hw_cancel_deferred_work(struct iwl3945_priv *priv) | |||
2523 | cancel_delayed_work(&priv->thermal_periodic); | 2524 | cancel_delayed_work(&priv->thermal_periodic); |
2524 | } | 2525 | } |
2525 | 2526 | ||
2527 | static struct iwl_3945_cfg iwl3945_bg_cfg = { | ||
2528 | .name = "3945BG", | ||
2529 | .sku = IWL_SKU_G, | ||
2530 | }; | ||
2531 | |||
2532 | static struct iwl_3945_cfg iwl3945_abg_cfg = { | ||
2533 | .name = "3945ABG", | ||
2534 | .sku = IWL_SKU_A|IWL_SKU_G, | ||
2535 | }; | ||
2536 | |||
2526 | struct pci_device_id iwl3945_hw_card_ids[] = { | 2537 | struct pci_device_id iwl3945_hw_card_ids[] = { |
2527 | {PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x4222)}, | 2538 | {IWL_PCI_DEVICE(0x4222, 0x1005, iwl3945_bg_cfg)}, |
2528 | {PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x4227)}, | 2539 | {IWL_PCI_DEVICE(0x4222, 0x1034, iwl3945_bg_cfg)}, |
2540 | {IWL_PCI_DEVICE(0x4222, 0x1044, iwl3945_bg_cfg)}, | ||
2541 | {IWL_PCI_DEVICE(0x4227, 0x1014, iwl3945_bg_cfg)}, | ||
2542 | {IWL_PCI_DEVICE(0x4222, PCI_ANY_ID, iwl3945_abg_cfg)}, | ||
2543 | {IWL_PCI_DEVICE(0x4227, PCI_ANY_ID, iwl3945_abg_cfg)}, | ||
2529 | {0} | 2544 | {0} |
2530 | }; | 2545 | }; |
2531 | 2546 | ||