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

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

?? aha152x.c

?? <Linux1.0核心游記>電子書+書后源碼+Linux1.0源碼
?? C
?? 第 1 頁 / 共 5 頁
字號:
/* aha152x.c -- Adaptec AHA-152x driver * Author: Juergen E. Fischer, fischer@server.et-inf.fho-emden.de * Copyright 1993 Juergen E. Fischer * * * This driver is based on *   fdomain.c -- Future Domain TMC-16x0 driver * which is *   Copyright 1992, 1993 Rickard E. Faith (faith@cs.unc.edu) * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * 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.  * * $Id: aha152x.c,v 0.101 1993/12/13 01:16:27 root Exp $ * * $Log: aha152x.c,v $ * Revision 0.101  1993/12/13  01:16:27  root * - fixed STATUS phase (non-GOOD stati were dropped sometimes; *   fixes problems with CD-ROM sector size detection & media change) * * Revision 0.100  1993/12/10  16:58:47  root * - fix for unsuccessful selections in case of non-continuous id assignments *   on the scsi bus. * * Revision 0.99  1993/10/24  16:19:59  root * - fixed DATA IN (rare read errors gone) * * Revision 0.98  1993/10/17  12:54:44  root * - fixed some recent fixes (shame on me) * - moved initialization of scratch area to aha152x_queue * * Revision 0.97  1993/10/09  18:53:53  root * - DATA IN fixed. Rarely left data in the fifo. * * Revision 0.96  1993/10/03  00:53:59  root * - minor changes on DATA IN * * Revision 0.95  1993/09/24  10:36:01  root * - change handling of MSGI after reselection * - fixed sti/cli * - minor changes * * Revision 0.94  1993/09/18  14:08:22  root * - fixed bug in multiple outstanding command code * - changed detection * - support for kernel command line configuration * - reset corrected * - changed message handling * * Revision 0.93  1993/09/15  20:41:19  root * - fixed bugs with multiple outstanding commands * * Revision 0.92  1993/09/13  02:46:33  root * - multiple outstanding commands work (no problems with IBM drive) * * Revision 0.91  1993/09/12  20:51:46  root * added multiple outstanding commands * (some problem with this $%&? IBM device remain) * * Revision 0.9  1993/09/12  11:11:22  root * - corrected auto-configuration * - changed the auto-configuration (added some '#define's) * - added support for dis-/reconnection * * Revision 0.8  1993/09/06  23:09:39  root * - added support for the drive activity light * - minor changes * * Revision 0.7  1993/09/05  14:30:15  root * - improved phase detection * - now using the new snarf_region code of 0.99pl13 * * Revision 0.6  1993/09/02  11:01:38  root * first public release; added some signatures and biosparam() * * Revision 0.5  1993/08/30  10:23:30  root * fixed timing problems with my IBM drive * * Revision 0.4  1993/08/29  14:06:52  root * fixed some problems with timeouts due incomplete commands * * Revision 0.3  1993/08/28  15:55:03  root * writing data works too.  mounted and worked on a dos partition * * Revision 0.2  1993/08/27  22:42:07  root * reading data works.  Mounted a msdos partition. * * Revision 0.1  1993/08/25  13:38:30  root * first "damn thing doesn't work" version * * Revision 0.0  1993/08/14  19:54:25  root * empty function bodies; detect() works. * **************************************************************************  DESCRIPTION: This is the Linux low-level SCSI driver for Adaptec AHA-1520/1522 SCSI host adapters. PER-DEFINE CONFIGURABLE OPTIONS: AUTOCONF       : use configuration the controller reports (only 152x) IRQ            : override interrupt channel (9,10,11 or 12) (default 11) SCSI_ID        : override scsiid of AIC-6260 (0-7) (default 7) RECONNECT      : override target dis-/reconnection/multiple outstanding commands SKIP_BIOSTEST  : Don't test for BIOS signature (AHA-1510 or disabled BIOS) PORTBASE       : Force port base. Don't try to probe LILO COMMAND LINE OPTIONS: aha152x=<PORTBASE>,<IRQ>,<SCSI-ID>,<RECONNECT> The normal configuration can be overridden by specifying a command line. When you do this, the BIOS test is skipped. Entered values have to be valid (known). Don't use values that aren't support under normal operation. If you think that you need other value: contact me. REFERENCES USED: "AIC-6260 SCSI Chip Specification", Adaptec Corporation. "SCSI COMPUTER SYSTEM INTERFACE - 2 (SCSI-2)", X3T9.2/86-109 rev. 10h "Writing a SCSI device driver for Linux", Rik Faith (faith@cs.unc.edu) "Kernel Hacker's Guide", Michael K. Johnson (johnsonm@sunsite.unc.edu) "Adaptec 1520/1522 User's Guide", Adaptec Corporation.  Michael K. Johnson (johnsonm@sunsite.unc.edu) Drew Eckhardt (drew@cs.colorado.edu) Eric Youngdale (eric@tantalus.nrl.navy.mil)  special thanks to Eric Youngdale for the free(!) supplying the documentation on the chip. **************************************************************************/#include "aha152x.h"#include <linux/sched.h>#include <asm/io.h>#include "../block/blk.h"#include "scsi.h"#include "hosts.h"#include "constants.h"#include <asm/system.h>#include <linux/errno.h>#include <linux/string.h>#include <linux/wait.h>#include <linux/ioport.h>/* DEFINES *//* If auto configuration is disabled, IRQ, SCSI_ID and RECONNECT have to   be predefined */#if !defined(AUTOCONF)#if !defined(IRQ)#error undefined IRQ; define AUTOCONF or IRQ#endif#if !defined(SCSI_ID)#error undefined SCSI_ID; define AUTOCONF or SCSI_ID#endif#if !defined(RECONNECT)#error undefined RECONNECT; define AUTOCONF or RECONNECT#endif#endif/* I use this when I'm looking for weird bugs */#define DEBUG_TIMING #if defined(DEBUG)#undef  SKIP_PORTS              /* don't display ports */#undef  DEBUG_QUEUE             /* debug queue() */#undef  DEBUG_RESET             /* debug reset() */#undef  DEBUG_INTR              /* debug intr() */#undef  DEBUG_SELECTION         /* debug selection part in intr() */#undef  DEBUG_MSGO              /* debug message out phase in intr() */#undef  DEBUG_MSGI              /* debug message in phase in intr() */#undef  DEBUG_STATUS            /* debug status phase in intr() */#undef  DEBUG_CMD               /* debug command phase in intr() */#undef  DEBUG_DATAI             /* debug data in phase in intr() */#undef  DEBUG_DATAO             /* debug data out phase in intr() */#undef  DEBUG_ABORT             /* debug abort() */#undef  DEBUG_DONE              /* debug done() */#undef  DEBUG_BIOSPARAM         /* debug biosparam() */#undef  DEBUG_RACE              /* debug race conditions */#undef  DEBUG_PHASES            /* debug phases (useful to trace) */#undef  DEBUG_QUEUES            /* debug reselection *//* recently used for debugging */#if 0#define DEBUG_PHASES#define DEBUG_DATAI#endif#endif#define DEBUG_RESET             /* resets should be rare */#define DEBUG_ABORT             /* aborts too *//* END OF DEFINES *//* some additional "phases" for getphase() */#define P_BUSFREE  1#define P_PARITY   2char *aha152x_id = "Adaptec 152x SCSI driver; $Revision: 0.101 $\n";static int port_base      = 0;static int this_host      = 0;static int can_disconnect = 0;static int commands       = 0;/* set by aha152x_setup according to the command line */static int setup_called    = 0;static int setup_portbase  = 0;static int setup_irq       = 0;static int setup_scsiid    = 0;static int setup_reconnect = 0;static char *setup_str = (char *)NULL;enum {   not_issued   = 0x01,   in_selection = 0x02,   disconnected = 0x04,   aborted      = 0x08,   sent_ident   = 0x10,   in_other     = 0x20,}; /* * Command queues: * issue_SC        : commands that are queued to be issued  * current_SC      : command that's currently using the bus * disconnected_SC : commands that that have been disconnected  */static Scsi_Cmnd            *issue_SC        = NULL;static Scsi_Cmnd            *current_SC      = NULL;static Scsi_Cmnd            *disconnected_SC = NULL;static struct wait_queue    *abortion_complete;static int                  abort_result;void aha152x_intr( int irqno );void aha152x_done( int error );void aha152x_setup( char *str, int *ints );static void aha152x_reset_ports(void);static void aha152x_panic(char *msg);static void disp_ports(void);static void show_command(Scsi_Cmnd *ptr);static void show_queues(void);static void disp_enintr(void);#if defined(DEBUG_RACE)static void enter_driver(const char *);static void leave_driver(const char *);#endif/* possible locations for the Adaptec BIOS */static void *addresses[] ={  (void *) 0xdc000,   /* default first */  (void *) 0xc8000,  (void *) 0xcc000,  (void *) 0xd0000,  (void *) 0xd4000,  (void *) 0xd8000,  (void *) 0xe0000,  (void *) 0xf0000,};#define ADDRESS_COUNT (sizeof( addresses ) / sizeof( unsigned ))/* possible i/o adresses for the AIC-6260 */static unsigned short ports[] ={  0x340,      /* default first */  0x140};#define PORT_COUNT (sizeof( ports ) / sizeof( unsigned short ))/* possible interrupt channels */static unsigned short ints[] = { 9, 10, 11, 12 };/* signatures for various AIC-6260 based controllers */static struct signature {  char *signature;  int  sig_offset;  int  sig_length;} signatures[] ={  {    "Adaptec AHA-1520 BIOS\r\n\0\Version 1.4      \r\n\0\Copyright 1990 Adaptec, Inc.\r\n\All Rights Reserved\r\n \r\n \r\n", 0x102e, 101  },                                                          /* Adaptec 152x */  {    "Adaptec ASW-B626 BIOS\r\n\0\Version 1.0      \r\n\0\Copyright 1990 Adaptec, Inc.\r\n\All Rights Reserved\r\n\0 \r\n \r\n", 0x1029, 102  },                                                   /* on-board controller */  { "Adaptec BIOS: ASW-B626", 0x0F, 22},               /* on-board controller */  { "Adaptec ASW-B626 S2 BIOS", 0x2e6c, 24},           /* on-board controller */};#define SIGNATURE_COUNT (sizeof( signatures ) / sizeof( struct signature ))static void do_pause( unsigned amount ) /* Pause for amount*10 milliseconds */{   unsigned long the_time = jiffies + amount; /* 0.01 seconds per jiffy */   while (jiffies < the_time)     ;}/* *  queue services: */static inline void append_SC( Scsi_Cmnd **SC, Scsi_Cmnd *new_SC){  Scsi_Cmnd *end;  new_SC->host_scribble = (unsigned char *) NULL;  if(!*SC)    *SC=new_SC;  else    {      for( end=*SC;           end->host_scribble;           end = (Scsi_Cmnd *) end->host_scribble )        ;      end->host_scribble = (unsigned char *) new_SC;    }}static inline Scsi_Cmnd *remove_first_SC( Scsi_Cmnd **SC ){  Scsi_Cmnd *ptr;  ptr=*SC;  if(ptr)    *SC= (Scsi_Cmnd *) (*SC)->host_scribble;  return ptr;}static inline Scsi_Cmnd *remove_SC( Scsi_Cmnd **SC, int target, int lun ){  Scsi_Cmnd *ptr, *prev;  for( ptr=*SC, prev=NULL;       ptr && ((ptr->target!=target) || (ptr->lun!=lun));       prev = ptr, ptr = (Scsi_Cmnd *) ptr->host_scribble )    ;  if(ptr)    if(prev)      prev->host_scribble = ptr->host_scribble;    else      *SC= (Scsi_Cmnd *) ptr->host_scribble;  return ptr;}/* * read inbound byte and wait for ACK to get low */static void make_acklow(void){  SETPORT( SXFRCTL0, CH1|SPIOEN );  GETPORT(SCSIDAT);  SETPORT( SXFRCTL0, CH1 );  while( TESTHI( SCSISIG, ACKI ) )    ;}/* * detect current phase more reliable: * phase is valid, when the target asserts REQ after we've deasserted ACK. * * return value is a valid phase or an error code. * * errorcodes: *   P_BUSFREE   BUS FREE phase detected *   P_PARITY    parity error in DATA phase */static int getphase(void){  int phase, sstat1;    while( 1 )    {      do        {          while( !( ( sstat1 = GETPORT( SSTAT1 ) ) & (BUSFREE|SCSIRSTI|REQINIT ) ) )            ;          if( sstat1 & BUSFREE )            return P_BUSFREE;          if( sstat1 & SCSIRSTI )            {              /* IBM drive responds with RSTI to RSTO */              printk("aha152x: RESET IN\n");              SETPORT( SSTAT1, SCSIRSTI );            }        }      while( TESTHI( SCSISIG, ACKI ) || TESTLO( SSTAT1, REQINIT ) );      SETPORT( SSTAT1, CLRSCSIPERR );        phase = GETPORT( SCSISIG ) & P_MASK ;      if( TESTHI( SSTAT1, SCSIPERR ) )        {          if( (phase & (CDO|MSGO))==0 )                         /* DATA phase */            return P_PARITY;          make_acklow();        }      else        return phase;    }}/* called from init/main.c */void aha152x_setup( char *str, int *ints){  if(setup_called)    panic("aha152x: aha152x_setup called twice.\n");  setup_called=ints[0];  setup_str=str;  if(ints[0] != 4)    return;   setup_portbase  = ints[1];  setup_irq       = ints[2];  setup_scsiid    = ints[3];  setup_reconnect = ints[4];}/*   Test, if port_base is valid. */static int aha152x_porttest(int port_base){  int i;  if(check_region(port_base, TEST-SCSISEQ))

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品一区第一页| 欧美日韩国产综合久久| 亚洲国产中文字幕| 国产亚洲一区字幕| 色94色欧美sute亚洲线路二| 极品销魂美女一区二区三区| 亚洲伦理在线精品| 国产视频一区二区在线| 日韩欧美国产麻豆| 99re这里只有精品首页| 成人aa视频在线观看| 紧缚捆绑精品一区二区| 亚洲国产色一区| 亚洲女女做受ⅹxx高潮| 亚洲国产一区二区三区| 久久免费美女视频| 日韩精品专区在线影院重磅| 99riav久久精品riav| 美日韩黄色大片| 欧美激情综合在线| 久久久久久综合| 26uuu精品一区二区| 欧美精品一卡二卡| 欧美精品乱码久久久久久按摩| 在线观看亚洲精品| 在线观看亚洲一区| 色哟哟在线观看一区二区三区| 成人免费看片app下载| 精东粉嫩av免费一区二区三区| 日韩av中文字幕一区二区三区| 蜜臀久久99精品久久久久宅男| 亚洲h精品动漫在线观看| 久久奇米777| 国产精品女人毛片| 国产欧美日韩三级| 国产精品三级电影| 欧美成人乱码一区二区三区| 精品久久一二三区| 国产精品久久久久永久免费观看 | 久久久久久久综合日本| 久久精品亚洲精品国产欧美kt∨| 久久嫩草精品久久久精品一| 国产欧美精品一区二区色综合| 国产精品久久久久四虎| 日韩美女视频19| 亚洲成人资源在线| 一区二区在线看| 亚洲女与黑人做爰| 日韩精品成人一区二区三区| 久久精品国产精品青草| av不卡在线观看| 欧美巨大另类极品videosbest | 自拍偷拍亚洲综合| 日韩福利电影在线观看| 久久91精品国产91久久小草| 成人午夜视频在线| 7777精品伊人久久久大香线蕉最新版| 精品成人一区二区| 一区二区三区免费网站| 成人v精品蜜桃久久一区| 国产精品2024| 91在线国内视频| 日韩久久精品一区| 一级日本不卡的影视| 国产精品99久久久久久久vr| 欧美日韩成人一区| 国产精品短视频| 国产精品1024久久| 日韩欧美一二三区| 夜夜嗨av一区二区三区四季av| 国产美女在线精品| 69堂国产成人免费视频| 亚洲蜜臀av乱码久久精品蜜桃| 国产福利一区二区三区| 日韩一区二区在线观看视频| 亚洲永久免费av| 日本韩国欧美国产| 一区二区中文字幕在线| 国产乱色国产精品免费视频| 日韩一级欧美一级| 三级一区在线视频先锋| 欧美日韩在线免费视频| 亚洲一区二区在线观看视频| 一本高清dvd不卡在线观看| 国产区在线观看成人精品| 国产美女精品人人做人人爽| 欧美成人三级电影在线| 久久狠狠亚洲综合| 欧美大片一区二区| 国内精品久久久久影院色| 欧美精品一区视频| 国产成人av一区二区三区在线| 欧美xxxxxxxx| 国产**成人网毛片九色 | 91免费版pro下载短视频| 日韩一级二级三级| 99久精品国产| 美美哒免费高清在线观看视频一区二区| 久久久久久夜精品精品免费| 色综合久久精品| 日本不卡视频在线| 亚洲男人的天堂在线aⅴ视频| 欧美变态tickle挠乳网站| 91看片淫黄大片一级在线观看| 国产91精品在线观看| 亚洲欧美激情插 | 欧美成人伊人久久综合网| 美腿丝袜在线亚洲一区| 国产女人18毛片水真多成人如厕| 99免费精品视频| 无码av中文一区二区三区桃花岛| 26uuu另类欧美亚洲曰本| 99久久久久久99| 美女精品自拍一二三四| 国产精品人人做人人爽人人添| 欧美午夜电影网| 国产福利一区在线| 亚洲国产一区二区三区| 久久精品日产第一区二区三区高清版 | 在线影院国内精品| 国产一区二区三区在线看麻豆| 一区二区理论电影在线观看| 久久女同精品一区二区| 欧美视频一区二区三区| 成人h版在线观看| 国内精品在线播放| 日韩一区精品视频| 亚洲乱码国产乱码精品精小说 | 中文字幕亚洲区| 色哟哟在线观看一区二区三区| 一区二区高清在线| 色菇凉天天综合网| 玖玖九九国产精品| 中文字幕亚洲视频| 久久蜜桃av一区精品变态类天堂 | av亚洲产国偷v产偷v自拍| 久久91精品久久久久久秒播| 午夜国产精品一区| 亚洲男人的天堂av| 亚洲欧美日韩精品久久久久| 国产网站一区二区| 久久久三级国产网站| 欧美电影免费观看高清完整版在线 | 亚洲成a人片综合在线| 一区二区三区欧美| 亚洲伦理在线免费看| 亚洲欧美日韩国产综合| 亚洲三级在线免费观看| 自拍偷拍亚洲欧美日韩| 国产精品色哟哟| 亚洲欧美日韩一区二区 | 国产精品麻豆久久久| 国产日韩欧美在线一区| 国产蜜臀av在线一区二区三区 | 精品视频999| 制服丝袜亚洲精品中文字幕| 欧美日韩国产综合一区二区| 欧美日韩免费观看一区二区三区| 91九色最新地址| 欧美日产国产精品| 欧美一卡在线观看| 久久人人爽爽爽人久久久| 久久精品夜色噜噜亚洲aⅴ| 国产精品色呦呦| 一区二区视频在线| 亚洲福利电影网| 麻豆精品在线看| av在线不卡网| 91精品综合久久久久久| 精品国产自在久精品国产| 国产欧美一区二区精品仙草咪| 国产精品久久久久久久蜜臀| 一区二区三区四区在线播放 | 麻豆91免费观看| 成人免费观看av| 欧美三级电影网| 久久亚洲一区二区三区明星换脸| 亚洲丝袜制服诱惑| 婷婷综合久久一区二区三区| 国产在线视频一区二区| 色噜噜狠狠色综合中国| 欧美一二三四区在线| 国产精品久久久久影院| 婷婷六月综合网| av成人免费在线| 日韩一级片在线播放| 亚洲乱码国产乱码精品精小说| 麻豆久久久久久久| 色94色欧美sute亚洲线路二| 亚洲精品在线三区| 午夜不卡在线视频| www.66久久| 国产日韩欧美不卡| 蜜桃视频一区二区三区| 一本色道久久综合亚洲aⅴ蜜桃| 精品国产成人在线影院| 日韩中文字幕av电影| 色天天综合久久久久综合片| 国产调教视频一区| 美女视频一区二区|