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

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

?? t128.c

?? linux和2410結合開發 用他可以生成2410所需的zImage文件
?? C
字號:
#define AUTOSENSE#define PSEUDO_DMA/* * Trantor T128/T128F/T228 driver *	Note : architecturally, the T100 and T130 are different and won't  * 	work * * Copyright 1993, Drew Eckhardt *	Visionary Computing *	(Unix and Linux consulting and custom programming) *	drew@colorado.edu *      +1 (303) 440-4894 * * DISTRIBUTION RELEASE 3. * * For more information, please consult  * * Trantor Systems, Ltd. * T128/T128F/T228 SCSI Host Adapter * Hardware Specifications *  * Trantor Systems, Ltd.  * 5415 Randall Place * Fremont, CA 94538 * 1+ (415) 770-1400, FAX 1+ (415) 770-9910 *  * and  * * NCR 5380 Family * SCSI Protocol Controller * Databook * * NCR Microelectronics * 1635 Aeroplaza Drive * Colorado Springs, CO 80916 * 1+ (719) 578-3400 * 1+ (800) 334-5454 *//* * Options :  * AUTOSENSE - if defined, REQUEST SENSE will be performed automatically *      for commands that return with a CHECK CONDITION status.  * * PSEUDO_DMA - enables PSEUDO-DMA hardware, should give a 3-4X performance * increase compared to polled I/O. * * PARITY - enable parity checking.  Not supported. * * UNSAFE - leave interrupts enabled during pseudo-DMA transfers.  You *          only really want to use this if you're having a problem with *          dropped characters during high speed communications, and even *          then, you're going to be better off twiddling with transfersize. * * The card is detected and initialized in one of several ways :  * 1.  Autoprobe (default) - since the board is memory mapped,  *     a BIOS signature is scanned for to locate the registers. *     An interrupt is triggered to autoprobe for the interrupt *     line. * * 2.  With command line overrides - t128=address,irq may be  *     used on the LILO command line to override the defaults. * * 3.  With the T128_OVERRIDE compile time define.  This is  *     specified as an array of address, irq tuples.  Ie, for *     one board at the default 0xcc000 address, IRQ5, I could say  *     -DT128_OVERRIDE={{0xcc000, 5}} *	 *     Note that if the override methods are used, place holders must *     be specified for other boards in the system. *  * T128/T128F jumper/dipswitch settings (note : on my sample, the switches  * were epoxy'd shut, meaning I couldn't change the 0xcc000 base address) : * * T128    Sw7 Sw8 Sw6 = 0ws Sw5 = boot  * T128F   Sw6 Sw7 Sw5 = 0ws Sw4 = boot Sw8 = floppy disable * cc000   off off       * c8000   off on * dc000   on  off * d8000   on  on * *  * Interrupts  * There is a 12 pin jumper block, jp1, numbered as follows :  *   T128 (JP1)  	 T128F (J5) * 2 4 6 8 10 12	11 9  7 5 3 1 * 1 3 5 7 9  11	12 10 8 6 4 2 * * 3   2-4 * 5   1-3 * 7   3-5 * T128F only  * 10 8-10 * 12 7-9 * 14 10-12 * 15 9-11 */#include <asm/system.h>#include <linux/signal.h>#include <linux/sched.h>#include <asm/io.h>#include <linux/blk.h>#include "scsi.h"#include "hosts.h"#include "t128.h"#define AUTOPROBE_IRQ#include "NCR5380.h"#include "constants.h"#include "sd.h"#include <linux/stat.h>#include <linux/init.h>#include <linux/module.h>static struct override {	unsigned long address;	int irq;} overrides#ifdef T128_OVERRIDE[] __initdata = T128_OVERRIDE;#else[4] __initdata = { 	{ 0, IRQ_AUTO},	{ 0, IRQ_AUTO},	{ 0, IRQ_AUTO},	{ 0, IRQ_AUTO}};#endif#define NO_OVERRIDES (sizeof(overrides) / sizeof(struct override))static struct base {	unsigned int address;	int noauto;} bases[] __initdata = {	{0xcc000, 0},	{0xc8000, 0},	{0xdc000, 0},	{0xd8000, 0}};#define NO_BASES (sizeof (bases) / sizeof (struct base))static const struct signature {	const char *string;	int offset;} signatures[] __initdata = {	{"TSROM: SCSI BIOS, Version 1.12", 0x36},};#define NO_SIGNATURES (sizeof (signatures) /  sizeof (struct signature))/** *	t128_setup *	@str: command line  * *	LILO command line initialization of the overrides array, */int __init t128_setup(char *str){	static int commandline_current = 0;	int ints[10];	int i;		get_options(str, sizeof(ints) / sizeof(int), ints);	if (ints[0] != 2)		printk(KERN_ERR "t128_setup : usage t128=address,irq\n");	else if (commandline_current < NO_OVERRIDES) {		overrides[commandline_current].address = ints[1];		overrides[commandline_current].irq = ints[2];		for (i = 0; i < NO_BASES; ++i)			if (bases[i].address == ints[1]) {				bases[i].noauto = 1;				break;			}		++commandline_current;	}	return 1;}__setup("t128=", t128_setup);/** *	t128_detect	-	detect controllers *	@tpnt: SCSI template * *	Detects and initializes T128,T128F, or T228 controllers *	that were autoprobed, overridden on the LILO command line,  *	or specified at compile time. */int __init t128_detect(Scsi_Host_Template * tpnt){	static int current_override = 0, current_base = 0;	struct Scsi_Host *instance;	unsigned long base;	int sig, count;	tpnt->proc_name = "t128";	tpnt->proc_info = &t128_proc_info;	for (count = 0; current_override < NO_OVERRIDES; ++current_override) 	{		base = 0;		if (overrides[current_override].address)			base = overrides[current_override].address;		else			for (; !base && (current_base < NO_BASES); ++current_base) {				for (sig = 0; sig < NO_SIGNATURES; ++sig)					if (!bases[current_base].noauto &&					    isa_check_signature(bases[current_base].address + signatures[sig].offset,								signatures[sig].string,								strlen(signatures[sig].string)))					{						base = bases[current_base].address;						break;					}			}		if (!base)			break;		instance = scsi_register(tpnt, sizeof(struct NCR5380_hostdata));		if (instance == NULL)			break;		instance->base = base;		NCR5380_init(instance, 0);		if (overrides[current_override].irq != IRQ_AUTO)			instance->irq = overrides[current_override].irq;		else			instance->irq = NCR5380_probe_irq(instance, T128_IRQS);		if (instance->irq != IRQ_NONE)			if (request_irq(instance->irq, do_t128_intr, SA_INTERRUPT, "t128", NULL)) 			{				printk(KERN_WARNING "scsi%d : IRQ%d not free, interrupts disabled\n", instance->host_no, instance->irq);				instance->irq = IRQ_NONE;			}		if (instance->irq == IRQ_NONE) {			printk(KERN_INFO "scsi%d : interrupts not enabled. for better interactive performance,\n", instance->host_no);			printk(KERN_INFO "scsi%d : please jumper the board for a free IRQ.\n", instance->host_no);		}		printk(KERN_INFO "scsi%d : at 0x%08lx", instance->host_no,instance->base);		if (instance->irq == IRQ_NONE)			printk(" interrupts disabled");		else			printk(" irq %d", instance->irq);		printk(" options CAN_QUEUE=%d  CMD_PER_LUN=%d release=%d", CAN_QUEUE, CMD_PER_LUN, T128_PUBLIC_RELEASE);		NCR5380_print_options(instance);		printk("\n");		++current_override;		++count;	}	return count;}/** *	t128_biosparam		-	disk geometry *	@disk: device  *	@dev: device major/minor *	@ip: array to return results * *	Generates a BIOS / DOS compatible H-C-S mapping for  *	the specified device / size. *  *	Most SCSI boards use this mapping, I could be incorrect.  Some one *	using hard disks on a trantor should verify that this mapping *	corresponds to that used by the BIOS / ASPI driver by running the *	linux fdisk program and matching the H_C_S coordinates to those *	that DOS uses. */int t128_biosparam(Disk * disk, kdev_t dev, int *ip){	int size = disk->capacity;	ip[0] = 64;	ip[1] = 32;	ip[2] = size >> 11;	return 0;}/** *	NCR5380_pread		-	pseudo DMA read *	@instance: controller *	@dst: buffer to write to *	@len: expect/max length * *	Fast 5380 pseudo-dma read function, transfers len bytes to  *	dst from the controller. */static inline int NCR5380_pread(struct Scsi_Host *instance,				unsigned char *dst, int len){	unsigned long reg = instance->base + T_DATA_REG_OFFSET;	unsigned char *d = dst;	int i = len;	while (!(isa_readb(instance->base + T_STATUS_REG_OFFSET) & T_ST_RDY))	       	barrier();	for (; i; --i) {		*d++ = isa_readb(reg);	}	if (isa_readb(instance->base + T_STATUS_REG_OFFSET) & T_ST_TIM) {		unsigned char tmp;		unsigned long foo;		foo = instance->base + T_CONTROL_REG_OFFSET;		tmp = isa_readb(foo);		isa_writeb(tmp | T_CR_CT, foo);		isa_writeb(tmp, foo);		printk(KERN_ERR "scsi%d : watchdog timer fired in t128 NCR5380_pread.\n", instance->host_no);		return -1;	} else		return 0;}/** *	NCR5380_pwrite		-	pseudo DMA write *	@instance: controller *	@dst: buffer to write to *	@len: expect/max length * *	Fast 5380 pseudo-dma write function, transfers len bytes from *	dst to the controller. */static inline int NCR5380_pwrite(struct Scsi_Host *instance,				 unsigned char *src, int len){	unsigned long reg = instance->base + T_DATA_REG_OFFSET;	unsigned char *s = src;	int i = len;	while (!(isa_readb(instance->base + T_STATUS_REG_OFFSET) & T_ST_RDY))		barrier();	for (; i; --i) {		isa_writeb(*s++, reg);	}	if (isa_readb(instance->base + T_STATUS_REG_OFFSET) & T_ST_TIM) {		unsigned char tmp;		unsigned long foo;		foo = instance->base + T_CONTROL_REG_OFFSET;		tmp = isa_readb(foo);		isa_writeb(tmp | T_CR_CT, foo);		isa_writeb(tmp, foo);		printk(KERN_ERR "scsi%d : watchdog timer fired in t128 NCR5380_pwrite()\n", instance->host_no);		return -1;	} else		return 0;}MODULE_LICENSE("GPL");#include "NCR5380.c"/* Eventually this will go into an include file, but this will be later */static Scsi_Host_Template driver_template = TRANTOR_T128;#include "scsi_module.c"

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品电影在线| 一区二区三区产品免费精品久久75| 日韩欧美国产综合在线一区二区三区 | 日韩影院精彩在线| 制服丝袜激情欧洲亚洲| 中文字幕乱码一区二区免费| 一区二区欧美在线观看| 欧美日韩一区在线| 国产欧美日韩激情| 日韩和的一区二区| 欧美精品一区二区三区很污很色的| 亚洲免费成人av| 国产精品一级二级三级| 欧美久久久久久蜜桃| 亚洲美女少妇撒尿| 777奇米成人网| 国产91色综合久久免费分享| 欧美日韩另类一区| 自拍偷拍亚洲综合| 国产成人精品www牛牛影视| 欧美日韩一级视频| 精品一区二区免费在线观看| 欧美三级日韩三级| 黄色日韩网站视频| 精品国产sm最大网站免费看| av成人免费在线观看| 久久综合九色综合欧美98| 久久www免费人成看片高清| 欧美丰满少妇xxxxx高潮对白| 国产一区二区三区日韩| 久久久精品免费免费| 精品中文字幕一区二区小辣椒| 国产欧美日韩另类一区| 欧美日韩电影在线播放| 国产成人超碰人人澡人人澡| 亚洲香蕉伊在人在线观| 欧美三级在线播放| 国产99一区视频免费| 丝袜美腿亚洲一区| 17c精品麻豆一区二区免费| 不卡电影一区二区三区| 亚洲精品美国一| 欧美日韩一区二区三区四区| 国产大陆亚洲精品国产| 天天综合天天做天天综合| 欧美日韩视频在线观看一区二区三区 | 欧美日韩综合在线免费观看| 国产精品中文字幕日韩精品| 亚洲第一激情av| 欧美日韩1234| 色婷婷综合久久久中文字幕| 亚洲激情综合网| 欧美激情在线一区二区三区| 欧美一级理论性理论a| 精品综合久久久久久8888| 亚洲国产另类av| 亚洲欧美在线视频观看| 精品国产一区二区三区忘忧草| 欧美怡红院视频| 视频一区视频二区在线观看| 亚洲免费色视频| 中文字幕一区免费在线观看| 国产三级精品视频| 精品福利一区二区三区免费视频| 在线成人免费视频| 欧美视频一二三区| 欧洲亚洲国产日韩| 久久99久久99| 国产精品久久久久久久久免费樱桃 | 欧美精品在欧美一区二区少妇| 97精品超碰一区二区三区| 日韩电影在线免费| 亚洲国产成人一区二区三区| 久久香蕉国产线看观看99| 精品国产免费一区二区三区四区| 337p亚洲精品色噜噜| 欧美蜜桃一区二区三区| 欧美无人高清视频在线观看| 欧洲精品在线观看| 欧美三区在线视频| 欧美久久久久久久久久| 日韩午夜激情av| 日韩欧美色综合| 久久综合色天天久久综合图片| 精品国产免费人成在线观看| 欧美精品一区二区久久婷婷| 久久这里只有精品6| 久久综合狠狠综合久久综合88| 2023国产精品| 国产欧美日韩精品一区| 亚洲丝袜美腿综合| 亚洲一区二区三区视频在线播放 | 久久精品亚洲精品国产欧美| 精品视频1区2区| 欧美高清www午色夜在线视频| 91精品国模一区二区三区| 69久久夜色精品国产69蝌蚪网| 日韩一区二区电影网| 久久综合给合久久狠狠狠97色69| 欧美激情一区在线观看| 亚洲色图欧美在线| 午夜免费久久看| 国产在线精品视频| 成人97人人超碰人人99| 欧美日韩免费视频| 欧美va日韩va| 欧美裸体bbwbbwbbw| 欧美刺激午夜性久久久久久久| 久久精品亚洲乱码伦伦中文| 一区二区三区精品| 久久精品久久综合| 成人动漫一区二区三区| 欧美日产国产精品| 久久久国产精品不卡| 一区二区三区日韩欧美精品 | 亚洲色图一区二区| 五月天婷婷综合| 国产mv日韩mv欧美| 欧美剧在线免费观看网站| 久久久99精品久久| 亚洲福利视频一区| 国产精品亚洲视频| 精品视频在线看| 国产女同互慰高潮91漫画| 亚洲午夜久久久久久久久久久| 国产精一区二区三区| 欧美撒尿777hd撒尿| 国产精品色婷婷久久58| 国产欧美日韩在线视频| 午夜精品成人在线视频| a美女胸又www黄视频久久| 日韩一区二区三区视频| 一区二区三区精品视频在线| 风间由美性色一区二区三区| 制服丝袜亚洲精品中文字幕| 中文字幕一区二区在线观看| 精品制服美女丁香| 欧美色综合网站| 国产精品久久久久久久久快鸭| 麻豆91免费看| 国产mv日韩mv欧美| 欧美mv日韩mv国产网站| 亚洲1区2区3区视频| thepron国产精品| 久久久久久久久久久久久夜| 日韩精品一二区| 欧美网站大全在线观看| 国产精品国产精品国产专区不蜜 | 久久青草欧美一区二区三区| 视频一区中文字幕| 欧美综合欧美视频| 樱花影视一区二区| gogo大胆日本视频一区| 国产欧美一区二区三区网站| 九一九一国产精品| 欧美一区二区三区四区久久| 国产日韩欧美高清在线| 欧美影片第一页| 国产欧美日本一区二区三区| 国产在线精品免费| 精品国产乱码久久久久久图片| 天天色综合成人网| 欧美疯狂做受xxxx富婆| 婷婷综合另类小说色区| 欧美精品亚洲二区| 亚洲sss视频在线视频| 欧美三区在线视频| 爽好多水快深点欧美视频| 欧美色老头old∨ideo| 亚洲成人av电影在线| 欧美色窝79yyyycom| 午夜影视日本亚洲欧洲精品| 欧美日韩情趣电影| 热久久国产精品| 91一区二区在线| 欧美精品一区二区在线播放 | 欧美成人精品3d动漫h| 久久99久久久欧美国产| www精品美女久久久tv| 高清视频一区二区| ㊣最新国产の精品bt伙计久久| 色综合激情五月| 亚洲aⅴ怡春院| 日韩欧美精品在线| 国产盗摄女厕一区二区三区| 中文字幕中文字幕在线一区| 色一区在线观看| 日本中文字幕一区| 久久影视一区二区| 99re8在线精品视频免费播放| 一区二区三区四区五区视频在线观看| 欧美三级韩国三级日本三斤| 久久国产免费看| 中文字幕在线不卡一区| 欧美午夜精品久久久久久超碰| 久久精品久久综合| 日韩毛片一二三区| 欧美一卡2卡3卡4卡| 国产999精品久久久久久绿帽| 亚洲女同ⅹxx女同tv|