-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 102490 b: refs/heads/master c: 5a6a256 h: refs/heads/master v: v3
- Loading branch information
Tomas Winkler
authored and
John W. Linville
committed
May 7, 2008
1 parent
898d181
commit 5bf2be8
Showing
7 changed files
with
194 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 694cc56dbb818fe689f721fb53452eb5ad3f8e9a | ||
refs/heads/master: 5a6a256e195380c062100dffad15f984656772c2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
/****************************************************************************** | ||
* | ||
* This file is provided under a dual BSD/GPLv2 license. When using or | ||
* redistributing this file, you may do so under either license. | ||
* | ||
* GPL LICENSE SUMMARY | ||
* | ||
* Copyright(c) 2007 - 2008 Intel Corporation. All rights reserved. | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of version 2 of the GNU General Public License as | ||
* published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, but | ||
* WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, | ||
* USA | ||
* | ||
* The full GNU General Public License is included in this distribution | ||
* in the file called LICENSE.GPL. | ||
* | ||
* Contact Information: | ||
* James P. Ketrenos <ipw2100-admin@linux.intel.com> | ||
* Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 | ||
* | ||
* BSD LICENSE | ||
* | ||
* Copyright(c) 2005 - 2008 Intel Corporation. All rights reserved. | ||
* All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions | ||
* are met: | ||
* | ||
* * Redistributions of source code must retain the above copyright | ||
* notice, this list of conditions and the following disclaimer. | ||
* * Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in | ||
* the documentation and/or other materials provided with the | ||
* distribution. | ||
* * Neither the name Intel Corporation nor the names of its | ||
* contributors may be used to endorse or promote products derived | ||
* from this software without specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
* | ||
*****************************************************************************/ | ||
/* | ||
* Please use this file (iwl-5000-hw.h) only for hardware-related definitions. | ||
* Use iwl-5000-commands.h for uCode API definitions. | ||
*/ | ||
|
||
#ifndef __iwl_5000_hw_h__ | ||
#define __iwl_5000_hw_h__ | ||
|
||
|
||
#define IWL50_MAX_WIN_SIZE 64 | ||
#define IWL50_QUEUE_SIZE 256 | ||
#define IWL50_CMD_FIFO_NUM 7 | ||
#define IWL50_NUM_QUEUES 20 | ||
#define IWL50_BACK_QUEUE_FIRST_ID 10 | ||
|
||
#endif /* __iwl_5000_hw_h__ */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
/****************************************************************************** | ||
* | ||
* Copyright(c) 2007-2008 Intel Corporation. All rights reserved. | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of version 2 of the GNU General Public License as | ||
* published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
* more details. | ||
* | ||
* You should have received a copy of the GNU General Public License along with | ||
* this program; if not, write to the Free Software Foundation, Inc., | ||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA | ||
* | ||
* The full GNU General Public License is included in this distribution in the | ||
* file called LICENSE. | ||
* | ||
* Contact Information: | ||
* Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 | ||
* | ||
*****************************************************************************/ | ||
|
||
#include <linux/kernel.h> | ||
#include <linux/module.h> | ||
#include <linux/version.h> | ||
#include <linux/init.h> | ||
#include <linux/pci.h> | ||
#include <linux/dma-mapping.h> | ||
#include <linux/delay.h> | ||
#include <linux/skbuff.h> | ||
#include <linux/netdevice.h> | ||
#include <linux/wireless.h> | ||
#include <net/mac80211.h> | ||
#include <linux/etherdevice.h> | ||
#include <asm/unaligned.h> | ||
|
||
#include "iwl-eeprom.h" | ||
#include "iwl-4965.h" | ||
#include "iwl-core.h" | ||
#include "iwl-io.h" | ||
#include "iwl-helpers.h" | ||
#include "iwl-5000-hw.h" | ||
|
||
#define IWL5000_UCODE_API "-1" | ||
|
||
static struct iwl_mod_params iwl50_mod_params = { | ||
.num_of_queues = IWL50_NUM_QUEUES, | ||
.enable_qos = 1, | ||
.amsdu_size_8K = 1, | ||
/* the rest are 0 by default */ | ||
}; | ||
|
||
|
||
struct iwl_cfg iwl5300_agn_cfg = { | ||
.name = "5300AGN", | ||
.fw_name = "iwlwifi-5000" IWL5000_UCODE_API ".ucode", | ||
.sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, | ||
.mod_params = &iwl50_mod_params, | ||
}; | ||
|
||
struct iwl_cfg iwl5100_agn_cfg = { | ||
.name = "5100AGN", | ||
.fw_name = "iwlwifi-5000" IWL5000_UCODE_API ".ucode", | ||
.sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, | ||
.mod_params = &iwl50_mod_params, | ||
}; | ||
|
||
struct iwl_cfg iwl5350_agn_cfg = { | ||
.name = "5350AGN", | ||
.fw_name = "iwlwifi-5000" IWL5000_UCODE_API ".ucode", | ||
.sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, | ||
.mod_params = &iwl50_mod_params, | ||
}; | ||
|
||
module_param_named(disable50, iwl50_mod_params.disable, int, 0444); | ||
MODULE_PARM_DESC(disable50, | ||
"manually disable the 50XX radio (default 0 [radio on])"); | ||
module_param_named(swcrypto50, iwl50_mod_params.sw_crypto, bool, 0444); | ||
MODULE_PARM_DESC(swcrypto50, | ||
"using software crypto engine (default 0 [hardware])\n"); | ||
module_param_named(debug50, iwl50_mod_params.debug, int, 0444); | ||
MODULE_PARM_DESC(debug50, "50XX debug output mask"); | ||
module_param_named(queues_num50, iwl50_mod_params.num_of_queues, int, 0444); | ||
MODULE_PARM_DESC(queues_num50, "number of hw queues in 50xx series"); | ||
module_param_named(qos_enable50, iwl50_mod_params.enable_qos, int, 0444); | ||
MODULE_PARM_DESC(qos_enable50, "enable all 50XX QoS functionality"); | ||
module_param_named(amsdu_size_8K50, iwl50_mod_params.amsdu_size_8K, int, 0444); | ||
MODULE_PARM_DESC(amsdu_size_8K50, "enable 8K amsdu size in 50XX series"); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters