亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? atmel.c

?? 底層驅(qū)動開發(fā)
?? C
?? 第 1 頁 / 共 5 頁
字號:
/*** -*- linux-c -*- **********************************************************     Driver for Atmel at76c502 at76c504 and at76c506 wireless cards.        Copyright 2000-2001 ATMEL Corporation.        Copyright 2003-2004 Simon Kelley.    This code was developed from version 2.1.1 of the Atmel drivers,     released by Atmel corp. under the GPL in December 2002. It also     includes code from the Linux aironet drivers (C) Benjamin Reed,     and the Linux PCMCIA package, (C) David Hinds and the Linux wireless    extensions, (C) Jean Tourrilhes.    The firmware module for reading the MAC address of the card comes from    net.russotto.AtmelMACFW, written by Matthew T. Russotto and copyright    by him. net.russotto.AtmelMACFW is used under the GPL license version 2.    This file contains the module in binary form and, under the terms    of the GPL, in source form. The source is located at the end of the file.    This program is free software; you can redistribute it and/or modify    it under the terms of the GNU General Public License as published by    the Free Software Foundation; either version 2 of the License, or    (at your option) any later version.    This software 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 Atmel wireless lan drivers; if not, write to the Free Software    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    For all queries about this code, please contact the current author,     Simon Kelley <simon@thekelleys.org.uk> and not Atmel Corporation.    Credit is due to HP UK and Cambridge Online Systems Ltd for supplying    hardware used during development of this driver.******************************************************************************/#include <linux/config.h>#include <linux/init.h>#include <linux/kernel.h>#include <linux/sched.h>#include <linux/ptrace.h>#include <linux/slab.h>#include <linux/string.h>#include <linux/ctype.h>#include <linux/timer.h>#include <asm/io.h>#include <asm/system.h>#include <asm/uaccess.h>#include <linux/module.h>#include <linux/netdevice.h>#include <linux/etherdevice.h>#include <linux/skbuff.h>#include <linux/if_arp.h>#include <linux/ioport.h>#include <linux/fcntl.h>#include <linux/delay.h>#include <linux/wireless.h>#include <net/iw_handler.h>#include <linux/byteorder/generic.h>#include <linux/crc32.h>#include <linux/proc_fs.h>#include <linux/device.h>#include <linux/moduleparam.h>#include <linux/firmware.h>#include <net/ieee80211.h>#include "atmel.h"#define DRIVER_MAJOR 0#define DRIVER_MINOR 96MODULE_AUTHOR("Simon Kelley");MODULE_DESCRIPTION("Support for Atmel at76c50x 802.11 wireless ethernet cards.");MODULE_LICENSE("GPL");MODULE_SUPPORTED_DEVICE("Atmel at76c50x wireless cards");/* The name of the firmware file to be loaded    over-rides any automatic selection */static char *firmware = NULL;module_param(firmware, charp, 0);/* table of firmware file names */static struct { 	AtmelFWType fw_type;	const char *fw_file;	const char *fw_file_ext;} fw_table[] = {	{ ATMEL_FW_TYPE_502,      "atmel_at76c502",      "bin" },	{ ATMEL_FW_TYPE_502D,     "atmel_at76c502d",     "bin" },	{ ATMEL_FW_TYPE_502E,     "atmel_at76c502e",     "bin" },	{ ATMEL_FW_TYPE_502_3COM, "atmel_at76c502_3com", "bin" },	{ ATMEL_FW_TYPE_504,      "atmel_at76c504",      "bin" },	{ ATMEL_FW_TYPE_504_2958, "atmel_at76c504_2958", "bin" },	{ ATMEL_FW_TYPE_504A_2958,"atmel_at76c504a_2958","bin" },	{ ATMEL_FW_TYPE_506,      "atmel_at76c506",      "bin" },	{ ATMEL_FW_TYPE_NONE,      NULL,                  NULL }};#define MAX_SSID_LENGTH 32#define MGMT_JIFFIES (256 * HZ / 100)#define MAX_BSS_ENTRIES	64	/* registers */#define GCR  0x00    //      (SIR0)  General Configuration Register        #define BSR  0x02    //      (SIR1)  Bank Switching Select Register #define AR   0x04#define DR   0x08#define MR1  0x12    //      Mirror Register 1                  #define MR2  0x14    //      Mirror Register 2  #define MR3  0x16    //      Mirror Register 3  #define MR4  0x18    //      Mirror Register 4   #define GPR1                            0x0c#define GPR2                            0x0e#define GPR3                            0x10//// Constants for the GCR register.//#define GCR_REMAP     0x0400          // Remap internal SRAM to 0#define GCR_SWRES     0x0080          // BIU reset (ARM and PAI are NOT reset) #define GCR_CORES     0x0060          // Core Reset (ARM and PAI are reset)#define GCR_ENINT     0x0002          // Enable Interrupts    #define GCR_ACKINT    0x0008          // Acknowledge Interrupts#define BSS_SRAM      0x0200          // AMBA module selection --> SRAM#define BSS_IRAM      0x0100          // AMBA module selection --> IRAM//// Constants for the MR registers.//#define MAC_INIT_COMPLETE       0x0001        // MAC init has been completed#define MAC_BOOT_COMPLETE       0x0010        // MAC boot has been completed#define MAC_INIT_OK             0x0002        // MAC boot has been completed#define C80211_SUBTYPE_MGMT_ASS_REQUEST                 0x00#define C80211_SUBTYPE_MGMT_ASS_RESPONSE                0x10#define C80211_SUBTYPE_MGMT_REASS_REQUEST               0x20#define C80211_SUBTYPE_MGMT_REASS_RESPONSE              0x30#define C80211_SUBTYPE_MGMT_ProbeRequest                0x40#define C80211_SUBTYPE_MGMT_ProbeResponse               0x50#define C80211_SUBTYPE_MGMT_BEACON                      0x80#define C80211_SUBTYPE_MGMT_ATIM                        0x90#define C80211_SUBTYPE_MGMT_DISASSOSIATION              0xA0#define C80211_SUBTYPE_MGMT_Authentication              0xB0#define C80211_SUBTYPE_MGMT_Deauthentication    0xC0#define C80211_MGMT_AAN_OPENSYSTEM              0x0000#define C80211_MGMT_AAN_SHAREDKEY               0x0001#define C80211_MGMT_CAPABILITY_ESS              0x0001  // see 802.11 p.58#define C80211_MGMT_CAPABILITY_IBSS             0x0002  //      - " -#define C80211_MGMT_CAPABILITY_CFPollable       0x0004  //      - " -#define C80211_MGMT_CAPABILITY_CFPollRequest    0x0008  //      - " -#define C80211_MGMT_CAPABILITY_Privacy          0x0010  //      - " -#define C80211_MGMT_SC_Success                  0#define C80211_MGMT_SC_Unspecified              1#define C80211_MGMT_SC_SupportCapabilities      10#define C80211_MGMT_SC_ReassDenied              11#define C80211_MGMT_SC_AssDenied                12#define C80211_MGMT_SC_AuthAlgNotSupported      13#define C80211_MGMT_SC_AuthTransSeqNumError     14#define C80211_MGMT_SC_AuthRejectChallenge      15#define C80211_MGMT_SC_AuthRejectTimeout        16#define C80211_MGMT_SC_AssDeniedHandleAP        17#define C80211_MGMT_SC_AssDeniedBSSRate         18#define C80211_MGMT_ElementID_SSID              0#define C80211_MGMT_ElementID_SupportedRates    1#define C80211_MGMT_ElementID_ChallengeText     16#define C80211_MGMT_CAPABILITY_ShortPreamble    0x0020#define MIB_MAX_DATA_BYTES    212#define MIB_HEADER_SIZE       4    /* first four fields */struct get_set_mib {        u8 type;        u8 size;        u8 index;        u8 reserved;        u8 data[MIB_MAX_DATA_BYTES];};struct rx_desc {        u32          Next;        u16          MsduPos;        u16          MsduSize;	        u8           State;        u8           Status;        u8           Rate;        u8           Rssi;        u8           LinkQuality;        u8           PreambleType;        u16          Duration;        u32          RxTime;};#define RX_DESC_FLAG_VALID       0x80#define RX_DESC_FLAG_CONSUMED    0x40#define RX_DESC_FLAG_IDLE        0x00#define RX_STATUS_SUCCESS        0x00#define RX_DESC_MSDU_POS_OFFSET      4#define RX_DESC_MSDU_SIZE_OFFSET     6#define RX_DESC_FLAGS_OFFSET         8#define RX_DESC_STATUS_OFFSET        9#define RX_DESC_RSSI_OFFSET          11#define RX_DESC_LINK_QUALITY_OFFSET  12#define RX_DESC_PREAMBLE_TYPE_OFFSET 13#define RX_DESC_DURATION_OFFSET      14#define RX_DESC_RX_TIME_OFFSET       16struct tx_desc {	u32       NextDescriptor;	u16       TxStartOfFrame;	u16       TxLength;		u8        TxState;	u8        TxStatus;	u8        RetryCount;		u8        TxRate;	u8        KeyIndex;	u8        ChiperType;	u8        ChipreLength;        u8        Reserved1;	u8        Reserved;	u8        PacketType;	u16       HostTxLength;	};#define TX_DESC_NEXT_OFFSET          0#define TX_DESC_POS_OFFSET           4#define TX_DESC_SIZE_OFFSET          6#define TX_DESC_FLAGS_OFFSET         8#define TX_DESC_STATUS_OFFSET        9#define TX_DESC_RETRY_OFFSET         10#define TX_DESC_RATE_OFFSET          11#define TX_DESC_KEY_INDEX_OFFSET     12#define TX_DESC_CIPHER_TYPE_OFFSET   13#define TX_DESC_CIPHER_LENGTH_OFFSET 14#define TX_DESC_PACKET_TYPE_OFFSET   17#define TX_DESC_HOST_LENGTH_OFFSET   18///////////////////////////////////////////////////////// Host-MAC interface///////////////////////////////////////////////////////#define TX_STATUS_SUCCESS       0x00#define TX_FIRM_OWN             0x80#define TX_DONE                 0x40#define TX_ERROR                0x01#define TX_PACKET_TYPE_DATA     0x01#define TX_PACKET_TYPE_MGMT     0x02#define ISR_EMPTY               0x00        // no bits set in ISR#define ISR_TxCOMPLETE          0x01        // packet transmitted#define ISR_RxCOMPLETE          0x02        // packet received#define ISR_RxFRAMELOST         0x04        // Rx Frame lost#define ISR_FATAL_ERROR         0x08        // Fatal error#define ISR_COMMAND_COMPLETE    0x10        // command completed#define ISR_OUT_OF_RANGE        0x20        // command completed#define ISR_IBSS_MERGE          0x40        // (4.1.2.30): IBSS merge#define ISR_GENERIC_IRQ         0x80                #define Local_Mib_Type          0x01#define Mac_Address_Mib_Type    0x02#define Mac_Mib_Type            0x03#define Statistics_Mib_Type     0x04#define Mac_Mgmt_Mib_Type       0x05#define Mac_Wep_Mib_Type        0x06#define Phy_Mib_Type            0x07#define Multi_Domain_MIB        0x08#define MAC_MGMT_MIB_CUR_BSSID_POS            14#define MAC_MIB_FRAG_THRESHOLD_POS            8#define MAC_MIB_RTS_THRESHOLD_POS             10#define MAC_MIB_SHORT_RETRY_POS               16#define MAC_MIB_LONG_RETRY_POS                17#define MAC_MIB_SHORT_RETRY_LIMIT_POS         16#define MAC_MGMT_MIB_BEACON_PER_POS           0#define MAC_MGMT_MIB_STATION_ID_POS           6#define MAC_MGMT_MIB_CUR_PRIVACY_POS          11#define MAC_MGMT_MIB_CUR_BSSID_POS            14#define MAC_MGMT_MIB_PS_MODE_POS              53#define MAC_MGMT_MIB_LISTEN_INTERVAL_POS      54#define MAC_MGMT_MIB_MULTI_DOMAIN_IMPLEMENTED 56#define MAC_MGMT_MIB_MULTI_DOMAIN_ENABLED     57#define PHY_MIB_CHANNEL_POS                   14#define PHY_MIB_RATE_SET_POS                  20#define PHY_MIB_REG_DOMAIN_POS                26#define LOCAL_MIB_AUTO_TX_RATE_POS            3#define LOCAL_MIB_SSID_SIZE                   5#define LOCAL_MIB_TX_PROMISCUOUS_POS          6#define LOCAL_MIB_TX_MGMT_RATE_POS            7#define LOCAL_MIB_TX_CONTROL_RATE_POS         8#define LOCAL_MIB_PREAMBLE_TYPE               9#define MAC_ADDR_MIB_MAC_ADDR_POS             0#define         CMD_Set_MIB_Vars              0x01#define         CMD_Get_MIB_Vars              0x02#define         CMD_Scan                      0x03#define         CMD_Join                      0x04#define         CMD_Start                     0x05#define         CMD_EnableRadio               0x06#define         CMD_DisableRadio              0x07#define         CMD_SiteSurvey                0x0B#define         CMD_STATUS_IDLE                   0x00#define         CMD_STATUS_COMPLETE               0x01#define         CMD_STATUS_UNKNOWN                0x02#define         CMD_STATUS_INVALID_PARAMETER      0x03#define         CMD_STATUS_FUNCTION_NOT_SUPPORTED 0x04#define         CMD_STATUS_TIME_OUT               0x07#define         CMD_STATUS_IN_PROGRESS            0x08#define         CMD_STATUS_REJECTED_RADIO_OFF     0x09#define         CMD_STATUS_HOST_ERROR             0xFF#define         CMD_STATUS_BUSY                   0xFE#define CMD_BLOCK_COMMAND_OFFSET        0#define CMD_BLOCK_STATUS_OFFSET         1#define CMD_BLOCK_PARAMETERS_OFFSET     4#define SCAN_OPTIONS_SITE_SURVEY        0x80#define MGMT_FRAME_BODY_OFFSET		24#define MAX_AUTHENTICATION_RETRIES	3#define MAX_ASSOCIATION_RETRIES 	3#define AUTHENTICATION_RESPONSE_TIME_OUT  1000#define MAX_WIRELESS_BODY  2316 /* mtu is 2312, CRC is 4 */#define LOOP_RETRY_LIMIT   500000#define ACTIVE_MODE 	1#define PS_MODE 	2#define MAX_ENCRYPTION_KEYS 4#define MAX_ENCRYPTION_KEY_SIZE 40///////////////////////////////////////////////////////////////////////////// 802.11 related definitions/////////////////////////////////////////////////////////////////////////////// Regulatory Domains//#define REG_DOMAIN_FCC		0x10	//Channels	1-11	USA#define REG_DOMAIN_DOC		0x20	//Channel	1-11	Canada#define REG_DOMAIN_ETSI		0x30	//Channel	1-13	Europe (ex Spain/France)#define REG_DOMAIN_SPAIN	0x31	//Channel	10-11	Spain#define REG_DOMAIN_FRANCE	0x32	//Channel	10-13	France#define REG_DOMAIN_MKK		0x40	//Channel	14	Japan#define REG_DOMAIN_MKK1		0x41	//Channel	1-14	Japan(MKK1)#define REG_DOMAIN_ISRAEL	0x50	//Channel	3-9	ISRAEL#define BSS_TYPE_AD_HOC 	1#define BSS_TYPE_INFRASTRUCTURE 2#define SCAN_TYPE_ACTIVE	0#define SCAN_TYPE_PASSIVE	1#define LONG_PREAMBLE		0#define SHORT_PREAMBLE		1#define AUTO_PREAMBLE		2#define DATA_FRAME_WS_HEADER_SIZE   30/* promiscuous mode control */ #define PROM_MODE_OFF			0x0#define PROM_MODE_UNKNOWN		0x1#define PROM_MODE_CRC_FAILED		0x2#define PROM_MODE_DUPLICATED		0x4#define PROM_MODE_MGMT			0x8#define PROM_MODE_CTRL			0x10#define PROM_MODE_BAD_PROTOCOL		0x20#define IFACE_INT_STATUS_OFFSET 	0#define IFACE_INT_MASK_OFFSET		1#define IFACE_LOCKOUT_HOST_OFFSET	2#define IFACE_LOCKOUT_MAC_OFFSET	3#define IFACE_FUNC_CTRL_OFFSET		28#define IFACE_MAC_STAT_OFFSET		30#define IFACE_GENERIC_INT_TYPE_OFFSET	32#define CIPHER_SUITE_NONE     0 #define CIPHER_SUITE_WEP_64   1#define CIPHER_SUITE_TKIP     2#define CIPHER_SUITE_AES      3#define CIPHER_SUITE_CCX      4#define CIPHER_SUITE_WEP_128  5//// IFACE MACROS & definitions//

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美巨大另类极品videosbest | 成人黄色大片在线观看| 欧美午夜精品一区| 亚洲欧美一区二区久久| 成年人网站91| 国产精品嫩草久久久久| 国产suv精品一区二区883| 日韩欧美一二三区| 久久精品99国产精品日本| 日韩视频在线你懂得| 一区二区三区四区视频精品免费 | 久久久国产精品麻豆| 美女国产一区二区三区| 精品福利一二区| 国产一区福利在线| 国产日产欧美精品一区二区三区| 国模一区二区三区白浆| 欧美激情综合在线| 99国产精品久| 亚洲美女在线国产| 欧美日韩在线播| 久久国产精品免费| 欧美国产一区视频在线观看| 不卡免费追剧大全电视剧网站| 国产亚洲成av人在线观看导航| 国产成人福利片| 久久久99精品久久| 99精品国产热久久91蜜凸| 日本中文字幕不卡| 国产精品免费视频网站| 6080国产精品一区二区| 成人v精品蜜桃久久一区| 亚洲最大成人综合| 欧美一级片在线| 成人午夜激情片| 色妞www精品视频| 国产欧美一区二区三区在线老狼| 97精品超碰一区二区三区| 五月天激情综合| 国产精品热久久久久夜色精品三区| 精品污污网站免费看| 国产精品一区一区三区| 亚洲第一在线综合网站| 国产欧美va欧美不卡在线| 欧美日本一道本| 538在线一区二区精品国产| 国产成人免费视频网站 | 中文字幕一区二区三区不卡 | 久久久综合网站| 欧美美女直播网站| 91蜜桃网址入口| 国内精品在线播放| 日日嗨av一区二区三区四区| 成人欧美一区二区三区1314| 精品精品欲导航| 欧美日韩三级视频| 91丨porny丨首页| 成人在线视频一区二区| 极品美女销魂一区二区三区 | 欧美影片第一页| 波多野结衣欧美| 国产精品一区二区久激情瑜伽 | 午夜久久久久久| 亚洲精品国产高清久久伦理二区| 国产偷国产偷精品高清尤物| 日韩欧美成人一区| 日韩亚洲欧美成人一区| 欧美性xxxxxxxx| 欧美色综合影院| 欧亚洲嫩模精品一区三区| voyeur盗摄精品| 成人动漫精品一区二区| 不卡av在线网| 不卡av在线免费观看| 成人激情小说乱人伦| 国产成a人无v码亚洲福利| 国产成人高清视频| 国产.欧美.日韩| 成人在线综合网| av高清不卡在线| 91猫先生在线| 欧美中文字幕不卡| 欧美综合一区二区| 欧美日韩精品欧美日韩精品一| 欧美三级电影网| 欧美肥妇free| 欧美大胆人体bbbb| 精品国产a毛片| 欧美韩国一区二区| 日韩伦理电影网| 亚洲一区二区中文在线| 日日嗨av一区二区三区四区| 久久精品国产网站| 国产高清一区日本| 91视频国产资源| 欧美裸体bbwbbwbbw| 日韩一级精品视频在线观看| 欧美www视频| 国产精品色噜噜| 亚洲综合图片区| 美女精品一区二区| 成人免费av在线| 欧美主播一区二区三区| 日韩女优电影在线观看| 国产日韩欧美综合在线| 亚洲男人都懂的| 青青草成人在线观看| 国产成人综合网| 色婷婷久久99综合精品jk白丝 | 91久久久免费一区二区| 欧美亚洲综合另类| 精品日韩一区二区三区| 激情丁香综合五月| 北条麻妃国产九九精品视频| 欧美午夜精品一区二区三区| 精品国产1区2区3区| **网站欧美大片在线观看| 日韩国产欧美三级| 成人网男人的天堂| 337p亚洲精品色噜噜狠狠| 欧美国产激情二区三区| 午夜久久福利影院| 粗大黑人巨茎大战欧美成人| 欧美日韩一本到| 亚洲国产成人午夜在线一区| 午夜伦理一区二区| 99精品国产99久久久久久白柏| 日韩视频国产视频| 一区二区三区中文字幕精品精品 | 成人免费看视频| 在线播放中文一区| 亚洲天堂精品在线观看| 国产尤物一区二区在线| 在线一区二区视频| 亚洲国产成人午夜在线一区| 免费欧美在线视频| 欧美性猛片aaaaaaa做受| 国产精品视频线看| 国产一区二区三区免费观看| 欧美日韩一区成人| 亚洲男人天堂av网| 成人影视亚洲图片在线| 精品99999| 美女国产一区二区| 欧美日本一区二区三区| 一区二区三区中文在线观看| 国产精品一级片| 26uuu精品一区二区| 石原莉奈在线亚洲三区| 在线观看www91| 亚洲欧美国产三级| 成人激情黄色小说| 国产欧美日韩视频一区二区| 久久精品久久久精品美女| 在线电影一区二区三区| 亚洲中国最大av网站| 91麻豆精品视频| 国产精品国产自产拍高清av王其| 国产精品资源在线看| 精品国产乱码久久久久久免费| 五月激情综合色| 欧美精品久久一区| 亚洲国产一区二区视频| 色偷偷成人一区二区三区91| 亚洲色图欧洲色图| 国产老女人精品毛片久久| 精品在线免费视频| 久久久精品日韩欧美| 午夜精品一区二区三区三上悠亚 | 国产一区二区不卡在线| 亚洲精品一区二区在线观看| 色狠狠色噜噜噜综合网| 一区二区三区免费网站| 在线精品亚洲一区二区不卡| 亚洲码国产岛国毛片在线| 在线视频一区二区免费| 亚洲成人自拍网| 日韩区在线观看| 久久www免费人成看片高清| 精品国产髙清在线看国产毛片| 久久国产免费看| 国产视频一区在线观看| 成人av动漫网站| 亚洲综合激情另类小说区| 欧美二区在线观看| 精品一区二区三区在线播放| 久久视频一区二区| 成人avav影音| 亚洲一级在线观看| 精品理论电影在线观看| 国产成人午夜电影网| 亚洲日本护士毛茸茸| 欧美日本一区二区三区| 国产一区欧美日韩| 成人欧美一区二区三区在线播放| 在线免费观看日本一区| 免费美女久久99| 国产精品国产a级| 精品视频在线免费看| 国产在线精品一区二区三区不卡|