]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
aic7xxx.c:
authorgibbs <gibbs@FreeBSD.org>
Sat, 3 May 2003 23:55:38 +0000 (23:55 +0000)
committergibbs <gibbs@FreeBSD.org>
Sat, 3 May 2003 23:55:38 +0000 (23:55 +0000)
commit0ad8e69a7c715f15aaa35599cd9f816afd2fef36
treea01ca3bc1e3d09929cd894035ab981e6973fe04e
parent54fa6eacc637f1e7746e52a7af278996f623f5fb
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.
sys/dev/aic7xxx/aic7770.c
sys/dev/aic7xxx/aic7xxx.c
sys/dev/aic7xxx/aic7xxx.h
sys/dev/aic7xxx/aic7xxx.reg
sys/dev/aic7xxx/aic7xxx_inline.h
sys/dev/aic7xxx/aic7xxx_osm.c
sys/dev/aic7xxx/aic7xxx_pci.c