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

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

?? am930hw.c

?? wlan_monitor monitor utility for wlan device
?? C
?? 第 1 頁 / 共 4 頁
字號:
			/*  first, get rid of the old one */			old_state |= SURXD_ST_FWOWN;			write8( hw, old_head + RXD_OFF_STATE, old_state);			if ( SURXD_ST_IS_CONSUMED(state) )			{				/* it's a dummy, do nothing */				DBPRT( DBFWINT, "We got a dummy!\n");			}			else if ( SURXD_ST_IS_RXERR(state) )			{				/* rx error, note it and move on... */				DBPRT( DBFWINT, "RX int, desc err, state=0x%x\n", state);				if ( SURXD_ST_IS_CRC_ERR(state) )					hw->stats.rx_crcerr++;				if ( SURXD_ST_IS_BUF_OFLOW(state) )					hw->stats.rx_buf_oflow++;				state |= SURXD_ST_CONSUMED;				write8(hw, hw->rx_head+RXD_OFF_STATE, state);				am930mac_rxframe_err(hw->mac);							}			else			{				/* hey! we've actually got something! */				/*  copy the frame to host memory and pass it up */				len = read16(hw, hw->rx_head + RXD_OFF_LEN);				frm = am930mac_mk_rxfrmbuf( hw->mac, len);				if ( frm == NULL )				{					printk(KERN_DEBUG"mac_mk_rxfrmbuf failed!\n");					state |= SURXD_ST_CONSUMED;					write8(hw, hw->rx_head+RXD_OFF_STATE, state);				}				else				{					data_off = read32(hw, hw->rx_head + RXD_OFF_START_FRAME);					data_off &= 0x0000ffff;					readcard(hw, data_off, frm->data, len);					/* print new rx_desc */					#ifdef DBMSG_ENABLED						if ( (dbmask & FILEBIT) && (dbmask & DBRXDATA))						{							int i;							printk(KERN_DEBUG"rxframe: ");							for ( i = 0; i < len; i++)							{								printk("%02x ", frm->data[i]);							}							printk("\n");						}					#endif					frm->len = len;					frm->rssi = read8(hw, hw->rx_head + RXD_OFF_RSSI);					/* start mod: tld */					rssi_tld = (int) frm->rssi;					/* end mod: tld */					frm->ch = read8(hw, hw->rx_head + RXD_OFF_INDEX_OR_CH);					frm->local_time = 						read32(hw, hw->rx_head + RXD_OFF_LOCAL_TIME);					frm->rate = read8(hw, hw->rx_head + RXD_OFF_RATE);					state |= SURXD_ST_CONSUMED;					write8(hw, hw->rx_head+RXD_OFF_STATE, state);					am930mac_rxframe( hw->mac, frm );				}			}		}		/* read the state and next fields from the head */		state = read8(hw, hw->rx_head + RXD_OFF_STATE);		next = am930hw_read_rxnext(hw);	}	DBPRT( DBFWINT, "RXint done\n") }/* start mod: tld *//*---------------------------------------------------------------- *      am930hw_rssi_tld * *      returns: rssi value as int ----------------------------------------------------------------*/UINT32 am930hw_rssi_tld(int tld_v) {  return( rssi_tld );}/* end mod: tld *//*----------------------------------------------------------------*	am930hw_read_rxnext**	Repeated read of the rxnext field to make _sure_ we have real*	data.  Very paranoid.**	returns: nothing----------------------------------------------------------------*/static UINT32 am930hw_read_rxnext(am930hw_t *hw){	UINT32 result = 0;	UINT32 old = 0;	result = read32( hw, hw->rx_head + RXD_OFF_NEXT);	while ( result != old )	{		old = result;		result = read32( hw, hw->rx_head + RXD_OFF_NEXT);		if ( old != result )		{			DBPRT( DBFWINT, "two reads of rxnext didn't match!\n");		}	}	return result;}/*----------------------------------------------------------------*	am930hw_onint_tx**	ISR helper for f/w generated scan complete interrupts**	returns: nothing----------------------------------------------------------------*/void am930hw_onint_tx( am930hw_t *hw ){	UINT32	last;	UINT8	state;	UINT32	txresult = 0;	DBPRT( DBFWINT, "TX Complete interrupt!\n")	last = read32(hw, hw->txcmplt + TXCMPLT_OFF_DATA);	state = read8(hw, last + TXD_OFF_STATE);	if ( state & SUTXD_ST_TXERR )	{		DBPRT( DBFWINT, "Frame TX err detected\n");		if ( state & SUTXD_ST_REJECTED )		{			DBPRT( DBFWCMD, "TX frame rejected by f/w\n");			hw->stats.tx_rejected++;		}		if ( state & SUTXD_ST_MSDU_TMOUT )		{			hw->stats.tx_tmout++;		}		if ( state & SUTXD_ST_ABRT )		{/*			hw->stats.tx_fifo_uflow++; */		}		if ( state & SUTXD_ST_ABRT_NOTX )		{/*			hw->stats.tx_retry++; */		}		if ( state & SUTXD_ST_MAX_RETRY )		{			hw->stats.tx_retry++;		}	}	txresult = state & (SUTXD_ST_TXERR | SUTXD_ST_ABRT) ? 1 : 0;	am930mac_ontxcomplete(hw->mac, txresult);/*#ifdef DBMSG_ENABLED	if ( (dbmask & FILEBIT) && (dbmask & DBTXDATA))	{		am930tx_desc_t desc;		readcard(hw, last, &desc, sizeof(desc));		am930hw_dbprintTXdesc(&desc);	}#endif*/	DBPRT( DBFWINT, "TX int done\n")}/*----------------------------------------------------------------*	am930hw_onint_scancomplete**	ISR helper for f/w generated scan complete interrupts**	returns: nothing----------------------------------------------------------------*/void am930hw_onint_scancomplete( am930hw_t *hw){	DBPRT( DBFWINT, "Scan Complete interrupt! ch = %d\n", hw->scan_ch)	hw->state &= ~AM930HW_SCANNING;	if ( hw->scan_callback != NULL )	{		/* alert the callback function */		(*hw->scan_callback)(hw->scan_callbackarg);		/* check to see if the callback put us back in scan mode */		if ( (hw->state & AM930HW_SCANNING) == 0 )		{			/* if not, clear the callback and arg fields */			hw->scan_callback = NULL;			hw->scan_callbackarg = NULL;		}	}}/*----------------------------------------------------------------*	am930hw_reset**	This function performs a reset of the am930 processor, waits*	for the firmware to "reboot" and then sends the firmware a *	test command.**	returns: 0 on success, non-zero on failure----------------------------------------------------------------*/UINT32	am930hw_reset( am930hw_t *hw ){	UINT32 	result = 0;	UINT32 	init_retry = 0;	UINT8	reg;	UINT32	count;	UINT32	i;	UINT8	selftest;	am930hw_cmd_result_t	cmd_result;	DBFENTER;	do	{		/* Lets go through a reset cycle */		/* Set the CORESET bit of GCR and wait 10 us */		outb( BIT6, GCR(hw) );		udelay(10);		/* Set the SWRESET bit of GCR and wait 10 us */		outb( BIT7, GCR(hw) );		udelay(10);		/* Clear the GCR and wait 10 us */		outb( 0, GCR(hw) );		udelay(10);		/* Set the CORESET bit of GCR and wait 10 us */		outb( BIT6, GCR(hw) );		udelay(10);		/* Clear the ctl memory  regions (f/w should do this, but doesn't) */		for ( i = SU_OFF_LAST_TXDESC; i < SU_OFF_BUFFER; i++)		{			write8(hw, i, 0);		}		/* Clear the GCR and wait 10 us */		outb( 0, GCR(hw) );		udelay(10);		/* Before doing the ALE test, do an initial read of BSS */		reg = inb( BSS(hw) );		count = 0;		do 		{			udelay(50);						/* Write zero to BSS and wait 10us */			outb( 0, BSS(hw) );			udelay(50);						/* Read BSS and check the ALE Test Read bit */			reg = inb( BSS(hw) );		} while ( reg != 0x80 && ++count < 20 );			/* Now wait for 2 seconds */		/*		current->timeout = jiffies + (2 * HZ);		current->state = TASK_INTERRUPTIBLE;		schedule();		current->timeout = 0;		*/		schedule_timeout( 2*HZ );		/* Now, check the selftest status */		while ( (selftest = read8(hw, hw->cs + CS_OFF_SELF_TEST)) < 0xf0)		{		}		if ( selftest != 0xFF )		{		   printk(KERN_DEBUG"Card self-test failed, code=0x%02x\n", selftest);		   result = 1;		}		/* Issue the test interface command */		cmd_result = am930hw_fw_cmd( hw, SUCMD_CMD_TEST_NOP, NULL, 0); 			if ( cmd_result.fw_status != SUCMD_STAT_CMPLT ||		 	 cmd_result.drvr_status != 0 )		{			DBPRT( DBINIT | DBFWCMD, 				"Firmware Test Interface failed, status=0x%x\n",				cmd_result.fw_status);			result = 1;		}			init_retry++;		} while ( init_retry < 10 &&			  ( cmd_result.fw_status != SUCMD_STAT_CMPLT ||			    cmd_result.drvr_status != 0 ) );	/* if the reset failed, log it */	if ( init_retry >= 10 &&	 		( cmd_result.fw_status != SUCMD_STAT_CMPLT ||		      cmd_result.drvr_status != 0 ) )	{		DBPRT( DBINIT | DBFWCMD, 			"All retries of reset and Test Interface failed status=0x%x\n",			cmd_result.fw_status);		result = 1;	}	return result;}	/*----------------------------------------------------------------*	am930hw_rx_enable**	Helper function to send the sutro ENABLE_RX command. **	returns: AM930HW_CMD_SUCCESS or*			 AM930HW_CMD_INITTXFAILED----------------------------------------------------------------*/UINT32 am930hw_rx_enable(am930hw_t *hw){	UINT32 					result = AM930HW_CMD_SUCCESS;	sucmd_en_rcvr_t			cmd;	am930hw_cmd_result_t	cmd_result;	DBFENTER;	cmd.data_desc = 0;/* TODO: handle the setting up of the pspoll descriptor */	cmd_result = am930hw_fw_cmd( hw, SUCMD_CMD_EN_RCVR, &cmd, -sizeof(cmd));		if ( cmd_result.fw_status != SUCMD_STAT_CMPLT || 		cmd_result.drvr_status != 0 )	{		printk(KERN_DEBUG "init_rx failed!\n");		result = AM930HW_CMD_INITRXFAILED;	}	else	{		hw->rx_head = cmd.data_desc;	}	DBFEXIT;	return result;}/*----------------------------------------------------------------*	am930hw_scan**	Public method used to tell the MAC to scan. In this case it *   is the hardware element of the MAC that's being told what to*   do.**	The cntl argument has two purposes, it specifies*	what kind of BSS to scan for (BSSType)and what kind of scan to*	perform (active or passive).*	The values of the bit fields are:*	AM930HWSCAN_ACTIVE*	AM930HWSCAN_PASSIVE*	AM930HWSCAN_IBSS*	AM930HWSCAN_ESS*	note 1: that IBSS and ESS can be used together.*	note 2: the units for the duration field are Kus.**	returns: AM930HW_CMD_SUCCESS or*			 AM930HW_CMD_INITTXFAILED----------------------------------------------------------------*/UINT32 am930hw_scan( am930hw_t *hw, UINT32 cntl, UINT48 bssid, 					UINT32 ch, UINT32 duration,					am930hw_scan_callback_t cb, void *callback_arg){	UINT32 					result = AM930HW_SUCCESS;	sucmd_scan_t			cmd;	am930hw_cmd_result_t	cmd_result;	su_mib_mac_mgmt_t		mib;	DBFENTER;	/* Get the mac_mgmt mib */	if ( am930hw_mibget( hw, SUMIB_MGMT, 0, sizeof(mib), &mib) 			!= AM930HW_CMD_SUCCESS )	{		DBPRT( DBFWCMD, "Initial mib read failed!\n");		result = AM930HW_FAILURE;	}	else	{		/* set the scan mode and duration (if passive) */		if ( cntl & AM930HWSCAN_PASSIVE )		{			mib.scan_mode = SUMIB_SCANMODE_PASSIVE;			mib.passive_scan_duration = duration;		}		else /* ACTIVE */		{			mib.scan_mode = SUMIB_SCANMODE_ACTIVE;		}			if ( am930hw_mibset( hw, SUMIB_MGMT, 0, sizeof(mib), &mib) 				!= AM930HW_CMD_SUCCESS )		{			DBPRT( DBFWCMD, "MIB write failed!\n");			result = AM930HW_FAILURE;		}		else		{			/* set the callback */			hw->scan_callback = cb;			hw->scan_callbackarg = callback_arg;			/* send the scan command */			memset( &cmd, 0, sizeof(cmd));			cmd.duration = duration;			cmd.set_or_ch = ch;	/*				cmd.pattern = 5;			cmd.index = 1;	*/				hw->state |= AM930HW_SCANNING;			hw->scan_ch = ch;			cmd_result = am930hw_fw_cmd( hw, SUCMD_CMD_SCAN, &cmd, sizeof(cmd));						if ( cmd_result.fw_status != SUCMD_STAT_CMPLT || cmd_result.drvr_status != 0 )			{				hw->state &= ~AM930HW_SCANNING;				hw->scan_ch = 0;				printk( KERN_DEBUG "scan command failed! ch=%ld\n", ch);				result = AM930HW_FAILURE;			}		}	}	DBFEXIT;	return result;}/*----------------------------------------------------------------*	am930hw_mibget**	I/F function used by mac and mgr to retrieve elements of or an*	entire mib section. Also used by the mibgetitem function.**	returns: AM930HW_SUCCESS or*			 AM930HW_FAILURE----------------------------------------------------------------*/UINT32 am930hw_mibget( am930hw_t *hw, UINT32 mibsec, UINT32 offset,						UINT32 len, void *buf){	UINT32					result = AM930HW_SUCCESS;	sucmd_get_mib_var_t		cmd;	am930hw_cmd_result_t	cmd_result;	DBFENTER;	memset( &cmd, 0, sizeof(cmd));	cmd.type = mibsec;	cmd.size = len;	cmd.index = offset;	cmd_result = am930hw_fw_cmd( hw, SUCMD_CMD_GET_MIB_VAR, &cmd, -sizeof(cmd));		if ( cmd_result.fw_status != SUCMD_STAT_CMPLT || 		 cmd_result.drvr_status != 0 )	{		DBPRT( DBFWCMD, "GetMIB failed! mibsec=0x%02lx, offset=%lu, len=%lu\n", 				mibsec, offset, len);		result = AM930HW_FAILURE;	}	else	{		/* TODO: keep an eye on the where the f/w copies the result to */		memcpy( buf, cmd.data, len);	}	DBFEXIT;	return result;}/*----------------------------------------------------------------*	am930hw_mibgetitem**	I/F function used by mac and mgr to retrieve the values of *	particular MIB elements.**	returns: AM930HW_SUCCESS or*			 AM930HW_FAILURE----------------------------------------------------------------*/UINT32 am930hw_mibgetitem( am930hw_t *hw, UINT32 itemid, void *buf, UINT32 len){	UINT32	result = AM930HW_SUCCESS;	DBFENTER;	result = am930hw_mibget( hw, MI_SEC(itemid), MI_OFF(itemid), 								MI_SZ(itemid), buf);	DBFEXIT;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一卡2卡三卡4卡5免费| 国产婷婷色一区二区三区四区 | 欧美大片在线观看一区二区| 亚洲精品日产精品乱码不卡| 国产精品夜夜爽| 精品sm捆绑视频| 韩日精品视频一区| 精品久久久久久久久久久久久久久 | 精品免费日韩av| 色香色香欲天天天影视综合网| 亚洲欧洲精品天堂一级| 不卡av在线网| 18成人在线观看| 久久久精品tv| 日本精品视频一区二区三区| 一区二区三区日本| 欧美日韩亚洲综合一区二区三区| 丝袜亚洲另类欧美| 日韩欧美在线123| 国产91清纯白嫩初高中在线观看| 国产精品国产三级国产aⅴ入口| 91福利国产成人精品照片| 成人一区二区三区在线观看 | 青娱乐精品在线视频| 久久美女高清视频| 欧美一区二区国产| 7777精品久久久大香线蕉| 国产很黄免费观看久久| 一区二区久久久久| 亚洲少妇中出一区| 日韩美女视频一区二区在线观看| 欧美亚洲国产bt| 国产精品一二三在| 国产乱一区二区| 国产一区二区福利| 一区二区理论电影在线观看| 中文无字幕一区二区三区 | 91网站最新网址| 人人爽香蕉精品| 男女性色大片免费观看一区二区| 五月婷婷激情综合| 亚洲色图丝袜美腿| 亚洲天堂成人在线观看| 国产精品高潮呻吟| 亚洲免费av高清| 国产日韩视频一区二区三区| 在线一区二区三区四区五区| 色噜噜狠狠色综合中国| 91麻豆精品视频| 91福利国产成人精品照片| 在线免费观看成人短视频| 国产电影一区二区三区| 成人中文字幕电影| 色94色欧美sute亚洲线路二| 国产一区在线精品| 精品午夜久久福利影院| 一区二区三国产精华液| 一区二区三区免费网站| 亚洲第一综合色| 国产精品久久久99| 亚洲男人都懂的| 午夜视频在线观看一区二区三区| 男人操女人的视频在线观看欧美 | 国产成人自拍高清视频在线免费播放| 国产成人精品在线看| 99久久久免费精品国产一区二区| 激情五月播播久久久精品| 国产成人在线视频网址| 91女厕偷拍女厕偷拍高清| 欧美日韩日日摸| 精品黑人一区二区三区久久| 国产欧美日韩在线观看| 亚洲影院在线观看| 一区二区在线观看视频| 视频一区国产视频| 国产成人免费av在线| 欧美色图12p| 久久综合精品国产一区二区三区 | 日韩—二三区免费观看av| 亚洲成a人v欧美综合天堂| 麻豆久久久久久| 美女视频一区在线观看| 成人午夜短视频| 欧美男男青年gay1069videost| 欧美性猛交xxxx乱大交退制版| 欧美哺乳videos| 亚洲欧美日韩国产另类专区| 久久97超碰国产精品超碰| 91在线porny国产在线看| 日韩欧美国产一区二区三区| 亚洲人成影院在线观看| 久久国产精品72免费观看| 激情六月婷婷久久| 一本到不卡精品视频在线观看| 日韩亚洲电影在线| 亚洲综合在线免费观看| 国产精品一区免费视频| 欧美日韩国产在线播放网站| 中文av一区二区| 精品一区中文字幕| 欧美伦理电影网| 日韩欧美一区二区三区在线| 亚洲精品中文在线影院| 国产乱码一区二区三区| 欧美日本在线视频| 国产精品成人免费精品自在线观看| 麻豆成人免费电影| 欧美日韩亚洲综合在线 欧美亚洲特黄一级 | 国产婷婷色一区二区三区 | 日韩精品电影在线| 色噜噜狠狠色综合中国| 亚洲国产高清不卡| 国产精品一色哟哟哟| 欧美精品九九99久久| 亚洲精品一卡二卡| 成人精品视频一区二区三区| www日韩大片| 奇米在线7777在线精品| 欧美精品自拍偷拍| 亚洲最新视频在线观看| 91丝袜高跟美女视频| 国产欧美一区二区在线观看| 黄色日韩三级电影| 日韩一区国产二区欧美三区| 日日噜噜夜夜狠狠视频欧美人| 在线精品视频小说1| 亚洲精品视频免费看| 91麻豆免费观看| 亚洲人成小说网站色在线| 本田岬高潮一区二区三区| 欧美日韩国产小视频| 亚洲乱码日产精品bd| 色婷婷狠狠综合| 一区二区视频免费在线观看| 91丨porny丨在线| 亚洲欧洲综合另类| 欧美主播一区二区三区| 亚洲福利视频一区| 成人福利视频网站| 国产精品麻豆久久久| 99精品在线观看视频| 1区2区3区国产精品| 一本到不卡精品视频在线观看| 亚洲黄色在线视频| 欧美日韩一二三| 麻豆精品一区二区| 久久久久久久久久久久久久久99| 国产91丝袜在线观看| 亚洲欧美一区二区三区极速播放 | 久久精品国产亚洲aⅴ | 国产精品美女久久久久久久久| gogogo免费视频观看亚洲一| 亚洲天堂福利av| 欧美日韩激情一区二区三区| 免费在线观看日韩欧美| 久久久另类综合| 99久久99久久精品免费看蜜桃| 亚洲靠逼com| 欧美一区二区福利在线| 国产馆精品极品| 亚洲柠檬福利资源导航| 欧美精品第1页| 国产一区二区久久| 亚洲天堂av一区| 欧美探花视频资源| 国产在线观看免费一区| 国产精品久久久久久久久晋中| 99re成人在线| 日本91福利区| 国产精品盗摄一区二区三区| 欧美日韩亚洲国产综合| 国产精品影视在线| 亚洲综合在线视频| wwww国产精品欧美| 在线精品视频一区二区三四| 九九在线精品视频| 亚洲视频在线一区观看| 91精品黄色片免费大全| 成人污视频在线观看| 日韩精品一区第一页| 国产精品欧美经典| 欧美一卡2卡3卡4卡| 99re8在线精品视频免费播放| 日本亚洲最大的色成网站www| 亚洲国产精品ⅴa在线观看| 欧美美女视频在线观看| 国产xxx精品视频大全| 亚洲大型综合色站| 中文字幕av一区二区三区免费看| 欧美夫妻性生活| 99精品视频在线观看免费| 日韩极品在线观看| 自拍偷拍亚洲综合| 久久综合色播五月| 欧美日韩二区三区| 99久久精品99国产精品 | 成人91在线观看| 麻豆一区二区三| 亚洲午夜免费视频| 国产精品久99|