Deleted Added
full compact
aic7xxx.h (63821) aic7xxx.h (63944)
1/*
2 * Interface to the generic driver for the aic7xxx based adaptec
3 * SCSI controllers. This is used to implement product specific
4 * probe and attach routines.
5 *
6 * Copyright (c) 1994, 1995, 1996, 1997, 1998, 1999, 2000 Justin T. Gibbs.
7 * All rights reserved.
8 *

--- 16 unchanged lines hidden (view full) ---

25 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
1/*
2 * Interface to the generic driver for the aic7xxx based adaptec
3 * SCSI controllers. This is used to implement product specific
4 * probe and attach routines.
5 *
6 * Copyright (c) 1994, 1995, 1996, 1997, 1998, 1999, 2000 Justin T. Gibbs.
7 * All rights reserved.
8 *

--- 16 unchanged lines hidden (view full) ---

25 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * $FreeBSD: head/sys/dev/aic7xxx/aic7xxx.h 63821 2000-07-24 22:27:40Z gibbs $
33 * $FreeBSD: head/sys/dev/aic7xxx/aic7xxx.h 63944 2000-07-27 23:17:52Z gibbs $
34 */
35
36#ifndef _AIC7XXX_H_
37#define _AIC7XXX_H_
38
39#include "opt_aic7xxx.h" /* for config options */
40#include "aic7xxx_reg.h"
41

--- 135 unchanged lines hidden (view full) ---

177 * work during scsi->HostBus transfers.
178 */
179 AHC_TMODE_WIDEODD_BUG = 0x01,
180 /*
181 * On the aic7890/91 Rev 0 chips, the autoflush
182 * feature does not work. A manual flush of
183 * the DMA FIFO is required.
184 */
34 */
35
36#ifndef _AIC7XXX_H_
37#define _AIC7XXX_H_
38
39#include "opt_aic7xxx.h" /* for config options */
40#include "aic7xxx_reg.h"
41

--- 135 unchanged lines hidden (view full) ---

177 * work during scsi->HostBus transfers.
178 */
179 AHC_TMODE_WIDEODD_BUG = 0x01,
180 /*
181 * On the aic7890/91 Rev 0 chips, the autoflush
182 * feature does not work. A manual flush of
183 * the DMA FIFO is required.
184 */
185 AHC_AUTOFLUSH_BUG = 0x02
185 AHC_AUTOFLUSH_BUG = 0x02,
186 /*
187 * On the aic7890/91 Rev 0 chips, cacheline
188 * streaming does not work.
189 */
190 AHC_CACHETHEN_BUG = 0x04,
191 /*
192 * On the aic7896/97 chips, cacheline
193 * streaming must be enabled.
194 */
195 AHC_CACHETHEN_DIS_BUG = 0x08
186} ahc_bug;
187
188typedef enum {
189 AHC_FNONE = 0x000,
190 AHC_PAGESCBS = 0x001,/* Enable SCB paging */
191 AHC_CHANNEL_B_PRIMARY = 0x002,/*
192 * On twin channel adapters, probe
193 * channel B first since it is the

--- 399 unchanged lines hidden (view full) ---

593
594struct ahc_softc {
595 bus_space_tag_t tag;
596 bus_space_handle_t bsh;
597 bus_dma_tag_t buffer_dmat; /* dmat for buffer I/O */
598 struct scb_data *scb_data;
599
600 /*
196} ahc_bug;
197
198typedef enum {
199 AHC_FNONE = 0x000,
200 AHC_PAGESCBS = 0x001,/* Enable SCB paging */
201 AHC_CHANNEL_B_PRIMARY = 0x002,/*
202 * On twin channel adapters, probe
203 * channel B first since it is the

--- 399 unchanged lines hidden (view full) ---

603
604struct ahc_softc {
605 bus_space_tag_t tag;
606 bus_space_handle_t bsh;
607 bus_dma_tag_t buffer_dmat; /* dmat for buffer I/O */
608 struct scb_data *scb_data;
609
610 /*
601 * CCBs that have been send to the controller
611 * CCBs that have been sent to the controller
602 */
603 LIST_HEAD(, ccb_hdr) pending_ccbs;
604
605 /*
606 * Counting lock for deferring the release of additional
607 * untagged transactions from the untagged_queues. When
608 * the lock is decremented to 0, all queues in the
609 * untagged_queues array are run.

--- 208 unchanged lines hidden ---
612 */
613 LIST_HEAD(, ccb_hdr) pending_ccbs;
614
615 /*
616 * Counting lock for deferring the release of additional
617 * untagged transactions from the untagged_queues. When
618 * the lock is decremented to 0, all queues in the
619 * untagged_queues array are run.

--- 208 unchanged lines hidden ---