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

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

?? ide-ep93xx.c

?? ep9315平臺下硬盤驅(qū)動的源碼
?? C
?? 第 1 頁 / 共 4 頁
字號:
		 */		if (g_errors[i] == FAILURES_BEFORE_BACKOFF) {			/*			 * Drop down to the next lowest transfer rate, or PIO			 * if already at the bottom.			 */			switch (drive->current_speed) {			case XFER_UDMA_4:				ide_config_drive_speed(drive, XFER_UDMA_3);				break;			case XFER_UDMA_3:				ide_config_drive_speed(drive, XFER_UDMA_2);				break;			case XFER_UDMA_2:				ide_config_drive_speed(drive, XFER_UDMA_1);				break;			case XFER_UDMA_1:				ide_config_drive_speed(drive, XFER_UDMA_0);				break;			case XFER_UDMA_0:				HWIF(drive)->ide_dma_off(drive);				break;			case XFER_MW_DMA_2:				ide_config_drive_speed(drive, XFER_MW_DMA_1);				break;			case XFER_MW_DMA_1:				ide_config_drive_speed(drive, XFER_MW_DMA_0);				break;			case XFER_MW_DMA_0:				HWIF(drive)->ide_dma_off(drive);				break;			}			/*			 * Reset the consecutive error counters for this drive.			 */			g_errors[i] = 0;			g_errors[i ^ 1] = 0;		}		/*		 * Fail the transfer.		 */		return 1;	} else		/*		 * Success, so reset the consecutive error counter.		 */		g_errors[i] = 0;	/*	 * Success.	 */	return 0;}/***************************************************************************** * * ep93xx_ide_dma_test_irq() * * This function checks if the IDE interrupt is asserted and returns a * 1 if it is, and 0 otherwise.. * ****************************************************************************/static intep93xx_ide_dma_test_irq(ide_drive_t *drive){	DPRINTK("%s: ep93xx_ide_dma_test_irq\n", drive->name);	if (!drive->waiting_for_dma)		printk(KERN_WARNING "%s: %s called while not waiting\n",		       drive->name, __FUNCTION__);	/*	 * Return the value of the IDE interrupt bit.	 */	return inl(IDECR) & IDECtrl_INTRQ;}/***************************************************************************** * * ep93xx_ide_dma_count() * ****************************************************************************/static intep93xx_ide_dma_count(ide_drive_t *drive){	DPRINTK("%s: ep93xx_ide_dma_count\n", drive->name);	return 0;}/***************************************************************************** * * ep93xx_ide_dma_verbose() * ****************************************************************************/static intep93xx_ide_dma_verbose(ide_drive_t *drive){	DPRINTK("%s: ep93xx_ide_dma_verbose\n", drive->name);	printk(", %s ", ide_xfer_verbose(drive->current_speed));	return 1;}/***************************************************************************** * * ep93xx_ide_dma_bad_timeout() * ****************************************************************************/static intep93xx_ide_dma_timeout(ide_drive_t *drive){	DPRINTK("%s: ep93xx_ide_dma_timeout\n", drive->name);	if (HWIF(drive)->ide_dma_test_irq(drive))		return 0;	return HWIF(drive)->ide_dma_end(drive);}/***************************************************************************** * * ep93xx_ide_dma_lostirq() * ****************************************************************************/static intep93xx_ide_dma_lostirq(ide_drive_t *drive){	DPRINTK("%s: ep93xx_ide_dma_lostirq\n", drive->name);	printk("%s: DMA interrupt recovery\n", drive->name);	return 1;}/***************************************************************************** * *  functions to set up the IDE control register and data register to read *  or write a byte of data to/from the specified IDE device register. * ****************************************************************************/static voidep93xx_ide_outb(u8 b, unsigned long addr){	unsigned int uiIDECR;	/*	 * Write the address out.	 */	uiIDECR = IDECtrl_DIORn | IDECtrl_DIOWn | ((addr & 7) << 2) |		  (addr >> 10);	outl(uiIDECR, IDECR);	/*	 * Write the data out.	 */	outl(b, IDEDATAOUT);	/*	 * Toggle the write signal.	 */	outl(uiIDECR & ~IDECtrl_DIOWn, IDECR);	outl(uiIDECR, IDECR);}static voidep93xx_ide_outbsync(ide_drive_t *drive, u8 b, unsigned long addr){	unsigned int uiIDECR;	/*	 * Write the address out.	 */	uiIDECR = IDECtrl_DIORn | IDECtrl_DIOWn | ((addr & 7) << 2) |		  (addr >> 10);	outl(uiIDECR, IDECR);	/*	 * Write the data out.	 */	outl(b, IDEDATAOUT);	/*	 * Toggle the write signal.	 */	outl(uiIDECR & ~IDECtrl_DIOWn, IDECR);	outl(uiIDECR, IDECR);}static unsigned charep93xx_ide_inb(unsigned long addr){	unsigned int uiIDECR;	/*	 * Write the address out.	 */	uiIDECR = IDECtrl_DIORn | IDECtrl_DIOWn | ((addr & 7) << 2) |		  (addr >> 10);	outl(uiIDECR, IDECR);	/*	 * Toggle the read signal.	 */	outl(uiIDECR & ~IDECtrl_DIORn, IDECR);	outl(uiIDECR, IDECR);	/*	 * Read the data in.	 */	return(inl(IDEDATAIN) & 0xff);}/***************************************************************************** * *  functions to set up the IDE control register and data restister to read *  or write 16 bits of data to/from the specified IDE device register. *  These functions should only be used when reading/writing data to/from *  the data register. * ****************************************************************************/static voidep93xx_ide_outw(u16 w, unsigned long addr){	unsigned int uiIDECR;	/*	 * Write the address out.	 */	uiIDECR = IDECtrl_DIORn | IDECtrl_DIOWn | ((addr & 7) << 2) |		  (addr >> 10);	outl(uiIDECR, IDECR);	/*	 * Write the data out.	 */	outl(w, IDEDATAOUT);	/*	 * Toggle the write signal.	 */	outl(uiIDECR & ~IDECtrl_DIOWn, IDECR);	outl(uiIDECR, IDECR);}static u16ep93xx_ide_inw(unsigned long addr){	unsigned int uiIDECR;	/*	 * Write the address out.	 */	uiIDECR = IDECtrl_DIORn | IDECtrl_DIOWn | ((addr & 7) << 2) |		  (addr >> 10);	outl(uiIDECR, IDECR);	/*	 * Toggle the read signal.	 */	outl(uiIDECR & ~IDECtrl_DIORn, IDECR);	outl(uiIDECR, IDECR);	/*	 * Read the data in.	 */	return(inl(IDEDATAIN) & 0xffff);}/***************************************************************************** * *  functions to read/write a block of data to/from the ide device using *  PIO mode. * ****************************************************************************/static voidep93xx_ide_insw(unsigned long addr, void *buf, u32 count){	unsigned short *data = (unsigned short *)buf;	/*	 * Read in data from the data register 16 bits at a time.	 */	for (; count; count--)		*data++ = ep93xx_ide_inw(addr);}static voidep93xx_ide_outsw(unsigned long addr, void *buf, u32 count){	unsigned short *data = (unsigned short *)buf;	/*	 * Write out data to the data register 16 bits at a time.	 */	for (; count; count--)		ep93xx_ide_outw(*data++, addr);}static voidep93xx_ata_input_data(ide_drive_t *drive, void *buffer, u32 count){	/*	 * Read in the specified number of half words from the ide interface.	 */	ep93xx_ide_insw(IDE_DATA_REG, buffer, count << 1);}static voidep93xx_ata_output_data(ide_drive_t *drive, void *buffer, u32 count){	/*	 * write the specified number of half words from the ide interface	 * to the ide device.	 */	ep93xx_ide_outsw(IDE_DATA_REG, buffer, count << 1);}static voidep93xx_atapi_input_bytes(ide_drive_t *drive, void *buffer, u32 count){	/*	 * read in the specified number of bytes from the ide interface.	 */	ep93xx_ide_insw(IDE_DATA_REG, buffer, (count >> 1) + (count & 1));}static voidep93xx_atapi_output_bytes(ide_drive_t *drive, void *buffer, u32 count){	/*	 * Write the specified number of bytes from the ide interface	 * to the ide device.	 */	ep93xx_ide_outsw(IDE_DATA_REG, buffer, (count >> 1) + (count & 1));}/***************************************************************************** * * ep93xx_ide_init() * * This function sets up a pointer to the ep93xx specific ideproc funciton. * ****************************************************************************/voidep93xx_ide_init(void){	hw_regs_t hw;	struct hwif_s *hwif;	unsigned int uiTemp;	DPRINTK("ep93xx_ide_init\n");	//hzh	/*	 * Make sure the GPIO on IDE bits in the DEVCFG register are not set.	 */	uiTemp = inl(SYSCON_DEVCFG) & ~(SYSCON_DEVCFG_EonIDE |					SYSCON_DEVCFG_GonIDE |					SYSCON_DEVCFG_HonIDE);	SysconSetLocked( SYSCON_DEVCFG, uiTemp );	/*	 * Make sure that MWDMA and UDMA are disabled.	 */	outl(0, IDEMDMAOP);	outl(0, IDEUDMAOP);	/*	 * Set up the IDE interface for PIO transfers, using the default PIO	 * mode.	 */	outl(IDECfg_IDEEN | IDECfg_PIO | (4 << IDECfg_MODE_SHIFT) |	     (1 << IDECfg_WST_SHIFT), IDECFG);	/*	 * Setup the ports.	 */	ide_init_hwif_ports(&hw, 0x800, 0x406, NULL);	/*	 * Get the interrupt.	 */	hw.irq = IRQ_EIDE;	/*	 * This is the dma channel number assigned to this IDE interface. Until	 * dma is enabled for this interface, we set it to NO_DMA.	 */	hw.dma = NO_DMA;	/*	 * Register the IDE interface, an ide_hwif_t pointer is passed in,	 * which will get filled in with the hwif pointer for this interface.	 */	ide_register_hw(&hw, &hwif);	/*	 *  Set up the HW interface function pointers with the ep93xx specific	 *  function.	 */	hwif->ata_input_data = ep93xx_ata_input_data;	hwif->ata_output_data = ep93xx_ata_output_data;	hwif->atapi_input_bytes = ep93xx_atapi_input_bytes;	hwif->atapi_output_bytes = ep93xx_atapi_output_bytes;	hwif->OUTB = ep93xx_ide_outb;	hwif->OUTBSYNC = ep93xx_ide_outbsync;	hwif->OUTW = ep93xx_ide_outw;	hwif->OUTSW = ep93xx_ide_outsw;	hwif->INB = ep93xx_ide_inb;	hwif->INW = ep93xx_ide_inw;	hwif->INSW = ep93xx_ide_insw;	/*	 * Only enable IDE DMA on rev D1 and later chips.	 */	if ((inl(SYSCON_CHIPID) >> 28) > 3) {		DPRINTK("ep93xx_ide_init- dma enabled \n");		/*		 * Allocate memory for the DMA table.		 */		g_dma_table_base = kmalloc(PRD_ENTRIES * PRD_BYTES,					   GFP_KERNEL);		/*		 * Check if we allocated memory for dma		 */		if (g_dma_table_base == NULL) {			printk("%s: SG-DMA disabled, UNABLE TO ALLOCATE DMA TABLES\n",			       hwif->name);			return;		}		/*		 * Allocate memory for the scatterlist structures.		 */		hwif->sg_table = kmalloc(sizeof(struct scatterlist) *					 PRD_ENTRIES, GFP_KERNEL);		/*		 * Check if we allocated the memory we expected to.		 */		if (hwif->sg_table == NULL) {			/*			 *  Fail, so clean up.			 */			kfree(g_dma_table_base);			printk("%s: SG-DMA disabled, UNABLE TO ALLOCATE DMA TABLES\n",			       hwif->name);			return;		}		/*		 * Init the dma handle to 0.  This field is used to hold a		 * handle to the dma instance.		 */		hwif->hw.dma = 0;		/*		 * Open an instance of the ep93xx dma interface.		 */		if (ep93xx_dma_request(&hwif->hw.dma, hwif->name, DMA_IDE) !=		    0) {			/*			 * Fail, so clean up.			 */			kfree(g_dma_table_base);			kfree(hwif->sg_table);			printk("%s: SG-DMA disabled, unable to allocate DMA channel.\n",			       hwif->name);			return;		}		/*		 * Now that we've got a dma channel allocated, set up the rest		 * of the dma specific stuff.		 */		DPRINTK("\n ide init- dma channel allocated: %d \n", hwif->hw.dma);		/*		 * Enable dma support for atapi devices.		 */		hwif->atapi_dma			= 1;		hwif->ultra_mask		= 0x07;		hwif->mwdma_mask		= 0x00;		hwif->swdma_mask		= 0x00;		hwif->speedproc			= NULL;		hwif->autodma			= 1;		hwif->ide_dma_check		= ep93xx_ide_dma_check;		hwif->ide_dma_host_off		= ep93xx_ide_dma_host_off;		hwif->ide_dma_off_quietly	= ep93xx_ide_dma_off_quietly;		hwif->ide_dma_off		= ep93xx_ide_dma_off;		hwif->ide_dma_host_on		= ep93xx_ide_dma_host_on;		hwif->ide_dma_on		= ep93xx_ide_dma_on;		hwif->ide_dma_read		= ep93xx_ide_dma_first_read;		hwif->ide_dma_write		= ep93xx_ide_dma_write;		hwif->ide_dma_count		= ep93xx_ide_dma_count;		hwif->ide_dma_begin		= ep93xx_ide_dma_begin;		hwif->ide_dma_end		= ep93xx_ide_dma_end;		hwif->ide_dma_test_irq		= ep93xx_ide_dma_test_irq;		hwif->ide_dma_verbose		= ep93xx_ide_dma_verbose;		hwif->ide_dma_timeout		= ep93xx_ide_dma_timeout;		hwif->ide_dma_lostirq		= ep93xx_ide_dma_lostirq;	}}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产日韩精品| 成人免费视频免费观看| 91麻豆蜜桃一区二区三区| www.性欧美| 欧美一二区视频| 亚洲综合色成人| 欧美色图一区二区三区| 亚洲欧洲美洲综合色网| 国产一区福利在线| 精品国产乱码久久久久久久| 激情成人综合网| 中文字幕的久久| 一卡二卡三卡日韩欧美| 国产福利不卡视频| 欧美国产丝袜视频| 91蜜桃在线免费视频| 亚洲日本电影在线| 在线观看亚洲精品| 亚洲18女电影在线观看| 精品久久久久久久一区二区蜜臀| 国产美女主播视频一区| 国产91清纯白嫩初高中在线观看 | 国产精品国产馆在线真实露脸| 国产成a人亚洲精品| 伊人性伊人情综合网| 一区二区三区影院| 欧美一区二区在线看| 成人精品免费看| 亚洲国产精品久久艾草纯爱| 精品国产一区二区三区久久影院| 国产成人免费视频网站高清观看视频 | 亚洲国产综合91精品麻豆| 26uuu国产在线精品一区二区| 波多野结衣中文字幕一区二区三区| 中文字幕中文字幕在线一区 | 东方aⅴ免费观看久久av| 亚洲123区在线观看| 国产精品久久久久久久浪潮网站| 制服丝袜激情欧洲亚洲| 97久久精品人人做人人爽50路| 中文av字幕一区| 欧美三级中文字| 成人在线综合网站| 免费在线观看一区| 国产精品久久久久永久免费观看| 精品国产乱码久久久久久老虎 | 美女久久久精品| 日本一区二区三级电影在线观看 | 日韩极品在线观看| 欧美激情一区二区| 欧美猛男gaygay网站| 国精产品一区一区三区mba视频| 亚洲一区二区三区爽爽爽爽爽| 2021国产精品久久精品| 欧美久久久久久久久久| 在线免费亚洲电影| www.久久久久久久久| 国产一区二区成人久久免费影院| 午夜影院在线观看欧美| 亚洲一区二区三区不卡国产欧美| 国产欧美在线观看一区| 日本一区二区动态图| 久久精品一区二区三区四区| 99久久免费国产| 成人精品小蝌蚪| 一本色道a无线码一区v| 欧美视频第二页| 精品福利一二区| 一本一道久久a久久精品| 欧美一级一区二区| 日韩欧美专区在线| 精品欧美乱码久久久久久1区2区| 欧美成人精品福利| 久久品道一品道久久精品| 久久青草国产手机看片福利盒子| 国产偷国产偷亚洲高清人白洁| 久久久久久综合| 专区另类欧美日韩| 亚洲国产va精品久久久不卡综合 | 972aa.com艺术欧美| 欧美色国产精品| 日韩午夜在线影院| 日韩精品欧美成人高清一区二区| 91精品国产色综合久久| 国产精品麻豆一区二区| 国产福利视频一区二区三区| 欧美日韩国产高清一区二区三区| 日韩美女精品在线| 国产成人午夜精品影院观看视频| 欧美亚洲自拍偷拍| 亚洲视频你懂的| 成人av在线电影| 国产精品系列在线| 成人app软件下载大全免费| 久久久午夜电影| 精品亚洲免费视频| 日韩亚洲欧美综合| 性做久久久久久久免费看| 色综合久久久久综合99| 中文无字幕一区二区三区| 国产乱人伦偷精品视频不卡| 色网站国产精品| 国产日韩欧美一区二区三区乱码 | 亚洲尤物视频在线| 九九热在线视频观看这里只有精品| eeuss鲁片一区二区三区| 日韩欧美中文字幕公布| 午夜伦理一区二区| 在线观看91视频| 亚洲欧美日韩电影| youjizz国产精品| 国产成人av资源| 久久久精品国产99久久精品芒果| 韩国一区二区在线观看| 久久综合久色欧美综合狠狠| 韩国v欧美v亚洲v日本v| 日韩欧美在线1卡| 成人免费一区二区三区在线观看| 日本一区中文字幕| 在线视频综合导航| 综合激情成人伊人| 成人av电影观看| 国产精品大尺度| zzijzzij亚洲日本少妇熟睡| 国产亚洲欧美日韩日本| 狠狠v欧美v日韩v亚洲ⅴ| 精品国产91九色蝌蚪| 六月丁香婷婷色狠狠久久| 欧美一区二区视频网站| 免费高清不卡av| 精品欧美一区二区在线观看| 精东粉嫩av免费一区二区三区| 91精品欧美久久久久久动漫| 日韩高清在线一区| 日韩欧美的一区二区| 狠狠色丁香九九婷婷综合五月| 日韩一区二区精品葵司在线 | 欧美在线free| 午夜日韩在线电影| 精品日韩成人av| 成人激情免费网站| 亚洲欧美日韩国产手机在线| 91福利资源站| 久久99蜜桃精品| 国产精品欧美精品| 欧美性一二三区| 精品写真视频在线观看| 国产精品嫩草影院av蜜臀| 在线看不卡av| 国产呦精品一区二区三区网站| 欧美激情一区在线观看| 一本色道久久综合亚洲精品按摩| 亚洲成人资源在线| 欧美激情资源网| 欧美日本国产视频| 国产成人综合亚洲网站| 日韩高清不卡一区二区三区| 久久日韩精品一区二区五区| 91小视频在线免费看| 捆绑调教一区二区三区| 国产精品久久久一本精品| 欧美一三区三区四区免费在线看| 成人av在线网| 麻豆精品国产传媒mv男同| 国产精品人人做人人爽人人添 | 一区二区三区四区激情| 欧美精品一区二区三| 日韩欧美激情在线| 韩日av一区二区| 日韩精品成人一区二区三区| 中文字幕中文在线不卡住| 精品国产91洋老外米糕| 5858s免费视频成人| 色综合天天综合网天天狠天天| 欧美影院一区二区三区| 亚洲免费av观看| 国产精品视频看| 亚洲国产高清在线观看视频| 日韩三级视频在线观看| 欧美日韩国产系列| 欧美视频一区二| 欧美又粗又大又爽| 久久亚洲一区二区三区四区| 91精品国产高清一区二区三区蜜臀 | 欧美变态tickle挠乳网站| 91麻豆精品国产综合久久久久久| 欧美三级视频在线| 在线观看视频一区二区| 色综合天天综合网天天看片| 色婷婷av一区二区三区大白胸| 成人黄色电影在线 | 亚洲三级电影全部在线观看高清| 国产欧美一区二区三区在线看蜜臀| 精品三级在线观看| 国产亚洲综合性久久久影院| 国产亚洲一区二区在线观看| 国产视频一区二区在线观看| 91尤物视频在线观看| 欧美做爰猛烈大尺度电影无法无天| 91官网在线观看|