aacvar.h (133540) | aacvar.h (133606) |
---|---|
1/*- 2 * Copyright (c) 2000 Michael Smith 3 * Copyright (c) 2001 Scott Long 4 * Copyright (c) 2000 BSDi 5 * Copyright (c) 2001 Adaptec, Inc. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 1/*- 2 * Copyright (c) 2000 Michael Smith 3 * Copyright (c) 2001 Scott Long 4 * Copyright (c) 2000 BSDi 5 * Copyright (c) 2001 Adaptec, Inc. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $FreeBSD: head/sys/dev/aac/aacvar.h 133540 2004-08-12 05:05:06Z scottl $ | 29 * $FreeBSD: head/sys/dev/aac/aacvar.h 133606 2004-08-13 01:44:09Z scottl $ |
30 */ 31 32#include <sys/bio.h> 33#include <sys/lock.h> 34#include <sys/mutex.h> 35#include <sys/taskqueue.h> 36#include <sys/selinfo.h> 37#include <geom/geom_disk.h> --- 189 unchanged lines hidden (view full) --- 227 u_int32_t arg0, u_int32_t arg1, 228 u_int32_t arg2, u_int32_t arg3); 229 int (*aif_get_mailbox)(struct aac_softc *sc, int mb); 230 void (*aif_set_interrupts)(struct aac_softc *sc, int enable); 231}; 232extern struct aac_interface aac_rx_interface; 233extern struct aac_interface aac_sa_interface; 234extern struct aac_interface aac_fa_interface; | 30 */ 31 32#include <sys/bio.h> 33#include <sys/lock.h> 34#include <sys/mutex.h> 35#include <sys/taskqueue.h> 36#include <sys/selinfo.h> 37#include <geom/geom_disk.h> --- 189 unchanged lines hidden (view full) --- 227 u_int32_t arg0, u_int32_t arg1, 228 u_int32_t arg2, u_int32_t arg3); 229 int (*aif_get_mailbox)(struct aac_softc *sc, int mb); 230 void (*aif_set_interrupts)(struct aac_softc *sc, int enable); 231}; 232extern struct aac_interface aac_rx_interface; 233extern struct aac_interface aac_sa_interface; 234extern struct aac_interface aac_fa_interface; |
235extern struct aac_interface aac_rkt_interface; |
|
235 236#define AAC_GET_FWSTATUS(sc) ((sc)->aac_if.aif_get_fwstatus((sc))) 237#define AAC_QNOTIFY(sc, qbit) ((sc)->aac_if.aif_qnotify((sc), (qbit))) 238#define AAC_GET_ISTATUS(sc) ((sc)->aac_if.aif_get_istatus((sc))) 239#define AAC_CLEAR_ISTATUS(sc, mask) ((sc)->aac_if.aif_clr_istatus((sc), \ 240 (mask))) 241#define AAC_SET_MAILBOX(sc, command, arg0, arg1, arg2, arg3) \ 242 ((sc)->aac_if.aif_set_mailbox((sc), (command), (arg0), (arg1), (arg2), \ --- 45 unchanged lines hidden (view full) --- 288#define AAC_STATE_INTERRUPTS_ON (1<<2) 289#define AAC_STATE_AIF_SLEEPER (1<<3) 290 struct FsaRevision aac_revision; 291 292 /* controller hardware interface */ 293 int aac_hwif; 294#define AAC_HWIF_I960RX 0 295#define AAC_HWIF_STRONGARM 1 | 236 237#define AAC_GET_FWSTATUS(sc) ((sc)->aac_if.aif_get_fwstatus((sc))) 238#define AAC_QNOTIFY(sc, qbit) ((sc)->aac_if.aif_qnotify((sc), (qbit))) 239#define AAC_GET_ISTATUS(sc) ((sc)->aac_if.aif_get_istatus((sc))) 240#define AAC_CLEAR_ISTATUS(sc, mask) ((sc)->aac_if.aif_clr_istatus((sc), \ 241 (mask))) 242#define AAC_SET_MAILBOX(sc, command, arg0, arg1, arg2, arg3) \ 243 ((sc)->aac_if.aif_set_mailbox((sc), (command), (arg0), (arg1), (arg2), \ --- 45 unchanged lines hidden (view full) --- 289#define AAC_STATE_INTERRUPTS_ON (1<<2) 290#define AAC_STATE_AIF_SLEEPER (1<<3) 291 struct FsaRevision aac_revision; 292 293 /* controller hardware interface */ 294 int aac_hwif; 295#define AAC_HWIF_I960RX 0 296#define AAC_HWIF_STRONGARM 1 |
296#define AAC_HWIF_FALCON 2 | 297#define AAC_HWIF_FALCON 2 298#define AAC_HWIF_RKT 3 |
297#define AAC_HWIF_UNKNOWN -1 298 bus_dma_tag_t aac_common_dmat; /* common structure 299 * DMA tag */ 300 bus_dmamap_t aac_common_dmamap; /* common structure 301 * DMA map */ 302 struct aac_common *aac_common; 303 u_int32_t aac_common_busaddr; 304 struct aac_interface aac_if; --- 279 unchanged lines hidden --- | 299#define AAC_HWIF_UNKNOWN -1 300 bus_dma_tag_t aac_common_dmat; /* common structure 301 * DMA tag */ 302 bus_dmamap_t aac_common_dmamap; /* common structure 303 * DMA map */ 304 struct aac_common *aac_common; 305 u_int32_t aac_common_busaddr; 306 struct aac_interface aac_if; --- 279 unchanged lines hidden --- |