home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / KERNEL-S / V1.0 / PATCH9.GZ / patch9
Encoding:
Text File  |  1994-04-16  |  2.6 KB  |  80 lines

  1. diff -u --recursive --new-file v1.0.8/linux/Makefile linux/Makefile
  2. --- v1.0.8/linux/Makefile    Sun Apr 17 00:10:46 1994
  3. +++ linux/Makefile    Sun Apr 17 00:17:39 1994
  4. @@ -1,6 +1,6 @@
  5.  VERSION = 1
  6.  PATCHLEVEL = 0
  7. -SUBLEVEL = 8
  8. +SUBLEVEL = 9
  9.  
  10.  all:    Version zImage
  11.  
  12. diff -u --recursive --new-file v1.0.8/linux/drivers/scsi/fdomain.c linux/drivers/scsi/fdomain.c
  13. --- v1.0.8/linux/drivers/scsi/fdomain.c    Sun Apr 17 00:10:47 1994
  14. +++ linux/drivers/scsi/fdomain.c    Sun Apr 17 00:12:06 1994
  15. @@ -1,10 +1,10 @@
  16.  /* fdomain.c -- Future Domain TMC-16x0 SCSI driver
  17.   * Created: Sun May  3 18:53:19 1992 by faith@cs.unc.edu
  18. - * Revised: Fri Apr  1 23:47:55 1994 by faith@cs.unc.edu
  19. + * Revised: Thu Apr  7 20:30:09 1994 by faith@cs.unc.edu
  20.   * Author: Rickard E. Faith, faith@cs.unc.edu
  21.   * Copyright 1992, 1993, 1994 Rickard E. Faith
  22.   *
  23. - * $Id: fdomain.c,v 5.15 1994/04/02 04:48:04 root Exp $
  24. + * $Id: fdomain.c,v 5.16 1994/04/08 00:30:15 root Exp $
  25.  
  26.   * This program is free software; you can redistribute it and/or modify it
  27.   * under the terms of the GNU General Public License as published by the
  28. @@ -168,7 +168,7 @@
  29.  #include <linux/string.h>
  30.  #include <linux/ioport.h>
  31.  
  32. -#define VERSION          "$Revision: 5.15 $"
  33. +#define VERSION          "$Revision: 5.16 $"
  34.  
  35.  /* START OF USER DEFINABLE OPTIONS */
  36.  
  37. @@ -282,6 +282,9 @@
  38.  static int               Write_FIFO_port;
  39.  static int               Write_SCSI_Data_port;
  40.  
  41. +static int               FIFO_Size = 0x2000; /* 8k FIFO for
  42. +                        pre-tmc18c30 chips */
  43. +
  44.  extern void              fdomain_16x0_intr( int unused );
  45.  
  46.  static void *addresses[] = {
  47. @@ -421,7 +424,10 @@
  48.        outb( 0x80, port + IO_Control );
  49.        if (inb( port + Configuration2 ) & 0x80 == 0x80) {
  50.       outb( 0x00, port + IO_Control );
  51. -     if (inb( port + Configuration2 ) & 0x80 == 0x00) chip = tmc18c30;
  52. +     if (inb( port + Configuration2 ) & 0x80 == 0x00) {
  53. +        chip = tmc18c30;
  54. +        FIFO_Size = 0x800;    /* 2k FIFO */
  55. +     }
  56.        }
  57.  #else
  58.  
  59. @@ -429,7 +435,10 @@
  60.                                     have problems.  Lets assume it is an
  61.                                     18c30 if the RAM is disabled. */
  62.  
  63. -      if (inb( port + Configuration2 ) & 0x02) chip = tmc18c30;
  64. +      if (inb( port + Configuration2 ) & 0x02) {
  65. +     chip      = tmc18c30;
  66. +     FIFO_Size = 0x800;    /* 2k FIFO */
  67. +      }
  68.  #endif
  69.                  /* If that failed, we are an 18c50. */
  70.     }
  71. @@ -1127,7 +1136,7 @@
  72.     }
  73.  
  74.     if (current_SC->SCp.have_data_in == -1) { /* DATA OUT */
  75. -      while ( (data_count = 0x2000 - inw( FIFO_Data_Count_port )) > 512 ) {
  76. +      while ( (data_count = FIFO_Size - inw( FIFO_Data_Count_port )) > 512 ) {
  77.  #if EVERY_ACCESS
  78.       printk( "DC=%d, ", data_count ) ;
  79.  #endif
  80.