cvs commit: src/sys/dev/aic7xxx aic7770.c aic7xxx.c aic7xxx.h aic7xxx.reg aic7xxx_inline.h aic7xxx_osm.c aic7xxx_pci.c

Justin T. Gibbs gibbs at FreeBSD.org
Sat May 3 16:55:40 PDT 2003


gibbs       2003/05/03 16:55:38 PDT

  FreeBSD src repository

  Modified files:
    sys/dev/aic7xxx      aic7770.c aic7xxx.c aic7xxx.h aic7xxx.reg 
                         aic7xxx_inline.h aic7xxx_osm.c 
                         aic7xxx_pci.c 
  Log:
  aic7xxx.c:
  aic7xxx.h:
          Split out core chip initialization into ahc_chip_init().
          This will allow us to reset the chip correctly at times
          other than initial chip setup.
  
  aic7770.c
  aic7xxx_pci.c:
          Flesh out bus chip init methods for our two
          bus attachments and use these, in addition to
          bus suspend/resume hooks to get the core in
          better shape for handling these events.
  
          When disabling PCI parity error checking, use FAILDIS.
          Although the chip docs indicate that clearing PERRESPEN
          should also work, it does not.
  
          Auto-disable pci parity error checking after informing
          the user of AHC_PCI_TARGET_PERR_THRESH number of parity
          errors observed as a target.
  
  aic7xxx.h:
  aic7xxx_pci.c
  aic7770.c
  aic7xxx.c
          Add the instruction_ram_size softc field.
  
          Remove the now unused stack_size softc field.
  
          Modify ahc_loadseq to return a failure code
          and to actually check the downloaded instruction
          count against the limit set in our softc.
  
          Modify callers of ahc_loadseq to handle load
          failures as appropriate.
  
          Set instruction RAM sizes for each chip type.
  
  aic7xxx_pci.c:
          Add some delay in the aic785X termination
          control code.  This may fix problems with
          the 2930.
  
          Be consistent in how we access config space
          registers.  16bit registers are accessed using
          16bit ops.
  
  aic7xxx.c:
          Correct spelling errors.
  
          Have ahc_force_renegotiation() take a devinfo as is done
          in the U320 driver.  Use this argument to correct a bug
          in the selection timeout handler where we forced a renegotiation
          with the last device that had set SAVED_SCSIID.  SAVED_SCSIID
          is only updated once a selection is *sucessfull* and so is
          stale for any selection timeout.
  
          Cleanup the setup of the devinfo for busfree events.  We
          now use this devinfo for a call to ahc_force_renegotiation()
          at the bottom of the routine, so it must be initialized in
          all cases.
  
          In ahc_pause_and_flushwork(), adjust the loop so that it
          will exit in the hot-eject case even if the INT_PEND mask
          is something other than 0xFF (as it is in this driver).
  
          Correct a wrapping string constant.
  
          Call ahc_fini_scbdata() after shutdown so that
          any ahc_chip_init() routine that might access
          SCB data will not access free'd memory.
  
          Correctly setup our buffer tag to indicate that 39bit
          addressing is available if in 39bit addressing mode.
  
          Rearrange some variable declarations based on
          type size.
  
  aic7xxx.c
  aic7xxx.h:
  aic7xxx.reg:
          Consistently use MAX_OFFSET for the user max syncrate
          set from non-volatile storage.  This ensures that the
          offset does not conflict with AHC_OFFSET_UNKNOWN.
  
          Change AHC_OFFSET_UNKNOWN to 0xFF.  This is
          a value that the curr->offset can never be,
          unlike '0' which we previously used.  This
          fixes code that only checks for a non-zero
          offset to determine if a sync negotiation
          is required since it will fire in the unknown
          case even if the goal is async.
  
          Change MAX_OFFSET to 0x7f which is the max
          offset U160 aic7xxx controllers can negotiate.
          This ensures that curr->offset will not
          match AHC_OFFSET_UNKNOWN.
  
  aic7xxx_inline.h:
          Have our inline interrupt handler return with a value
          indicating whether we serviced a real interrupt.  This
          is required for Linux support.
  
          Return earlier if the interrupt is not for us.
  
  Revision  Changes    Path
  1.12      +37 -2     src/sys/dev/aic7xxx/aic7770.c
  1.89      +325 -391  src/sys/dev/aic7xxx/aic7xxx.c
  1.45      +67 -31    src/sys/dev/aic7xxx/aic7xxx.h
  1.44      +2 -2      src/sys/dev/aic7xxx/aic7xxx.reg
  1.21      +33 -32    src/sys/dev/aic7xxx/aic7xxx_inline.h
  1.34      +2 -2      src/sys/dev/aic7xxx/aic7xxx_osm.c
  1.23      +150 -18   src/sys/dev/aic7xxx/aic7xxx_pci.c


More information about the cvs-all mailing list