aacvar.h (93818) | aacvar.h (95350) |
---|---|
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 93818 2002-04-04 21:03:38Z jhb $ | 29 * $FreeBSD: head/sys/dev/aac/aacvar.h 95350 2002-04-24 05:12:50Z scottl $ |
30 */ 31 32/* 33 * Driver Parameter Definitions 34 */ 35 36/* 37 * The firmware interface allows for a 16-bit s/g list length. We limit --- 293 unchanged lines hidden (view full) --- 331 struct aac_queue_entry *aac_qentries[AAC_QUEUE_COUNT]; 332 333 struct aac_qstat aac_qstat[AACQ_COUNT]; /* queue statistics */ 334 335 /* connected containters */ 336 struct aac_container_tq aac_container_tqh; 337 aac_lock_t aac_container_lock; 338 | 30 */ 31 32/* 33 * Driver Parameter Definitions 34 */ 35 36/* 37 * The firmware interface allows for a 16-bit s/g list length. We limit --- 293 unchanged lines hidden (view full) --- 331 struct aac_queue_entry *aac_qentries[AAC_QUEUE_COUNT]; 332 333 struct aac_qstat aac_qstat[AACQ_COUNT]; /* queue statistics */ 334 335 /* connected containters */ 336 struct aac_container_tq aac_container_tqh; 337 aac_lock_t aac_container_lock; 338 |
339 /* Protect the sync fib */ 340#define AAC_SYNC_LOCK_FORCE (1 << 0) 341 aac_lock_t aac_sync_lock; 342 |
|
339 /* delayed activity infrastructure */ 340#if __FreeBSD_version >= 500005 341 struct task aac_task_complete; /* deferred-completion 342 * task */ 343#endif 344 struct intr_config_hook aac_ich; 345 346 /* management interface */ --- 21 unchanged lines hidden (view full) --- 368extern int aac_attach(struct aac_softc *sc); 369extern int aac_detach(device_t dev); 370extern int aac_shutdown(device_t dev); 371extern int aac_suspend(device_t dev); 372extern int aac_resume(device_t dev); 373extern void aac_intr(void *arg); 374extern void aac_submit_bio(struct bio *bp); 375extern void aac_biodone(struct bio *bp); | 343 /* delayed activity infrastructure */ 344#if __FreeBSD_version >= 500005 345 struct task aac_task_complete; /* deferred-completion 346 * task */ 347#endif 348 struct intr_config_hook aac_ich; 349 350 /* management interface */ --- 21 unchanged lines hidden (view full) --- 372extern int aac_attach(struct aac_softc *sc); 373extern int aac_detach(device_t dev); 374extern int aac_shutdown(device_t dev); 375extern int aac_suspend(device_t dev); 376extern int aac_resume(device_t dev); 377extern void aac_intr(void *arg); 378extern void aac_submit_bio(struct bio *bp); 379extern void aac_biodone(struct bio *bp); |
376extern int aac_dump_enqueue(struct aac_disk *ad, u_int32_t lba, 377 void *data, int nblks); 378extern void aac_dump_complete(struct aac_softc *sc); | 380extern int aac_get_sync_fib(struct aac_softc *sc, 381 struct aac_fib **fib, int flags); 382extern void aac_release_sync_fib(struct aac_softc *sc); 383extern int aac_sync_fib(struct aac_softc *sc, u_int32_t command, 384 u_int32_t xferstate, struct aac_fib *fib, 385 u_int16_t datasize); |
379 380/* 381 * Debugging levels: 382 * 0 - quiet, only emit warnings 383 * 1 - noisy, emit major function points and things done 384 * 2 - extremely noisy, emit trace items in loops, etc. 385 */ 386#ifdef AAC_DEBUG --- 8 unchanged lines hidden (view full) --- 395 396extern void aac_print_queues(struct aac_softc *sc); 397extern void aac_panic(struct aac_softc *sc, char *reason); 398extern void aac_print_fib(struct aac_softc *sc, struct aac_fib *fib, 399 char *caller); 400extern void aac_print_aif(struct aac_softc *sc, 401 struct aac_aif_command *aif); 402 | 386 387/* 388 * Debugging levels: 389 * 0 - quiet, only emit warnings 390 * 1 - noisy, emit major function points and things done 391 * 2 - extremely noisy, emit trace items in loops, etc. 392 */ 393#ifdef AAC_DEBUG --- 8 unchanged lines hidden (view full) --- 402 403extern void aac_print_queues(struct aac_softc *sc); 404extern void aac_panic(struct aac_softc *sc, char *reason); 405extern void aac_print_fib(struct aac_softc *sc, struct aac_fib *fib, 406 char *caller); 407extern void aac_print_aif(struct aac_softc *sc, 408 struct aac_aif_command *aif); 409 |
403# define AAC_PRINT_FIB(sc, fib) aac_print_fib(sc, fib, __func__) | 410#define AAC_PRINT_FIB(sc, fib) aac_print_fib(sc, fib, __func__) |
404 405#else 406# define debug(level, fmt, args...) 407# define debug_called(level) 408 409# define aac_print_queues(sc) 410# define aac_panic(sc, reason) 411 --- 162 unchanged lines hidden --- | 411 412#else 413# define debug(level, fmt, args...) 414# define debug_called(level) 415 416# define aac_print_queues(sc) 417# define aac_panic(sc, reason) 418 --- 162 unchanged lines hidden --- |