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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? e1000_ich8lan.c

?? DELL755 Intel 網卡驅動
?? C
?? 第 1 頁 / 共 5 頁
字號:
			data |= IGP01E1000_PSCFR_SMART_SPEED;			ret_val = phy->ops.write_reg(hw,			                             IGP01E1000_PHY_PORT_CONFIG,			                             data);			if (ret_val)				goto out;		} else if (phy->smart_speed == e1000_smart_speed_off) {			ret_val = phy->ops.read_reg(hw,			                            IGP01E1000_PHY_PORT_CONFIG,			                            &data);			if (ret_val)				goto out;			data &= ~IGP01E1000_PSCFR_SMART_SPEED;			ret_val = phy->ops.write_reg(hw,			                             IGP01E1000_PHY_PORT_CONFIG,			                             data);			if (ret_val)				goto out;		}	}out:	return ret_val;}/** *  e1000_set_d3_lplu_state_ich8lan - Set Low Power Linkup D3 state *  @hw: pointer to the HW structure *  @active: true to enable LPLU, false to disable * *  Sets the LPLU D3 state according to the active flag.  When *  activating LPLU this function also disables smart speed *  and vice versa.  LPLU will not be activated unless the *  device autonegotiation advertisement meets standards of *  either 10 or 10/100 or 10/100/1000 at all duplexes. *  This is a function pointer entry point only called by *  PHY setup routines. **/static s32 e1000_set_d3_lplu_state_ich8lan(struct e1000_hw *hw,                                           bool active){	struct e1000_phy_info *phy = &hw->phy;	u32 phy_ctrl;	s32 ret_val = E1000_SUCCESS;	u16 data;	DEBUGFUNC("e1000_set_d3_lplu_state_ich8lan");	phy_ctrl = E1000_READ_REG(hw, E1000_PHY_CTRL);	if (!active) {		phy_ctrl &= ~E1000_PHY_CTRL_NOND0A_LPLU;		E1000_WRITE_REG(hw, E1000_PHY_CTRL, phy_ctrl);		/*		 * LPLU and SmartSpeed are mutually exclusive.  LPLU is used		 * during Dx states where the power conservation is most		 * important.  During driver activity we should enable		 * SmartSpeed, so performance is maintained.		 */		if (phy->smart_speed == e1000_smart_speed_on) {			ret_val = phy->ops.read_reg(hw,			                            IGP01E1000_PHY_PORT_CONFIG,			                            &data);			if (ret_val)				goto out;			data |= IGP01E1000_PSCFR_SMART_SPEED;			ret_val = phy->ops.write_reg(hw,			                             IGP01E1000_PHY_PORT_CONFIG,			                             data);			if (ret_val)				goto out;		} else if (phy->smart_speed == e1000_smart_speed_off) {			ret_val = phy->ops.read_reg(hw,			                            IGP01E1000_PHY_PORT_CONFIG,			                            &data);			if (ret_val)				goto out;			data &= ~IGP01E1000_PSCFR_SMART_SPEED;			ret_val = phy->ops.write_reg(hw,			                             IGP01E1000_PHY_PORT_CONFIG,			                             data);			if (ret_val)				goto out;		}	} else if ((phy->autoneg_advertised == E1000_ALL_SPEED_DUPLEX) ||	           (phy->autoneg_advertised == E1000_ALL_NOT_GIG) ||	           (phy->autoneg_advertised == E1000_ALL_10_SPEED)) {		phy_ctrl |= E1000_PHY_CTRL_NOND0A_LPLU;		E1000_WRITE_REG(hw, E1000_PHY_CTRL, phy_ctrl);		/*		 * Call gig speed drop workaround on LPLU before accessing		 * any PHY registers		 */		if ((hw->mac.type == e1000_ich8lan) &&		    (hw->phy.type == e1000_phy_igp_3))			e1000_gig_downshift_workaround_ich8lan(hw);		/* When LPLU is enabled, we should disable SmartSpeed */		ret_val = phy->ops.read_reg(hw,		                            IGP01E1000_PHY_PORT_CONFIG,		                            &data);		if (ret_val)			goto out;		data &= ~IGP01E1000_PSCFR_SMART_SPEED;		ret_val = phy->ops.write_reg(hw,		                             IGP01E1000_PHY_PORT_CONFIG,		                             data);	}out:	return ret_val;}/** *  e1000_valid_nvm_bank_detect_ich8lan - finds out the valid bank 0 or 1 *  @hw: pointer to the HW structure *  @bank:  pointer to the variable that returns the active bank * *  Reads signature byte from the NVM using the flash access registers. **/static s32 e1000_valid_nvm_bank_detect_ich8lan(struct e1000_hw *hw, u32 *bank){	s32 ret_val = E1000_SUCCESS;	struct e1000_nvm_info *nvm = &hw->nvm;	/* flash bank size is in words */	u32 bank1_offset = nvm->flash_bank_size * sizeof(u16);	u32 act_offset = E1000_ICH_NVM_SIG_WORD * 2 + 1;	u8 bank_high_byte = 0;	if (hw->mac.type != e1000_ich10lan) {		if (E1000_READ_REG(hw, E1000_EECD) & E1000_EECD_SEC1VAL)			*bank = 1;		else			*bank = 0;	} else if (hw->dev_spec != NULL) {		/*		 * Make sure the signature for bank 0 is valid,		 * if not check for bank1		 */		e1000_read_flash_byte_ich8lan(hw, act_offset, &bank_high_byte);		if ((bank_high_byte & 0xC0) == 0x80) {			*bank = 0;		} else {			/*			 * find if segment 1 is valid by verifying			 * bit 15:14 = 10b in word 0x13			 */			e1000_read_flash_byte_ich8lan(hw,			                              act_offset + bank1_offset,			                              &bank_high_byte);						/* bank1 has a valid signature equivalent to SEC1V */			if ((bank_high_byte & 0xC0) == 0x80) {				*bank = 1;			} else {				DEBUGOUT("ERROR: EEPROM not present\n");				ret_val = -E1000_ERR_NVM;			}		}	} else {		DEBUGOUT("DEV SPEC is NULL\n");		ret_val = -E1000_ERR_NVM;	}		return ret_val;}/** *  e1000_read_nvm_ich8lan - Read word(s) from the NVM *  @hw: pointer to the HW structure *  @offset: The offset (in bytes) of the word(s) to read. *  @words: Size of data to read in words *  @data: Pointer to the word(s) to read at offset. * *  Reads a word(s) from the NVM using the flash access registers. **/static s32 e1000_read_nvm_ich8lan(struct e1000_hw *hw, u16 offset, u16 words,                                  u16 *data){	struct e1000_nvm_info *nvm = &hw->nvm;	struct e1000_dev_spec_ich8lan *dev_spec;	u32 act_offset;	s32 ret_val = E1000_SUCCESS;	u32 bank = 0;	u16 i, word;	DEBUGFUNC("e1000_read_nvm_ich8lan");	dev_spec = (struct e1000_dev_spec_ich8lan *)hw->dev_spec;	if (!dev_spec) {		DEBUGOUT("dev_spec pointer is set to NULL.\n");		ret_val = -E1000_ERR_CONFIG;		goto out;	}	if ((offset >= nvm->word_size) || (words > nvm->word_size - offset) ||	    (words == 0)) {		DEBUGOUT("nvm parameter(s) out of bounds\n");		ret_val = -E1000_ERR_NVM;		goto out;	}	ret_val = nvm->ops.acquire(hw);	if (ret_val)		goto out;	ret_val = e1000_valid_nvm_bank_detect_ich8lan(hw, &bank);	if (ret_val != E1000_SUCCESS)		goto out;	act_offset = (bank) ? nvm->flash_bank_size : 0;	act_offset += offset;	for (i = 0; i < words; i++) {		if ((dev_spec->shadow_ram) &&		    (dev_spec->shadow_ram[offset+i].modified)) {			data[i] = dev_spec->shadow_ram[offset+i].value;		} else {			ret_val = e1000_read_flash_word_ich8lan(hw,			                                        act_offset + i,			                                        &word);			if (ret_val)				break;			data[i] = word;		}	}	nvm->ops.release(hw);out:	return ret_val;}/** *  e1000_flash_cycle_init_ich8lan - Initialize flash *  @hw: pointer to the HW structure * *  This function does initial flash setup so that a new read/write/erase cycle *  can be started. **/static s32 e1000_flash_cycle_init_ich8lan(struct e1000_hw *hw){	union ich8_hws_flash_status hsfsts;	s32 ret_val = -E1000_ERR_NVM;	s32 i = 0;	DEBUGFUNC("e1000_flash_cycle_init_ich8lan");	hsfsts.regval = E1000_READ_FLASH_REG16(hw, ICH_FLASH_HSFSTS);	/* Check if the flash descriptor is valid */	if (hsfsts.hsf_status.fldesvalid == 0) {		DEBUGOUT("Flash descriptor invalid.  "		         "SW Sequencing must be used.");		goto out;	}	/* Clear FCERR and DAEL in hw status by writing 1 */	hsfsts.hsf_status.flcerr = 1;	hsfsts.hsf_status.dael = 1;	E1000_WRITE_FLASH_REG16(hw, ICH_FLASH_HSFSTS, hsfsts.regval);	/*	 * Either we should have a hardware SPI cycle in progress	 * bit to check against, in order to start a new cycle or	 * FDONE bit should be changed in the hardware so that it	 * is 1 after hardware reset, which can then be used as an	 * indication whether a cycle is in progress or has been	 * completed.	 */	if (hsfsts.hsf_status.flcinprog == 0) {		/*		 * There is no cycle running at present,		 * so we can start a cycle.		 * Begin by setting Flash Cycle Done.		 */		hsfsts.hsf_status.flcdone = 1;		E1000_WRITE_FLASH_REG16(hw, ICH_FLASH_HSFSTS, hsfsts.regval);		ret_val = E1000_SUCCESS;	} else {		/*		 * Otherwise poll for sometime so the current		 * cycle has a chance to end before giving up.		 */		for (i = 0; i < ICH_FLASH_READ_COMMAND_TIMEOUT; i++) {			hsfsts.regval = E1000_READ_FLASH_REG16(hw,			                                      ICH_FLASH_HSFSTS);			if (hsfsts.hsf_status.flcinprog == 0) {				ret_val = E1000_SUCCESS;				break;			}			usec_delay(1);		}		if (ret_val == E1000_SUCCESS) {			/*			 * Successful in waiting for previous cycle to timeout,			 * now set the Flash Cycle Done.			 */			hsfsts.hsf_status.flcdone = 1;			E1000_WRITE_FLASH_REG16(hw,			                        ICH_FLASH_HSFSTS,			                        hsfsts.regval);		} else {			DEBUGOUT("Flash controller busy, cannot get access");		}	}out:	return ret_val;}/** *  e1000_flash_cycle_ich8lan - Starts flash cycle (read/write/erase) *  @hw: pointer to the HW structure *  @timeout: maximum time to wait for completion * *  This function starts a flash cycle and waits for its completion. **/static s32 e1000_flash_cycle_ich8lan(struct e1000_hw *hw, u32 timeout){	union ich8_hws_flash_ctrl hsflctl;	union ich8_hws_flash_status hsfsts;	s32 ret_val = -E1000_ERR_NVM;	u32 i = 0;	DEBUGFUNC("e1000_flash_cycle_ich8lan");	/* Start a cycle by writing 1 in Flash Cycle Go in Hw Flash Control */	hsflctl.regval = E1000_READ_FLASH_REG16(hw, ICH_FLASH_HSFCTL);	hsflctl.hsf_ctrl.flcgo = 1;	E1000_WRITE_FLASH_REG16(hw, ICH_FLASH_HSFCTL, hsflctl.regval);	/* wait till FDONE bit is set to 1 */	do {		hsfsts.regval = E1000_READ_FLASH_REG16(hw, ICH_FLASH_HSFSTS);		if (hsfsts.hsf_status.flcdone == 1)			break;		usec_delay(1);	} while (i++ < timeout);	if (hsfsts.hsf_status.flcdone == 1 && hsfsts.hsf_status.flcerr == 0)		ret_val = E1000_SUCCESS;	return ret_val;}/** *  e1000_read_flash_word_ich8lan - Read word from flash *  @hw: pointer to the HW structure *  @offset: offset to data location *  @data: pointer to the location for storing the data * *  Reads the flash word at offset into data.  Offset is converted *  to bytes before read. **/static s32 e1000_read_flash_word_ich8lan(struct e1000_hw *hw, u32 offset,                                         u16 *data){	s32 ret_val;	DEBUGFUNC("e1000_read_flash_word_ich8lan");	if (!data) {		ret_val = -E1000_ERR_NVM;		goto out;	}	/* Must convert offset into bytes. */	offset <<= 1;	ret_val = e1000_read_flash_data_ich8lan(hw, offset, 2, data);out:	return ret_val;}/** *  e1000_read_flash_byte_ich8lan - Read byte from flash *  @hw: pointer to the HW structure *  @offset: The offset of the byte to read. *  @data: Pointer to a byte to store the value read. * *  Reads a single byte from the NVM using the flash access registers. **/static s32 e1000_read_flash_byte_ich8lan(struct e1000_hw *hw, u32 offset,                                         u8* data){	s32 ret_val = E1000_SUCCESS;	u16 word = 0;	ret_val = e1000_read_flash_data_ich8lan(hw, offset, 1, &word);	if (ret_val)		goto out;	*data = (u8)word;out:	return ret_val;}/** *  e1000_read_flash_data_ich8lan - Read byte or word from NVM *  @hw: pointer to the HW structure *  @offset: The offset (in bytes) of the byte or word to read. *  @size: Size of data to read, 1=byte 2=word *  @data: Pointer to the word to store the value read. * *  Reads a byte or word from the NVM using the flash access registers. **/static s32 e1000_read_flash_data_ich8lan(struct e1000_hw *hw, u32 offset,                                         u8 size, u16* data){	union ich8_hws_flash_status hsfsts;	union ich8_hws_flash_ctrl hsflctl;	u32 flash_linear_addr;	u32 flash_data = 0;	s32 ret_val = -E1000_ERR_NVM;	u8 count = 0;	DEBUGFUNC("e1000_read_flash_data_ich8lan");	if (size < 1  || size > 2 || offset > ICH_FLASH_LINEAR_ADDR_MASK)		goto out;	flash_linear_addr = (ICH_FLASH_LINEAR_ADDR_MASK & offset) +	                    hw->nvm.flash_base_addr;	do {		usec_delay(1);		/* Steps */		ret_val = e1000_flash_cycle_init_ich8lan(hw);		if (ret_val != E1000_SUCCESS)			break;		hsflctl.regval = E1000_READ_FLASH_REG16(hw, ICH_FLASH_HSFCTL);		/* 0b/1b corresponds to 1 or 2 byte size, respectively. */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区在线观看动漫| 亚洲日本丝袜连裤袜办公室| 久久久高清一区二区三区| 国产精品久久久久久亚洲毛片 | 在线中文字幕一区| 欧美色综合久久| 中文字幕av资源一区| 日韩二区在线观看| 色88888久久久久久影院按摩| 国产a区久久久| 日韩一级欧美一级| 亚洲精品国产一区二区精华液 | 亚洲国产乱码最新视频| 美女视频网站久久| 欧美三级三级三级| 亚洲精品一卡二卡| 成人性生交大合| 久久综合色婷婷| 麻豆久久一区二区| 制服丝袜中文字幕亚洲| 亚洲午夜一区二区三区| 一本久久a久久精品亚洲| 国产日韩欧美精品在线| 国内精品伊人久久久久影院对白| 精品一区二区三区欧美| 日韩三级.com| 久久国产精品一区二区| 欧美精品视频www在线观看| 亚洲精品国产一区二区精华液 | 91精品国产91久久久久久最新毛片| 色综合久久88色综合天天6 | 精品日本一线二线三线不卡| 亚洲人午夜精品天堂一二香蕉| 亚洲国产一区二区三区青草影视| 亚洲va欧美va人人爽| 99精品久久只有精品| 亚洲免费观看视频| 在线观看日韩电影| 亚洲bt欧美bt精品777| 欧美日精品一区视频| 亚洲成人午夜影院| 欧美一级黄色大片| 免费久久精品视频| 欧美精品一区二区在线播放| 国产麻豆一精品一av一免费| 欧美韩国日本综合| 91天堂素人约啪| 亚洲高清在线视频| 欧美成人一区二区三区片免费| 欧美激情一区二区三区全黄| 成人丝袜18视频在线观看| 国产精品国模大尺度视频| 91麻豆自制传媒国产之光| 一区二区三区成人| 欧美一区二区三区在线视频| 国产一区二区三区观看| 中文字幕一区视频| 欧美日韩免费高清一区色橹橹 | 成人精品一区二区三区中文字幕 | 亚洲成人精品在线观看| 欧美一区二区三区视频在线| 麻豆传媒一区二区三区| 国产精品色一区二区三区| 欧美在线看片a免费观看| 精品一区二区三区免费播放| 国产精品国产自产拍高清av| 欧美日韩成人在线| 国产成人午夜视频| 五月天丁香久久| 久久久久久久久一| 精品视频资源站| 国产精品白丝jk黑袜喷水| 亚洲综合一区在线| 久久女同性恋中文字幕| 欧美性受xxxx黑人xyx性爽| 国产一区二区三区精品视频| 亚洲动漫第一页| 欧美激情资源网| 欧美一级二级在线观看| 色狠狠色狠狠综合| 国产精品白丝jk白祙喷水网站| 久久亚洲精品国产精品紫薇| 91行情网站电视在线观看高清版| 日本一区二区三级电影在线观看| 琪琪久久久久日韩精品| 中文字幕一区二区三区四区不卡 | 欧美精品一区二区三区蜜臀| a美女胸又www黄视频久久| 免费不卡在线视频| 一区二区三区不卡视频| 中文字幕在线不卡一区 | 日韩欧美一区在线观看| av爱爱亚洲一区| 国产乱码字幕精品高清av| 亚洲成a人片在线观看中文| 欧美激情一区二区三区在线| 精品久久人人做人人爽| 欧美一区二区三区视频免费播放| 奇米精品一区二区三区四区| 一二三区精品视频| 中文字幕一区av| 亚洲精品在线电影| 日韩一级成人av| 日韩视频一区二区三区| 欧美顶级少妇做爰| 欧美日韩视频在线一区二区| 91国内精品野花午夜精品| 99久久伊人网影院| 成人爱爱电影网址| 成人a级免费电影| 99re视频这里只有精品| 91在线视频网址| 一本高清dvd不卡在线观看| 91蜜桃视频在线| 欧美在线观看你懂的| 欧亚一区二区三区| 777午夜精品视频在线播放| 欧美日韩美少妇| 欧美一区二区三区电影| 欧美一区二区美女| 精品动漫一区二区三区在线观看| 岛国av在线一区| k8久久久一区二区三区| 99国产精品一区| 91网址在线看| 欧美精品精品一区| 精品国产乱码久久久久久久久 | 国产精一品亚洲二区在线视频| 国产精品美女久久久久久| 国产精品久久久久久亚洲毛片| 欧美日韩一区精品| 欧美一区二区三区免费| 亚洲精品一区二区三区精华液| 91成人在线观看喷潮| 欧美一区二区三区四区五区| 精品久久久久久久久久久院品网| 色综合中文字幕| 777奇米四色成人影色区| 欧美va亚洲va在线观看蝴蝶网| 91免费国产视频网站| 欧美性色综合网| 欧美一级欧美一级在线播放| 久久久久久日产精品| 国产精品精品国产色婷婷| 亚洲gay无套男同| 精彩视频一区二区| 99国产麻豆精品| 日韩精品一区二区在线| 国产精品国产三级国产三级人妇| 欧美电影免费观看高清完整版在 | 日韩一区在线看| 日韩av在线免费观看不卡| 国产乱子伦一区二区三区国色天香| 一区二区三区四区av| 蜜臀久久久99精品久久久久久| 亚洲欧美一区二区久久 | 欧美一区二区性放荡片| 中文在线一区二区| 视频一区视频二区在线观看| 成人影视亚洲图片在线| 91精品国产综合久久久久久久| 欧美性极品少妇| 精品久久免费看| 一区二区三区色| 国产69精品久久99不卡| 3751色影院一区二区三区| 一色屋精品亚洲香蕉网站| 免费成人美女在线观看| 在线视频亚洲一区| 欧美极品aⅴ影院| 精品一区二区精品| 欧美日本在线视频| 怡红院av一区二区三区| 国产精品一区二区三区乱码| 欧美丰满少妇xxxxx高潮对白| 91精品国产综合久久精品图片| 欧美日韩精品一区二区三区四区 | 国产一区二区在线免费观看| 91免费在线视频观看| 国产视频视频一区| 免费一区二区视频| 欧美日韩三级一区二区| 日韩伦理av电影| 不卡av在线免费观看| 国产午夜精品一区二区三区视频| 国产婷婷一区二区| 看片网站欧美日韩| 日韩一区和二区| 日韩电影网1区2区| 欧美日韩国产乱码电影| 亚洲一级片在线观看| 色偷偷久久人人79超碰人人澡| 91精品91久久久中77777| 亚洲四区在线观看| 成人激情校园春色| 亚洲视频在线观看一区| 成人av资源站| 一区二区三区美女视频| 色天天综合色天天久久| 一区二区免费在线|