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

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

?? fc-10.c

?? linux和2410結(jié)合開發(fā) 用他可以生成2410所需的zImage文件
?? C
字號(hào):
/* *   Copyright (C) 1993,1994 Jon Tombs.   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.   The entire guts of this program was written by dosemu, modified to   record reads and writes to the ports in the 0x180-0x188 address space,   while running the CMS program TAPE.EXE V2.0.5 supplied with the drive.   Modified to use an array of addresses and generally cleaned up (made   much shorter) 4 June 94, dosemu isn't that good at writing short code it   would seem :-). Made independent of 0x180, but I doubt it will work   at any other address.   Modified for distribution with ftape source. 21 June 94, SJL.   Modifications on 20 October 95, by Daniel Cohen (catman@wpi.edu):   Modified to support different DMA, IRQ, and IO Ports.  Borland's   Turbo Debugger in virtual 8086 mode (TD386.EXE with hardware breakpoints   provided by the TDH386.SYS Device Driver) was used on the CMS program   TAPE V4.0.5.  I set breakpoints on I/O to ports 0x180-0x187.  Note that   CMS's program will not successfully configure the tape drive if you set   breakpoints on IO Reads, but you can set them on IO Writes without problems.   Known problems:   - You can not use DMA Channels 5 or 7.   Modification on 29 January 96, by Daniel Cohen (catman@wpi.edu):   Modified to only accept IRQs 3 - 7, or 9.  Since we can only send a 3 bit   number representing the IRQ to the card, special handling is required when   IRQ 9 is selected.  IRQ 2 and 9 are the same, and we should request IRQ 9   from the kernel while telling the card to use IRQ 2.  Thanks to Greg   Crider (gcrider@iclnet.org) for finding and locating this bug, as well as   testing the patch.   Modification on 11 December 96, by Claus Heine (claus@momo.math.rwth-aachen.de):   Modified a little to use variahle ft_fdc_base, ft_fdc_irq, ft_fdc_dma    instead of preprocessor symbols. Thus we can compile this into the module   or kernel and let the user specify the options as command line arguments. * * $Source: /homes/cvs/ftape-stacked/ftape/lowlevel/fc-10.c,v $ * $Revision: 1.2 $ * $Date: 1997/10/05 19:18:04 $ * *      This file contains code for the CMS FC-10/FC-20 card. */#include <asm/io.h>#include <linux/ftape.h>#include "../lowlevel/ftape-tracing.h"#include "../lowlevel/fdc-io.h"#include "../lowlevel/fc-10.h"__u16 inbs_magic[] = {	0x3, 0x3, 0x0, 0x4, 0x7, 0x2, 0x5, 0x3, 0x1, 0x4,	0x3, 0x5, 0x2, 0x0, 0x3, 0x7, 0x4, 0x2,	0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7};__u16 fc10_ports[] = {	0x180, 0x210, 0x2A0, 0x300, 0x330, 0x340, 0x370};int fc10_enable(void){	int i;	__u8 cardConfig = 0x00;	__u8 x;	TRACE_FUN(ft_t_flow);/*  This code will only work if the FC-10 (or FC-20) is set to *  use DMA channels 1, 2, or 3.  DMA channels 5 and 7 seem to be  *  initialized by the same command as channels 1 and 3, respectively. */	if (ft_fdc_dma > 3) {		TRACE_ABORT(0, ft_t_err,"Error: The FC-10/20 must be set to use DMA channels 1, 2, or 3!");	}/*  Only allow the FC-10/20 to use IRQ 3-7, or 9.  Note that CMS's program *  only accepts IRQ's 2-7, but in linux, IRQ 2 is the same as IRQ 9. */	if (ft_fdc_irq < 3 || ft_fdc_irq == 8 || ft_fdc_irq > 9) {		TRACE_ABORT(0, ft_t_err, "Error: The FC-10/20 must be set to use IRQ levels 3 - 7, or 9!\n"KERN_INFO "Note: IRQ 9 is the same as IRQ 2");	}	/*  Clear state machine ???	 */	for (i = 0; i < NR_ITEMS(inbs_magic); i++) {		inb(ft_fdc_base + inbs_magic[i]);	}	outb(0x0, ft_fdc_base);	x = inb(ft_fdc_base);	if (x == 0x13 || x == 0x93) {		for (i = 1; i < 8; i++) {			if (inb(ft_fdc_base + i) != x) {				TRACE_EXIT 0;			}		}	} else {		TRACE_EXIT 0;	}	outb(0x8, ft_fdc_base);	for (i = 0; i < 8; i++) {		if (inb(ft_fdc_base + i) != 0x0) {			TRACE_EXIT 0;		}	}	outb(0x10, ft_fdc_base);	for (i = 0; i < 8; i++) {		if (inb(ft_fdc_base + i) != 0xff) {			TRACE_EXIT 0;		}	}	/*  Okay, we found a FC-10 card ! ???	 */	outb(0x0, fdc.ccr);	/*  Clear state machine again ???	 */	for (i = 0; i < NR_ITEMS(inbs_magic); i++) {		inb(ft_fdc_base + inbs_magic[i]);	}	/* Send io port */	for (i = 0; i < NR_ITEMS(fc10_ports); i++)		if (ft_fdc_base == fc10_ports[i])			cardConfig = i + 1;	if (cardConfig == 0) {		TRACE_EXIT 0;	/* Invalid I/O Port */	}	/* and IRQ - If using IRQ 9, tell the FC card it is actually IRQ 2 */	if (ft_fdc_irq != 9)		cardConfig |= ft_fdc_irq << 3;	else		cardConfig |= 2 << 3;	/* and finally DMA Channel */	cardConfig |= ft_fdc_dma << 6;	outb(cardConfig, ft_fdc_base);	/* DMA [2 bits]/IRQ [3 bits]/BASE [3 bits] */	/*  Enable FC-10 ???	 */	outb(0, fdc.ccr);	outb(0, fdc.dor2);	outb(FDC_DMA_MODE /* 8 */, fdc.dor);	outb(FDC_DMA_MODE /* 8 */, fdc.dor);	outb(1, fdc.dor2);	/*************************************	 *	 * cH: why the hell should this be necessary? This is done 	 *     by fdc_reset()!!!	 *	 *************************************/	/*  Initialize fdc, select drive B:	 */	outb(FDC_DMA_MODE, fdc.dor);	/* assert reset, dma & irq enabled */	/*       0x08    */	outb(FDC_DMA_MODE|FDC_RESET_NOT, fdc.dor);	/* release reset */	/*       0x08    |   0x04   = 0x0c */	outb(FDC_DMA_MODE|FDC_RESET_NOT|FDC_MOTOR_1|FTAPE_SEL_B, fdc.dor);	/*       0x08    |   0x04      |  0x20     |  0x01  = 0x2d */    	/* select drive 1 */ /* why not drive 0 ???? */	TRACE_EXIT (x == 0x93) ? 2 : 1;}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本美女视频一区二区| 欧美视频精品在线| 国产一区二区三区国产| 日本不卡一区二区三区| 丝袜亚洲另类欧美| 一区二区三区日本| 亚洲黄色小视频| 亚洲一区二区三区四区的| 一区二区三区日韩精品视频| 亚洲图片欧美一区| 无吗不卡中文字幕| 日本亚洲天堂网| 久久综合综合久久综合| 精品一区二区免费| 国产黄色成人av| 成人h精品动漫一区二区三区| 国产伦精品一区二区三区视频青涩| 国内精品久久久久影院一蜜桃| 国产精品1区2区3区在线观看| 国产成人精品影视| 成人黄色在线看| 91精品福利视频| 91电影在线观看| 91精选在线观看| 精品福利视频一区二区三区| 国产亚洲一区字幕| 亚洲欧洲精品成人久久奇米网| 亚洲欧美欧美一区二区三区| 亚洲一区免费视频| 奇米在线7777在线精品| 国产一区三区三区| 99re成人精品视频| 欧美日韩精品久久久| 欧美成人精品1314www| 中文字幕免费观看一区| 亚洲欧美另类久久久精品| 亚洲成人黄色小说| 精品亚洲成a人| 99re在线精品| 日韩情涩欧美日韩视频| 国产精品萝li| 日韩精品成人一区二区在线| 国产黄色精品视频| 欧美日韩一本到| 久久久.com| 亚洲国产视频直播| 国产一区91精品张津瑜| 欧美在线看片a免费观看| 精品免费99久久| 亚洲免费高清视频在线| 麻豆久久久久久久| 91麻豆国产香蕉久久精品| 欧美一卡二卡三卡四卡| 国产精品入口麻豆九色| 日韩精品1区2区3区| 91在线观看一区二区| 欧美大片一区二区三区| 亚洲婷婷在线视频| 韩国欧美一区二区| 欧美日韩另类一区| 中文字幕制服丝袜一区二区三区 | 粉嫩aⅴ一区二区三区四区| 91一区二区在线| 精品国产乱子伦一区| 亚洲与欧洲av电影| 国产99久久久国产精品潘金| 欧美日韩国产综合视频在线观看| 国产欧美一区视频| 蜜桃av一区二区| 欧美亚洲一区二区在线观看| 国产欧美日韩卡一| 免费成人在线观看视频| 色悠久久久久综合欧美99| 国产亚洲精品超碰| 日韩和的一区二区| 日本高清不卡aⅴ免费网站| 国产日韩av一区| 精品在线播放午夜| 欧美一区二区性放荡片| 一级精品视频在线观看宜春院| 国产成人午夜99999| 欧美成人激情免费网| 五月激情综合婷婷| 精品污污网站免费看| 亚洲男人的天堂在线观看| 国产福利不卡视频| 日韩精品综合一本久道在线视频| 亚洲va欧美va人人爽午夜 | 国产亚洲美州欧州综合国| 七七婷婷婷婷精品国产| 欧美色视频在线观看| 亚洲日本va午夜在线影院| 盗摄精品av一区二区三区| 精品处破学生在线二十三| 免费观看一级欧美片| 337p亚洲精品色噜噜| 性做久久久久久免费观看欧美| 99国产欧美久久久精品| 国产精品成人午夜| 99精品国产热久久91蜜凸| 亚洲少妇屁股交4| 91在线精品秘密一区二区| 亚洲丝袜自拍清纯另类| 99国产精品久久久久久久久久久| 国产精品国产精品国产专区不蜜| 成人激情免费电影网址| 1024国产精品| 色综合色综合色综合| 亚洲青青青在线视频| 99国产精品视频免费观看| 亚洲精品久久嫩草网站秘色| 91免费版pro下载短视频| 亚洲欧美韩国综合色| 色欧美88888久久久久久影院| 亚洲免费成人av| 欧美疯狂性受xxxxx喷水图片| 五月婷婷久久综合| 日韩午夜在线观看视频| 国产一区二区调教| 欧美激情一区不卡| 色老头久久综合| 亚洲va天堂va国产va久| 日韩欧美第一区| 国产盗摄女厕一区二区三区| 国产精品久久久久影院| 日本韩国欧美国产| 奇米888四色在线精品| 国产清纯白嫩初高生在线观看91 | 日韩一区二区电影网| 黄色成人免费在线| 中文字幕精品三区| 欧洲国内综合视频| 日本成人在线网站| 中文字幕精品在线不卡| 欧美三日本三级三级在线播放| 免费成人av在线| 国产精品天天看| 精品视频在线免费看| 精品一区二区三区不卡| 亚洲色欲色欲www| 日韩欧美久久一区| 99精品视频在线观看| 日韩在线播放一区二区| 久久久久国产一区二区三区四区| 91污在线观看| 久久国产人妖系列| 亚洲欧美精品午睡沙发| 精品成人免费观看| 在线精品视频小说1| 精品一区二区国语对白| 一级做a爱片久久| 久久综合99re88久久爱| 色欧美片视频在线观看 | 在线观看国产日韩| 精品综合久久久久久8888| 国产精品对白交换视频| 欧美一区二区精美| www.视频一区| 奇米影视在线99精品| 亚洲人成亚洲人成在线观看图片 | 国产精品成人在线观看| 欧美一卡二卡三卡四卡| 色老综合老女人久久久| 国产成人在线网站| 日韩综合在线视频| 亚洲欧美怡红院| 精品国产91久久久久久久妲己| 在线精品观看国产| 成人午夜电影久久影院| 喷白浆一区二区| 亚洲电影一级片| 中文字幕日韩精品一区| 久久伊人蜜桃av一区二区| 欧美三级日韩三级| www.亚洲激情.com| 国产成人在线观看免费网站| 日韩福利视频网| 亚洲色图视频网站| 日本欧美一区二区| 亚洲欧美日韩在线| 中文字幕久久午夜不卡| 欧美精品一区二区三| 欧美精品1区2区| 欧美在线观看一区| 色激情天天射综合网| www.日本不卡| 床上的激情91.| 国产一本一道久久香蕉| 久久aⅴ国产欧美74aaa| 日本网站在线观看一区二区三区| 亚洲一区欧美一区| 一区二区欧美国产| 一区二区三区资源| 亚洲日本在线天堂| 亚洲欧美另类小说视频| 亚洲免费在线视频| 亚洲精品亚洲人成人网| 亚洲三级在线看| 亚洲精选在线视频| 亚洲蜜臀av乱码久久精品|