home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / kernel-s / v1.1 / scsi / 274x / pre-alph.001 < prev    next >
Text File  |  1995-10-10  |  3KB  |  92 lines

  1. THIS IS PRE-PRE-RELEASE SOFTWARE - USE AT YOUR OWN RISK!
  2.  
  3. Ok, after a round of musical patches with map@europa.ecn.uoknor.edu,
  4. the interrupt level problem with some cards is fixed "for sure this time" :-)
  5. Anyway, it worked on his system and it works on my "normal" system.
  6.  
  7. This is based on patch #1, so you can just apply the whole mess of
  8. patches easily.
  9. :ja
  10.  
  11. *** aha274x.c-rel5p1    Fri Sep 23 14:06:48 1994
  12. --- aha274x.c    Fri Sep 23 14:09:42 1994
  13. ***************
  14. *** 1,5 ****
  15.   /*
  16. !  *  @(#)aha274x.c 1.26 94/09/18 jda
  17.    *
  18.    *  Adaptec 274x device driver for Linux.
  19.    *  Copyright (c) 1994 The University of Calgary Department of Computer Science.
  20. --- 1,5 ----
  21.   /*
  22. !  *  @(#)aha274x.c 1.27 94/09/20 jda
  23.    *
  24.    *  Adaptec 274x device driver for Linux.
  25.    *  Copyright (c) 1994 The University of Calgary Department of Computer Science.
  26. ***************
  27. *** 439,450 ****
  28.   
  29.       /*
  30.        *  Check the startup flag - if no commands have been queued,
  31. !      *  we probably have the interrupt type set wrong.  Unpausing
  32. !      *  the sequencer will reload the host control register.
  33.        */
  34.       if (p->startup) {
  35.           p->unpause ^= 0x8;
  36. !         UNPAUSE_SEQUENCER(p);
  37.           return;
  38.       }
  39.   
  40. --- 439,451 ----
  41.   
  42.       /*
  43.        *  Check the startup flag - if no commands have been queued,
  44. !      *  we probably have the interrupt type set wrong.  Reverse
  45. !      *  the stored value and the active one in the host control
  46. !      *  register.
  47.        */
  48.       if (p->startup) {
  49.           p->unpause ^= 0x8;
  50. !         outb(inb(O_HCNTRL(p->base)) ^ 0x8, O_HCNTRL(p->base));
  51.           return;
  52.       }
  53.   
  54. ***************
  55. *** 929,938 ****
  56.   
  57.       /*
  58.        *  Register IRQ with the kernel _after_ the host information
  59. !      *  is set up, in case we take an interrupt right away.
  60. !      *
  61. !      *  XXX - the card is reset and disabled, so why would we be
  62. !      *      getting an interrupt?
  63.        */
  64.       if (request_irq(irq, aha274x_isr, SA_INTERRUPT, "AHA274x/284x")) {
  65.           printk("aha274x couldn't register irq %d, ignoring\n", irq);
  66. --- 930,937 ----
  67.   
  68.       /*
  69.        *  Register IRQ with the kernel _after_ the host information
  70. !      *  is set up, in case we take an interrupt right away, due to
  71. !      *  the interrupt type being set wrong.
  72.        */
  73.       if (request_irq(irq, aha274x_isr, SA_INTERRUPT, "AHA274x/284x")) {
  74.           printk("aha274x couldn't register irq %d, ignoring\n", irq);
  75. ***************
  76. *** 1011,1017 ****
  77.       return("Adaptec AHA274x/284x (EISA/VL-bus -> Fast SCSI) "
  78.              AHA274X_SEQ_VERSION "/"
  79.              AHA274X_H_VERSION "/"
  80. !            "1.26");
  81.   }
  82.   
  83.   int aha274x_command(Scsi_Cmnd *cmd)
  84. --- 1010,1016 ----
  85.       return("Adaptec AHA274x/284x (EISA/VL-bus -> Fast SCSI) "
  86.              AHA274X_SEQ_VERSION "/"
  87.              AHA274X_H_VERSION "/"
  88. !            "1.27");
  89.   }
  90.   
  91.   int aha274x_command(Scsi_Cmnd *cmd)
  92.