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

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

?? t128.c

?? linux 1.0 源代碼
?? 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. *  * SCSI2 - enable support for SCSI-II tagged queueing.  Untested. * * * 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. * * USLEEP - enable support for devices that don't disconnect.  Untested. * * 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 tupples.  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 */ /* * $Log: t128.c,v $ */#include <asm/system.h>#include <linux/signal.h>#include <linux/sched.h>#include "../block/blk.h"#include "scsi.h"#include "hosts.h"#include "t128.h"#define AUTOPROBE_IRQ#include "NCR5380.h"#include "constants.h"static struct override {    unsigned char *address;    int irq;} overrides #ifdef T128_OVERRIDE    [] = T128_OVERRIDE;#else    [4] = {{NULL,IRQ_AUTO}, {NULL,IRQ_AUTO}, {NULL,IRQ_AUTO},	{NULL,IRQ_AUTO}};#endif#define NO_OVERRIDES (sizeof(overrides) / sizeof(struct override))static struct base {    unsigned char *address;    int noauto;} bases[] = {{(unsigned char *) 0xcc000, 0}, {(unsigned char *) 0xc8000, 0},    {(unsigned char *) 0xdc000, 0}, {(unsigned char *) 0xd8000, 0}};#define NO_BASES (sizeof (bases) / sizeof (struct base))static const struct signature {    const char *string;    int offset;} signatures[] = {{"TSROM: SCSI BIOS, Version 1.12", 0x36},};#define NO_SIGNATURES (sizeof (signatures) /  sizeof (struct signature))/* * Function : t128_setup(char *str, int *ints) * * Purpose : LILO command line initialization of the overrides array, *  * Inputs : str - unused, ints - array of integer paramters with ints[0] *	equal to the number of ints. * */void t128_setup(char *str, int *ints) {    static int commandline_current = 0;    int i;    if (ints[0] != 2) 	printk("t128_setup : usage t128=address,irq\n");    else 	if (commandline_current < NO_OVERRIDES) {	    overrides[commandline_current].address = (unsigned char *) ints[1];	    overrides[commandline_current].irq = ints[2];	    for (i = 0; i < NO_BASES; ++i)		if (bases[i].address == (unsigned char *) ints[1]) {		    bases[i].noauto = 1;		    break;		}	    ++commandline_current;	}}static struct sigaction t128_sigaction =  { t128_intr, 0, SA_INTERRUPT , NULL };/*  * Function : int t128_detect(int hostno) * * Purpose : detects and initializes T128,T128F, or T228 controllers *	that were autoprobed, overriden on the LILO command line,  *	or specified at compile time. * * Inputs : hostno - id of this SCSI adapter. *  * Returns : 1 if a host adapter was found, 0 if not. * */int t128_detect(int hostno) {    static int current_override = 0, current_base = 0;    struct Scsi_Host *instance;    unsigned char *base;    int sig, count;    for (count = 0; current_override < NO_OVERRIDES; ++current_override) {	base = NULL;	if (overrides[current_override].address)	    base = overrides[current_override].address;	else 	    for (; !base && (current_base < NO_BASES); ++current_base) {#if (TDEBUG & TDEBUG_INIT)    printk("scsi%d : probing address %08x\n", hostno, (unsigned int) bases[current_base].address);#endif		for (sig = 0; sig < NO_SIGNATURES; ++sig) 		    if (!bases[current_base].noauto && !memcmp 			(bases[current_base].address + signatures[sig].offset, 			signatures[sig].string, strlen(signatures[sig].string))) {			base = bases[current_base].address;#if (TDEBUG & TDEBUG_INIT)			printk("scsi%d : detected board.\n", hostno);#endif			break;		    }	    }#if defined(TDEBUG) && (TDEBUG & TDEBUG_INIT)	printk("scsi%d : base = %08x\n", hostno, (unsigned int) base);#endif	if (!base)	    break;	instance = scsi_register (hostno, sizeof(struct NCR5380_hostdata));	instance->base = base;	NCR5380_init(instance);	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 (irqaction (instance->irq, &t128_sigaction)) {		printk("scsi%d : IRQ%d not free, interrupts disabled\n", 		    hostno, instance->irq);		instance->irq = IRQ_NONE;	    } 	if (instance->irq == IRQ_NONE) {	    printk("scsi%d : interrupts not enabled. for better interactive performance,\n", hostno);	    printk("scsi%d : please jumper the board for a free IRQ.\n", hostno);	}#if defined(TDEBUG) && (TDEBUG & TDEBUG_INIT)	printk("scsi%d : irq = %d\n", hostno, instance->irq);#endif	printk("scsi%d : at 0x%08x", instance->host_no, (int) 	    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;	++hostno;    }    return count;}/* * Function : int t128_biosparam(int size, int dev, int *ip) * * Purpose : Generates a BIOS / DOS compatable H-C-S mapping for  *	the specified device / size. *  * Inputs : size = size of device in sectors (512 bytes), dev = block device *	major / minor, ip[] = {heads, sectors, cylinders}   * * Returns : allways 0 (success), initializes ip *	 *//*  * XXX 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 what DOS uses. */int t128_biosparam(int size, int dev, int * ip){  ip[0] = 64;  ip[1] = 32;  ip[2] = size >> 11;  return 0;}/* * Function : int NCR5380_pread (struct Scsi_Host *instance,  *	unsigned char *dst, int len) * * Purpose : Fast 5380 pseudo-dma read function, transfers len bytes to  *	dst *  * Inputs : dst = destination, len = length in bytes * * Returns : 0 on success, non zero on a failure such as a watchdog  * 	timeout. */static inline int NCR5380_pread (struct Scsi_Host *instance, unsigned char *dst,    int len) {    register unsigned char *reg = (unsigned char *) (instance->base + 	T_DATA_REG_OFFSET), *d = dst;    register i = len;    while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY);    for (; i; --i) 	*d++ = *reg;    if (*(instance->base + T_STATUS_REG_OFFSET) & T_ST_TIM) {	unsigned char tmp;	volatile unsigned char *foo;	foo = instance->base + T_CONTROL_REG_OFFSET;	tmp = *foo;	*foo = tmp | T_CR_CT;	*foo = tmp;	printk("scsi%d : watchdog timer fired in NCR5480_pread()\n",	    instance->host_no);	return -1;    } else	return 0;}/* * Function : int NCR5380_pwrite (struct Scsi_Host *instance,  *	unsigned char *src, int len) * * Purpose : Fast 5380 pseudo-dma write function, transfers len bytes from *	src *  * Inputs : src = source, len = length in bytes * * Returns : 0 on success, non zero on a failure such as a watchdog  * 	timeout. */static inline int NCR5380_pwrite (struct Scsi_Host *instance, unsigned char *src,    int len) {    register unsigned char *reg = (unsigned char *) (instance->base + 	T_DATA_REG_OFFSET), *s = src;    register i = len;    while (!(instance->base[T_STATUS_REG_OFFSET]) & T_ST_RDY);    for (; i; --i)	*reg = *s++;    if (*(instance->base + T_STATUS_REG_OFFSET) & T_ST_TIM) {	unsigned char tmp;	volatile unsigned char *foo;	foo = instance->base + T_CONTROL_REG_OFFSET;	tmp = *foo;	*foo = tmp | T_CR_CT;	*foo = tmp;	printk("scsi%d : watchdog timer fired in NCR5480_pwrite()\n",	    instance->host_no);	return -1;    } else 	return 0;}/* * Function : const char *t128_info(void) * * Purpose : provide furthur information about this driver. * * Returns : an empty string. */const char *t128_info (void) {    static const char string[]="";    return string;}#include "NCR5380.c"

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产无一区二区| 欧美喷水一区二区| 国产精品免费视频观看| 国产精品影音先锋| 国产欧美精品区一区二区三区 | 国产aⅴ综合色| 中文字幕精品在线不卡| 丁香婷婷综合色啪| 亚洲人xxxx| 欧美日韩另类一区| 麻豆精品国产91久久久久久| 亚洲精品在线三区| av不卡免费在线观看| 亚洲中国最大av网站| 欧美精品日韩一本| 国产综合色精品一区二区三区| 久久一日本道色综合| 成人天堂资源www在线| 亚洲免费大片在线观看| 在线成人av网站| 国产一区二三区| 中文字幕日韩精品一区| 欧美日韩在线播放三区四区| 蜜臀av性久久久久av蜜臀妖精| 精品国产亚洲一区二区三区在线观看 | 成人黄色一级视频| 一区二区三区日韩精品视频| 欧美一二三区在线| 国产成人精品亚洲777人妖| 中文字幕一区三区| 日韩欧美的一区| 91香蕉视频黄| 日本va欧美va瓶| 亚洲三级视频在线观看| 日韩一区二区在线看| 97久久精品人人爽人人爽蜜臀 | 亚洲国产精品视频| 精品国产髙清在线看国产毛片| 99re热这里只有精品视频| 免费在线观看成人| 亚洲卡通动漫在线| 久久免费看少妇高潮| 欧美性受xxxx黑人xyx| 国产99久久久久| 毛片av中文字幕一区二区| 亚洲欧洲国产专区| 久久综合九色综合欧美98 | 91精品国产综合久久小美女| 成人激情动漫在线观看| 美女一区二区视频| 亚洲成人av一区二区三区| 国产精品嫩草99a| 久久午夜羞羞影院免费观看| 欧美日韩国产精品自在自线| 91热门视频在线观看| 成人理论电影网| 国内偷窥港台综合视频在线播放| 亚洲午夜一二三区视频| 最新日韩av在线| 国产日韩三级在线| 日韩欧美综合一区| 6080yy午夜一二三区久久| 色欧美片视频在线观看| 成人成人成人在线视频| 国产精品99久久久久久有的能看| 久久黄色级2电影| 免费成人结看片| 日韩av电影一区| 日本亚洲视频在线| 日韩黄色免费网站| 丝袜美腿高跟呻吟高潮一区| 亚洲一区二区欧美| 亚洲午夜久久久| 亚洲一区二区视频在线| 一区二区高清在线| 一区二区三区电影在线播| 亚洲精品久久久蜜桃| 亚洲欧洲成人精品av97| 亚洲日本免费电影| 亚洲激情男女视频| 亚洲最快最全在线视频| 亚洲欧美日韩综合aⅴ视频| 亚洲精品中文字幕在线观看| 亚洲精品欧美激情| 亚洲精品久久久久久国产精华液| 一区二区三区日韩欧美| 亚洲国产精品嫩草影院| 天天影视涩香欲综合网| 日本va欧美va瓶| 国产精品亚洲专一区二区三区 | 91九色最新地址| 91麻豆免费看片| 欧美少妇xxx| 日韩一区二区三免费高清| 精品国产制服丝袜高跟| 日本一区二区三区在线观看| 一区在线观看免费| 亚洲三级在线免费观看| 亚洲国产精品尤物yw在线观看| 日本欧洲一区二区| 韩国女主播成人在线| 成人国产视频在线观看| 在线观看精品一区| 91精品中文字幕一区二区三区| 精品乱人伦一区二区三区| 久久久青草青青国产亚洲免观| 国产精品入口麻豆九色| 亚洲综合精品久久| 麻豆成人av在线| 国产成a人亚洲| 欧美午夜理伦三级在线观看| 精品国产一区二区亚洲人成毛片| 国产精品美女一区二区三区| 亚洲成人动漫一区| 高清国产一区二区| 欧美日韩视频在线观看一区二区三区 | 色伊人久久综合中文字幕| 欧美日韩精品久久久| 国产日韩亚洲欧美综合| 一区二区三区精品视频| 国产精品99久| 欧美日韩不卡视频| 国产精品麻豆久久久| 日韩高清不卡一区二区三区| 成人动漫视频在线| 欧美一区二区三区视频| 亚洲欧洲精品一区二区三区不卡| 蜜桃视频第一区免费观看| 91在线观看美女| 欧美精品一区二区三区在线播放 | 久久麻豆一区二区| 亚洲国产一区在线观看| 国产精品亚洲人在线观看| 欧美日韩一区二区三区免费看| 久久久久88色偷偷免费| 日本视频一区二区| 色综合 综合色| 国产精品你懂的| 国产在线播放一区| 3d动漫精品啪啪一区二区竹菊| 国产精品嫩草99a| 国产精品一区二区无线| 欧美一区二区大片| 亚洲一区av在线| 97久久精品人人爽人人爽蜜臀| 久久美女艺术照精彩视频福利播放| 日韩精品1区2区3区| 欧美日韩情趣电影| 亚洲欧美区自拍先锋| 国产成人精品一区二区三区网站观看 | 国产在线播放一区三区四| 7777精品伊人久久久大香线蕉| 亚洲男人天堂一区| 丁香六月久久综合狠狠色| 精品国产一区二区三区久久久蜜月 | 国产成人激情av| 精品久久久久香蕉网| 欧美aⅴ一区二区三区视频| 欧美精选一区二区| 亚洲国产一区视频| 欧美在线观看你懂的| 悠悠色在线精品| 欧美在线制服丝袜| 亚洲美女视频在线观看| 99久久婷婷国产综合精品| 中文字幕亚洲精品在线观看| 欧美性生活影院| 一区二区三区精品| 欧美无砖专区一中文字| 亚洲综合视频在线观看| 欧美性生活一区| 日韩精品福利网| 日韩亚洲欧美一区二区三区| 美国欧美日韩国产在线播放| 日韩视频国产视频| 激情综合色播五月| 精品不卡在线视频| 国产一区中文字幕| 欧美激情自拍偷拍| jizz一区二区| 一区二区成人在线| 欧美日韩视频在线观看一区二区三区| 亚洲成人精品影院| 日韩欧美电影在线| 国产一区 二区 三区一级| 日本一区二区三区高清不卡| 9久草视频在线视频精品| 亚洲免费av在线| 91麻豆精品91久久久久久清纯| 蜜臀久久久99精品久久久久久| 精品国产a毛片| 91在线无精精品入口| 亚洲国产wwwccc36天堂| 欧美成人一区二区三区| 国产盗摄一区二区| 最新中文字幕一区二区三区| 精品视频一区二区不卡| 日韩精品欧美精品| 国产欧美视频一区二区三区| 色香色香欲天天天影视综合网|