aic7xxx.h (50662) | aic7xxx.h (54211) |
---|---|
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 Justin T. Gibbs. 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions 11 * are met: 12 * 1. Redistributions of source code must retain the above copyright 13 * notice, this list of conditions, and the following disclaimer, | 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 Justin T. Gibbs. 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions 11 * are met: 12 * 1. Redistributions of source code must retain the above copyright 13 * notice, this list of conditions, and the following disclaimer, |
14 * without modification, immediately at the beginning of the file. | 14 * without modification. |
15 * 2. The name of the author may not be used to endorse or promote products 16 * derived from this software without specific prior written permission. 17 * | 15 * 2. The name of the author may not be used to endorse or promote products 16 * derived from this software without specific prior written permission. 17 * |
18 * Where this Software is combined with software released under the terms of 19 * the GNU Public License ("GPL") and the terms of the GPL would require the 20 * combined work to also be released under the terms of the GPL, the terms 21 * and conditions of this License will apply in addition to those of the 22 * GPL with the exception of any terms or conditions of this License that 23 * conflict with, or are expressly prohibited by, the GPL. | 18 * Alternatively, this software may be distributed under the terms of the 19 * the GNU Public License ("GPL"). |
24 * 25 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 26 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 27 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 28 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR 29 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * | 20 * 21 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR 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 * |
37 * $FreeBSD: head/sys/dev/aic7xxx/aic7xxx.h 50662 1999-08-30 16:12:39Z gibbs $ | 33 * $FreeBSD: head/sys/dev/aic7xxx/aic7xxx.h 54211 1999-12-06 18:23:31Z gibbs $ |
38 */ 39 40#ifndef _AIC7XXX_H_ 41#define _AIC7XXX_H_ 42 43#include "ahc.h" /* for NAHC from config */ 44#include "opt_aic7xxx.h" /* for config options */ 45 --- 54 unchanged lines hidden (view full) --- 100 AHC_AIC7870 = 0x0006, 101 AHC_AIC7880 = 0x0007, 102 AHC_AIC7890 = 0x0008, 103 AHC_AIC7895 = 0x0009, 104 AHC_AIC7896 = 0x000a, 105 AHC_VL = 0x0100, /* Bus type VL */ 106 AHC_EISA = 0x0200, /* Bus type EISA */ 107 AHC_PCI = 0x0400, /* Bus type PCI */ | 34 */ 35 36#ifndef _AIC7XXX_H_ 37#define _AIC7XXX_H_ 38 39#include "ahc.h" /* for NAHC from config */ 40#include "opt_aic7xxx.h" /* for config options */ 41 --- 54 unchanged lines hidden (view full) --- 96 AHC_AIC7870 = 0x0006, 97 AHC_AIC7880 = 0x0007, 98 AHC_AIC7890 = 0x0008, 99 AHC_AIC7895 = 0x0009, 100 AHC_AIC7896 = 0x000a, 101 AHC_VL = 0x0100, /* Bus type VL */ 102 AHC_EISA = 0x0200, /* Bus type EISA */ 103 AHC_PCI = 0x0400, /* Bus type PCI */ |
104 AHC_BUS_MASK = 0x0F00 |
|
108} ahc_chip; 109 110typedef enum { 111 AHC_FENONE = 0x0000, 112 AHC_ULTRA = 0x0001, /* Supports 20MHz Transfers */ 113 AHC_ULTRA2 = 0x0002, /* Supports 40MHz Transfers */ 114 AHC_WIDE = 0x0004, /* Wide Channel */ 115 AHC_TWIN = 0x0008, /* Twin Channel */ --- 488 unchanged lines hidden (view full) --- 604 bus_space_read_1((ahc)->tag, (ahc)->bsh, port) 605 606#define ahc_outb(ahc, port, value) \ 607 bus_space_write_1((ahc)->tag, (ahc)->bsh, port, value) 608 609#define ahc_outsb(ahc, port, valp, count) \ 610 bus_space_write_multi_1((ahc)->tag, (ahc)->bsh, port, valp, count) 611 | 105} ahc_chip; 106 107typedef enum { 108 AHC_FENONE = 0x0000, 109 AHC_ULTRA = 0x0001, /* Supports 20MHz Transfers */ 110 AHC_ULTRA2 = 0x0002, /* Supports 40MHz Transfers */ 111 AHC_WIDE = 0x0004, /* Wide Channel */ 112 AHC_TWIN = 0x0008, /* Twin Channel */ --- 488 unchanged lines hidden (view full) --- 601 bus_space_read_1((ahc)->tag, (ahc)->bsh, port) 602 603#define ahc_outb(ahc, port, value) \ 604 bus_space_write_1((ahc)->tag, (ahc)->bsh, port, value) 605 606#define ahc_outsb(ahc, port, valp, count) \ 607 bus_space_write_multi_1((ahc)->tag, (ahc)->bsh, port, valp, count) 608 |
609#define ahc_insb(ahc, port, valp, count) \ 610 bus_space_read_multi_1((ahc)->tag, (ahc)->bsh, port, valp, count) 611 |
|
612#endif /* _AIC7XXX_H_ */ | 612#endif /* _AIC7XXX_H_ */ |