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

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

?? aha152x.c

?? <Linux1.0核心游記>電子書+書后源碼+Linux1.0源碼
?? C
?? 第 1 頁 / 共 5 頁
字號:
       SETPORT( DMACNTRL0, INTEN );    }  return 0;}/* * Return the "logical geometry" */int aha152x_biosparam( int size, int dev, int *info_array ){#if defined(DEBUG_RACE)  enter_driver("biosparam");#else#if defined(DEBUG_BIOSPARAM)  printk("\naha152x: biosparam(), ");#endif#endif#if defined(DEBUG_BIOSPARAM)  printk("dev=%x, size=%d, ", dev, size);#endif  /* I took this from other SCSI drivers, since it provides   the correct data for my devices. */  info_array[0]=64;  info_array[1]=32;  info_array[2]=size>>11;#if defined(DEBUG_BIOSPARAM)  printk("bios geometry: head=%d, sec=%d, cyl=%d\n",         info_array[0], info_array[1], info_array[2]);  printk("WARNING: check, if the bios geometry is correct.\n");#endif#if defined(DEBUG_RACE)  leave_driver("biosparam");#endif  return 0;}/* *  Internal done function */void aha152x_done( int error ){  Scsi_Cmnd *done_SC;#if defined(DEBUG_DONE)  printk("\naha152x: done(), ");  disp_ports();#endif  if (current_SC)    {#if defined(DEBUG_DONE)      printk("done(%x), ", error);#endif      cli();      done_SC = current_SC;      current_SC = NULL;      /* turn led off, when no commands are in the driver */      commands--;      if(!commands)        SETPORT( PORTA, 0 );                                  /* turn led off */#if defined(DEBUG_QUEUES)      printk("ok (%d), ", commands);#endif      sti();      SETPORT(SIMODE0, disconnected_SC ? ENSELDI : 0 );      SETPORT(SIMODE1, issue_SC ? ENBUSFREE : 0);#if defined(DEBUG_PHASES)      printk("BUS FREE loop, ");#endif      while( TESTLO( SSTAT1, BUSFREE ) )        ;#if defined(DEBUG_PHASES)      printk("BUS FREE\n");#endif      done_SC->result = error;      if(done_SC->scsi_done)        {#if defined(DEBUG_DONE)          printk("calling scsi_done, ");#endif          done_SC->scsi_done( done_SC );#if defined(DEBUG_DONE)          printk("done returned, ");#endif        }      else        panic( "aha152x: current_SC->scsi_done() == NULL" );    }  else    aha152x_panic( "done() called outside of command" );}/* * Interrupts handler (main routine of the driver) */void aha152x_intr( int irqno ){  int done=0, phase;#if defined(DEBUG_RACE)  enter_driver("intr");#else#if defined(DEBUG_INTR)  printk("\naha152x: intr(), ");#endif#endif  /* no more interrupts from the controller, while we busy.     INTEN has to be restored, when we're ready to leave     intr(). To avoid race conditions we have to return     immediately afterwards. */  CLRBITS( DMACNTRL0, INTEN);  sti();  /* disconnected target is trying to reconnect.     Only possible, if we have disconnected nexuses and     nothing is occuping the bus.  */  if( TESTHI( SSTAT0, SELDI ) &&      disconnected_SC &&      ( !current_SC || ( current_SC->SCp.phase & in_selection ) )    )    {      int identify_msg, target, i;      /* Avoid conflicts when a target reconnects         while we are trying to connect to another. */      if(current_SC)        {#if defined(DEBUG_QUEUES)          printk("i+, ");#endif          cli();          append_SC( &issue_SC, current_SC);          current_SC=NULL;          sti();        }      /* disable sequences */      SETPORT( SCSISEQ, 0 );      SETPORT( SSTAT0, CLRSELDI );      SETPORT( SSTAT1, CLRBUSFREE );#if defined(DEBUG_QUEUES) || defined(DEBUG_PHASES)      printk("reselected, ");#endif      i = GETPORT(SELID) & ~(1 << this_host);      target=0;      if(i)        for( ; (i & 1)==0; target++, i>>=1)          ;      else        aha152x_panic("reconnecting target unknown");#if defined(DEBUG_QUEUES)      printk("SELID=%02x, target=%d, ", GETPORT(SELID), target );#endif      SETPORT( SCSIID, (this_host << OID_) | target );      SETPORT( SCSISEQ, ENRESELI );      if(TESTLO( SSTAT0, SELDI ))        aha152x_panic("RESELI failed");      SETPORT( SCSISIG, P_MSGI );      /* Get identify message */      if((i=getphase())!=P_MSGI)        {          printk("target doesn't enter MSGI to identify (phase=%02x)\n", i);          aha152x_panic("unknown lun");        }      SETPORT( SCSISEQ, 0 );      SETPORT( SXFRCTL0, CH1);      identify_msg = GETPORT(SCSIBUS);      if(!(identify_msg & IDENTIFY_BASE))        {          printk("target=%d, inbound message (%02x) != IDENTIFY\n",                 target, identify_msg);          aha152x_panic("unknown lun");        }      make_acklow();      getphase();#if defined(DEBUG_QUEUES)      printk("identify=%02x, lun=%d, ", identify_msg, identify_msg & 0x3f );#endif      cli();#if defined(DEBUG_QUEUES)      printk("d-, ");#endif      current_SC = remove_SC( &disconnected_SC,                              target,                              identify_msg & 0x3f );      if(!current_SC)        {          printk("lun=%d, ", identify_msg & 0x3f );          aha152x_panic("no disconnected command for that lun");        }      current_SC->SCp.phase &= ~disconnected;      sti();      SETPORT( SIMODE0, 0 );      SETPORT( SIMODE1, ENPHASEMIS );#if defined(DEBUG_RACE)      leave_driver("(reselected) intr");#endif      SETBITS( DMACNTRL0, INTEN);      return;    }    /* Check, if we aren't busy with a command */  if(!current_SC)    {      /* bus is free to issue a queued command */      if(TESTHI( SSTAT1, BUSFREE) && issue_SC)        {          cli();#if defined(DEBUG_QUEUES)          printk("i-, ");#endif          current_SC = remove_first_SC( &issue_SC );          sti();#if defined(DEBUG_INTR) || defined(DEBUG_SELECTION) || defined(DEBUG_PHASES)          printk("issueing command, ");#endif          current_SC->SCp.phase = in_selection;  #if defined(DEBUG_INTR) || defined(DEBUG_SELECTION) || defined(DEBUG_PHASES)          printk("selecting %d, ", current_SC->target);   #endif          SETPORT( SCSIID, (this_host << OID_) | current_SC->target );          /* Enable interrupts for SELECTION OUT DONE and SELECTION OUT INITIATED */          SETPORT( SXFRCTL1, ENSPCHK|ENSTIMER);          /* enable interrupts for SELECTION OUT DONE and SELECTION TIME OUT */          SETPORT( SIMODE0, ENSELDO | (disconnected_SC ? ENSELDI : 0) );          SETPORT( SIMODE1, ENSELTIMO );          /* Enable SELECTION OUT sequence */          SETBITS(SCSISEQ, ENSELO | ENAUTOATNO );          #if defined(DEBUG_RACE)          leave_driver("(selecting) intr");  #endif          SETBITS( DMACNTRL0, INTEN );          return;        }      /* No command we are busy with and no new to issue */      printk("aha152x: ignoring spurious interrupt, nothing to do\n");      return;    }  /* the bus is busy with something */#if defined(DEBUG_INTR)  disp_ports();#endif  /* we are waiting for the result of a selection attempt */  if(current_SC->SCp.phase & in_selection)    {      if( TESTLO( SSTAT1, SELTO ) )        /* no timeout */        if( TESTHI( SSTAT0, SELDO ) )          {            /* clear BUS FREE interrupt */            SETPORT( SSTAT1, CLRBUSFREE);            /* Disable SELECTION OUT sequence */            CLRBITS(SCSISEQ, ENSELO|ENAUTOATNO );            /* Disable SELECTION OUT DONE interrupt */            CLRBITS(SIMODE0, ENSELDO);            CLRBITS(SIMODE1, ENSELTIMO);            if( TESTLO(SSTAT0, SELDO) )              {                printk("aha152x: passing bus free condition\n");#if defined(DEBUG_RACE)                leave_driver("(passing bus free) intr");#endif                SETBITS( DMACNTRL0, INTEN);                if(current_SC->SCp.phase & aborted)                  {                    abort_result=1;                    wake_up( &abortion_complete );                  }                aha152x_done( DID_NO_CONNECT << 16 );                return;              }#if defined(DEBUG_SELECTION) || defined(DEBUG_PHASES)            printk("SELDO (SELID=%x), ", GETPORT(SELID));#endif            /* selection was done */            SETPORT( SSTAT0, CLRSELDO );#if defined(DEBUG_ABORT)            if(current_SC->SCp.phase & aborted)              printk("(ABORT) target selected, ");#endif            current_SC->SCp.phase &= ~in_selection;            current_SC->SCp.phase |= in_other;#if defined(DEBUG_RACE)            leave_driver("(SELDO) intr");#endif            SETPORT( SCSISIG, P_MSGO );            SETPORT( SIMODE0, 0 );            SETPORT( SIMODE1, ENREQINIT );            SETBITS( DMACNTRL0, INTEN);            return;          }        else          aha152x_panic("neither timeout nor selection\007");      else        {#if defined(DEBUG_SELECTION) || defined(DEBUG_PHASES)          printk("SELTO, ");#endif	  /* end selection attempt */          CLRBITS(SCSISEQ, ENSELO|ENAUTOATNO );          /* timeout */          SETPORT( SSTAT1, CLRSELTIMO );          SETPORT(SIMODE0, disconnected_SC ? ENSELDI : 0 );          SETPORT(SIMODE1, issue_SC ? ENBUSFREE : 0);          SETBITS( DMACNTRL0, INTEN );#if defined(DEBUG_RACE)          leave_driver("(SELTO) intr");#endif          if(current_SC->SCp.phase & aborted)            {#if defined(DEBUG_ABORT)              printk("(ABORT) selection timeout, ");#endif              abort_result=1;              wake_up( &abortion_complete );            }          if( TESTLO( SSTAT0, SELINGO ) )            /* ARBITRATION not won */            aha152x_done( DID_BUS_BUSY << 16 );          else            /* ARBITRATION won, but SELECTION failed */            aha152x_done( DID_NO_CONNECT << 16 );          return;        }    }  /* enable interrupt, when target leaves current phase */  phase = getphase();  if(!(phase & ~P_MASK))                                      /* "real" phase */    SETPORT(SCSISIG, phase);  SETPORT(SSTAT1, CLRPHASECHG);  current_SC->SCp.phase =    (current_SC->SCp.phase & ~((P_MASK|1)<<16)) | (phase << 16 );  /* information transfer phase */  switch( phase )    {    case P_MSGO:                                               /* MESSAGE OUT */      {        unsigned char message;#if defined(DEBUG_INTR) || defined(DEBUG_MSGO) || defined(DEBUG_PHASES)        printk("MESSAGE OUT, ");#endif        if( current_SC->SCp.phase & aborted )          {#if defined(DEBUG_MSGO) || defined(DEBUG_ABORT)            printk("ABORT, ");#endif            message=ABORT;          }        else          /* If we didn't identify yet, do it. Otherwise there's nothing to do,             but reject (probably we got an message before, that we have to             reject (SDTR, WDTR, etc.) */          if( !(current_SC->SCp.phase & sent_ident))            {              message=IDENTIFY(can_disconnect,current_SC->lun);#if defined(DEBUG_MSGO)              printk("IDENTIFY (reconnect=%s;lun=%d), ",                       can_disconnect ? "enabled" : "disabled", current_SC->lun);#endif            }          else            {              message=MESSAGE_REJECT;#if defined(DEBUG_MSGO)              printk("REJECT, ");#endif            }                  CLRBITS( SXFRCTL0, ENDMA);        SETPORT( SIMODE0, 0 );        SETPORT( SIMODE1, ENPHASEMIS|ENREQINIT );        /* wait for data latch to become ready or a phase change */        while( TESTLO( DMASTAT, INTSTAT ) )          ;        if( TESTHI( SSTAT1, PHASEMIS ) )          aha152x_panic("unable to send message");        /* Leave MESSAGE OUT after transfer */        SETPORT( SSTAT1, CLRATNO);        SETPORT( SCSIDAT, message );        make_acklow();        getphase();        if(message==IDENTIFY(can_disconnect,current_SC->lun))          current_SC->SCp.phase |= sent_ident;        if(message==ABORT)          {            /* revive abort(); abort() enables interrupts */            abort_result=0;            wake_up( &abortion_complete );            current_SC->SCp.phase = (current_SC->SCp.phase & ~(P_MASK<<16));            /* exit */            SETBITS( DMACNTRL0, INTEN );#if defined(DEBUG_RACE)            leave_driver("(ABORT) intr");#endif            aha152x_done(DID_ABORT<<16);            return;          }      }      break;    case P_CMD:                                          /* COMMAND phase */#if defined(DEBUG_INTR) || defined(DEBUG_CMD) || defined(DEBUG_PHASES)      printk("COMMAND, ");#endif      if( !(current_SC->SCp.sent_command) )        {

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕在线不卡视频| 26uuu亚洲综合色欧美| 日韩av网站免费在线| 亚洲伦理在线精品| 欧美国产一区在线| 在线播放中文一区| 欧美在线一二三四区| av午夜一区麻豆| 国产一区二区免费看| 日日摸夜夜添夜夜添精品视频| 亚洲天堂福利av| 自拍偷拍欧美精品| 中文字幕一区三区| 国产精品高潮呻吟| 中文字幕欧美激情一区| 久久亚洲综合色| 欧美精品久久久久久久久老牛影院| 91福利国产精品| 91福利视频久久久久| 99国产精品久久久久| 99免费精品在线| 91免费视频网| 国产福利一区二区| 成人少妇影院yyyy| 成人精品高清在线| 91亚洲精品久久久蜜桃网站| 99精品欧美一区| 在线看日本不卡| 欧美日韩激情一区二区三区| 91高清视频在线| 欧美视频在线一区二区三区| 在线观看91视频| 91成人国产精品| 欧美日韩一区小说| 91精品国产色综合久久不卡蜜臀| 欧美最猛性xxxxx直播| 欧美三级日韩三级| 日韩午夜激情视频| 久久久噜噜噜久久人人看| 国产清纯白嫩初高生在线观看91| 中文字幕国产精品一区二区| 久久亚洲免费视频| 中文字幕av一区二区三区高| 国产精品久久久久桃色tv| 国产免费观看久久| 亚洲免费观看视频| 日韩电影免费在线观看网站| 久久精品国产99国产| 国产精品一区二区久久精品爱涩| 成人午夜免费电影| 欧美色图一区二区三区| 欧美一区二区三区播放老司机| 精品国产一区二区在线观看| 国产日韩欧美综合一区| 亚洲另类一区二区| 狠狠久久亚洲欧美| 欧美日韩精品一区二区在线播放| 欧美国产亚洲另类动漫| 婷婷丁香久久五月婷婷| www.欧美色图| 久久久久国产精品麻豆| 偷拍日韩校园综合在线| 91亚洲男人天堂| 国产午夜亚洲精品羞羞网站| 日本成人中文字幕| 色婷婷亚洲一区二区三区| 国产亲近乱来精品视频| 美腿丝袜亚洲综合| 精品视频免费看| 亚洲日本电影在线| 国产成人免费视频网站高清观看视频| 91麻豆精品91久久久久久清纯| 亚洲色大成网站www久久九九| 国产精品一线二线三线精华| 日韩一级免费一区| 视频一区国产视频| 91国产成人在线| 亚洲美女一区二区三区| 成人国产精品免费网站| 国产午夜亚洲精品羞羞网站| 久久精品国产亚洲5555| 91精品久久久久久久99蜜桃| 亚洲电影你懂得| 在线看国产一区二区| 亚洲免费观看视频| 色综合久久中文综合久久97| 亚洲国产精品v| 丁香一区二区三区| 中文字幕欧美三区| 国产福利精品一区| 国产无一区二区| 国产成人综合在线播放| 久久久精品2019中文字幕之3| 精品影视av免费| 日韩免费看的电影| 看电视剧不卡顿的网站| 日韩视频永久免费| 九九国产精品视频| 精品福利一二区| 国产尤物一区二区在线| 久久久久久久久久久久久女国产乱| 国产一区二区三区免费播放| 久久久一区二区三区| 国产精品系列在线观看| 国产欧美精品一区| 成人免费观看男女羞羞视频| 国产精品传媒在线| 91美女在线视频| 亚洲成人综合视频| 日韩一区和二区| 国产一区 二区| 国产精品亲子伦对白| 99国产欧美另类久久久精品| 亚洲美女偷拍久久| 欧美日韩国产高清一区| 麻豆精品视频在线观看视频| 欧美v日韩v国产v| 国产自产高清不卡| 国产精品电影一区二区| 欧洲色大大久久| 日本不卡的三区四区五区| 精品国免费一区二区三区| 国产精品一二一区| 亚洲精品伦理在线| 69av一区二区三区| 国产精品中文字幕日韩精品| 综合自拍亚洲综合图不卡区| 欧美日精品一区视频| 精一区二区三区| 中文字幕亚洲不卡| 91超碰这里只有精品国产| 国产一区二区三区最好精华液| 国产精品麻豆欧美日韩ww| 欧美视频精品在线| 久久国产尿小便嘘嘘尿| 国产精品沙发午睡系列990531| 色噜噜狠狠一区二区三区果冻| 日韩精品色哟哟| 日本一区二区三区国色天香| 欧美网站一区二区| 精品一区在线看| 亚洲精品欧美激情| 欧美videos中文字幕| 91毛片在线观看| 免费成人av在线| 亚洲欧美国产毛片在线| 欧美成va人片在线观看| 色综合视频一区二区三区高清| 美腿丝袜亚洲一区| 亚洲卡通动漫在线| 精品少妇一区二区三区在线视频| 不卡视频一二三四| 六月丁香综合在线视频| 亚洲日本va在线观看| 欧美va亚洲va国产综合| 91国产免费看| 国产成人av电影免费在线观看| 亚洲成人自拍网| 国产精品电影院| 精品黑人一区二区三区久久| 91精彩视频在线观看| 国产馆精品极品| 午夜av区久久| 国产精品不卡一区| 精品欧美一区二区在线观看| 色老汉一区二区三区| 丁香另类激情小说| 久久99久久99| 亚洲成av人片观看| 亚洲欧洲日产国产综合网| 精品盗摄一区二区三区| 欧美日韩第一区日日骚| 一本大道久久a久久精品综合| 国产精品一区二区三区四区| 蜜桃一区二区三区在线观看| 亚洲综合无码一区二区| 国产精品免费av| 国产无一区二区| 26uuu国产在线精品一区二区| 欧美精品久久99久久在免费线| 色菇凉天天综合网| 91同城在线观看| 懂色av中文一区二区三区| 黑人精品欧美一区二区蜜桃 | 另类小说欧美激情| 午夜精品久久久久久不卡8050| 亚洲色图制服诱惑| 国产精品久久久一本精品 | 亚洲一二三区视频在线观看| 中文字幕一区二区视频| 国产欧美日韩在线观看| 久久色在线视频| 久久天堂av综合合色蜜桃网| 精品国产免费一区二区三区香蕉| 欧美精品久久天天躁| 欧美日韩三级视频| 欧美男男青年gay1069videost| 欧美性猛片xxxx免费看久爱| 色一区在线观看| 91福利精品视频|