iwl-1000.c 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2008-2009 Intel Corporation. All rights reserved.
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of version 2 of the GNU General Public License as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12. * more details.
  13. *
  14. * You should have received a copy of the GNU General Public License along with
  15. * this program; if not, write to the Free Software Foundation, Inc.,
  16. * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
  17. *
  18. * The full GNU General Public License is included in this distribution in the
  19. * file called LICENSE.
  20. *
  21. * Contact Information:
  22. * Intel Linux Wireless <ilw@linux.intel.com>
  23. * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
  24. *
  25. *****************************************************************************/
  26. #include <linux/kernel.h>
  27. #include <linux/module.h>
  28. #include <linux/init.h>
  29. #include <linux/pci.h>
  30. #include <linux/dma-mapping.h>
  31. #include <linux/delay.h>
  32. #include <linux/skbuff.h>
  33. #include <linux/netdevice.h>
  34. #include <linux/wireless.h>
  35. #include <net/mac80211.h>
  36. #include <linux/etherdevice.h>
  37. #include <asm/unaligned.h>
  38. #include "iwl-eeprom.h"
  39. #include "iwl-dev.h"
  40. #include "iwl-core.h"
  41. #include "iwl-io.h"
  42. #include "iwl-sta.h"
  43. #include "iwl-helpers.h"
  44. #include "iwl-5000-hw.h"
  45. /* Highest firmware API version supported */
  46. #define IWL1000_UCODE_API_MAX 2
  47. /* Lowest firmware API version supported */
  48. #define IWL1000_UCODE_API_MIN 1
  49. #define IWL1000_FW_PRE "iwlwifi-1000-"
  50. #define _IWL1000_MODULE_FIRMWARE(api) IWL1000_FW_PRE #api ".ucode"
  51. #define IWL1000_MODULE_FIRMWARE(api) _IWL1000_MODULE_FIRMWARE(api)
  52. struct iwl_cfg iwl1000_bgn_cfg = {
  53. .name = "1000 Series BGN",
  54. .fw_name_pre = IWL1000_FW_PRE,
  55. .ucode_api_max = IWL1000_UCODE_API_MAX,
  56. .ucode_api_min = IWL1000_UCODE_API_MIN,
  57. .sku = IWL_SKU_G|IWL_SKU_N,
  58. .ops = &iwl5000_ops,
  59. .eeprom_size = IWL_5000_EEPROM_IMG_SIZE,
  60. .eeprom_ver = EEPROM_5000_EEPROM_VERSION,
  61. .eeprom_calib_ver = EEPROM_5000_TX_POWER_VERSION,
  62. .mod_params = &iwl50_mod_params,
  63. .valid_tx_ant = ANT_A,
  64. .valid_rx_ant = ANT_AB,
  65. .need_pll_cfg = true,
  66. };