freebsd-nq/sys/dev/aic7xxx
Scott Long 4d22994e96 Bring in many bugfixes and changes obtained from formal testing:
aic7xxx.c:
        aic7xxx.h:
        aic7xxx.reg:
        aic7xxx.seq:
                Bring in the protocol violation handler from the U320
                driver and replace the NO_IDENT sequencer interrupt code
                with the PROTO_VIOLATION code.  Support for this code
                required the following changes:

                SEQ_FLAGS:
                        IDENTIFY_SEEN -> NOT_IDENTIFIED
                        Added NO_CDB_SENT

                SCB_CONTROL:
                        TARGET_SCB == STATUS_RCVD for initiator mode

                scb->flags:
                        Added SCB_TARGET_SCB since we cannot rely on
                        TARGET_SCB as a target/initiator differentiator
                        due to it being overloaded in initiator mode to
                        indicate that status has been received.

        aic7xxx.seq:
                Move data fifo CLRCHN to mesgin_rdptrs which is a safer
                location for doing this operation.  This also saves a
                sequencer instruction.

        aic7xxx.c:
        aic7xxx.h:
                Change ahc/ahd_upate_neg_request() to take a "negotiation
                type" enum that allows us to negotiate:
                        o only if the goal and current parameters differ.
                        o only if the goal is non-async
                        o always - even if the negotiation will be for async.
        aic7xxx.seq:
                Reset the FIFO whenever a short CDB transfer occurs
                so that the FIFO contents do not corrupt a future CDB
                transfer retry.

                Add support for catching the various protocol violations
                handled by ahc_handle_protocol_violation.

                Reformat some comments.

        aic7xxx.c:
        aic7xxx.h:
                Just for safety, have the aic7xxx driver probe
                the stack depth.

        aic7xxx.c:
        aic7xxx.h:
                Save and restore stack contents during diagnostics.
                Some chip variants overwrite stale entries on a
                stack "pop".

                Don't use 0 to probe the stack depth.  0 is the typical
                value used to backfill the stack if entries are overwritten
                on a "pop".

        aic7xxx.h:
                Add a missing typedef.

                Collapse SCB flag entries so they are bit contiguous.

                Add AHD_ULTRA2_XFER_PERIOD for narrow fallback calculations

        aic7xxx.c:
                Don't panic (as a diagnostic to catch bugs) if we decided to
                force the renegotiation of async even if we believe we are
                already async.  This should allow us to negotiate async instead
                of the full user goal rate during startup if bus resets are
                disabled.

                Add a space to the end of the ahc/ahd_print_devinfo routines
                so that it behaves as expected by the code that uses it.

                Only force a renegotiation on a selection timeout
                if the SCB was valid.  Doing otherwise may be dangerous
                as the connection was not valid for an unknown reason.

                Add additional diagnostic output to ahc_dump_card_state(),
                and have it use the register pretty printing functions.

                Update ahc_reg_print() to handle a NULL cur_col.

                Add a newline to ahc_dump_card_state() output.

                Bring back "use_ppr".  We need to use_ppr anytime
                doppr is true or we have non-zero protocol options.
                The later case was not handled in the recent removal
                of use_ppr.

                Move a comment and remove a useless clearing of use_ppr.

                Don't disable ENBUSFREE when single stepping on
                a DT capable controller.  We cannot re-enable unexpected
                busfree detection, so we must clear BUSFREE on each
                step instead.

                Correct the lookup of the SCB ID in ahc_handle_proto_error.

                Remove a diagnostic printf.
                Remove unecessary restoration of the STACK for older
                chips.

Approved by:	re (blanket)
2002-11-30 19:30:09 +00:00
..
aicasm Minor updates to the aicasm: 2002-11-27 07:06:43 +00:00
ahc_eisa.c Sync perforce IDs for changes first committed to FreeBSD and then 2002-09-26 21:48:17 +00:00
ahc_pci.c Always compile in the AHC_ALLOW_MEMIO code, but only try MEMIO if 2002-11-30 19:11:44 +00:00
ahd_pci.c Never allow memory mapped I/O in PCI-X mode on controllers that 2002-10-16 02:59:03 +00:00
aic7xxx_93cx6.c Update Perforce Ids. 2002-08-31 06:45:28 +00:00
aic7xxx_93cx6.h Update Perforce Ids. 2002-08-31 06:45:28 +00:00
aic7xxx_inline.h If interrupts are disabled on the card, don't bother running 2002-08-31 06:46:37 +00:00
aic7xxx_osm.c Handle changes to SCB_CONTROL, scb->flags and SEQ_FLAGS 2002-11-30 19:08:58 +00:00
aic7xxx_osm.h Use the new ahc_scb_timer_reset API 2002-11-30 19:06:24 +00:00
aic7xxx_pci.c Add a routine for testing memory mapped register access. 2002-11-30 19:13:55 +00:00
aic7xxx.c Bring in many bugfixes and changes obtained from formal testing: 2002-11-30 19:30:09 +00:00
aic7xxx.h Bring in many bugfixes and changes obtained from formal testing: 2002-11-30 19:30:09 +00:00
aic7xxx.reg Bring in many bugfixes and changes obtained from formal testing: 2002-11-30 19:30:09 +00:00
aic7xxx.seq Bring in many bugfixes and changes obtained from formal testing: 2002-11-30 19:30:09 +00:00
aic79xx_inline.h Upgrade to version 1.1 of the aic79xx U320 driver. 2002-09-26 22:54:00 +00:00
aic79xx_osm.c Revisit the printf format fixes for alpha. intmax_t doesn't exist in 2002-11-28 04:09:29 +00:00
aic79xx_osm.h Revisit the printf format fixes for alpha. intmax_t doesn't exist in 2002-11-28 04:09:29 +00:00
aic79xx_pci.c Upgrade to version 1.1 of the aic79xx U320 driver. 2002-09-26 22:54:00 +00:00
aic79xx.c Use better return types and a couple of casts to eliminate warnings on 2002-11-12 10:22:49 +00:00
aic79xx.h Upgrade to version 1.1 of the aic79xx U320 driver. 2002-09-26 22:54:00 +00:00
aic79xx.reg Upgrade to version 1.1 of the aic79xx U320 driver. 2002-09-26 22:54:00 +00:00
aic79xx.seq Upgrade to version 1.1 of the aic79xx U320 driver. 2002-09-26 22:54:00 +00:00
aic7770.c Add support for the Olivetti branded EISA boards. 2002-11-30 18:00:43 +00:00