Deleted Added
full compact
aacvar.h (95350) aacvar.h (95536)
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 95350 2002-04-24 05:12:50Z scottl $
29 * $FreeBSD: head/sys/dev/aac/aacvar.h 95536 2002-04-27 01:31:17Z 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

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

357 struct proc *aifthread;
358 int aifflags;
359#define AAC_AIFFLAGS_RUNNING (1 << 0)
360#define AAC_AIFFLAGS_PENDING (1 << 1)
361#define AAC_AIFFLAGS_EXIT (1 << 2)
362#define AAC_AIFFLAGS_EXITED (1 << 3)
363 u_int32_t quirks;
364#define AAC_QUIRK_PERC2QC (1 << 0)
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

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

357 struct proc *aifthread;
358 int aifflags;
359#define AAC_AIFFLAGS_RUNNING (1 << 0)
360#define AAC_AIFFLAGS_PENDING (1 << 1)
361#define AAC_AIFFLAGS_EXIT (1 << 2)
362#define AAC_AIFFLAGS_EXITED (1 << 3)
363 u_int32_t quirks;
364#define AAC_QUIRK_PERC2QC (1 << 0)
365#define AAC_QUIRK_NOCAM (1 << 1) /* No SCSI passthrough */
366#define AAC_QUIRK_CAM_NORESET (1 << 2) /* Fake SCSI resets */
367#define AAC_QUIRK_CAM_PASSONLY (1 << 3) /* Only create pass devices */
368
369 u_int32_t scsi_method_id;
365};
366
367
368/*
369 * Public functions
370 */
371extern void aac_free(struct aac_softc *sc);
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);
370};
371
372
373/*
374 * Public functions
375 */
376extern void aac_free(struct aac_softc *sc);
377extern int aac_attach(struct aac_softc *sc);
378extern int aac_detach(device_t dev);
379extern int aac_shutdown(device_t dev);
380extern int aac_suspend(device_t dev);
381extern int aac_resume(device_t dev);
382extern void aac_intr(void *arg);
383extern void aac_submit_bio(struct bio *bp);
384extern void aac_biodone(struct bio *bp);
380extern int aac_get_sync_fib(struct aac_softc *sc,
385extern void aac_startio(struct aac_softc *sc);
386extern int aac_alloc_command(struct aac_softc *sc,
387 struct aac_command **cmp);
388extern void aac_release_command(struct aac_command *cm);
389extern int aac_alloc_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);
386
387/*
388 * Debugging levels:

--- 192 unchanged lines hidden ---
390 struct aac_fib **fib, int flags);
391extern void aac_release_sync_fib(struct aac_softc *sc);
392extern int aac_sync_fib(struct aac_softc *sc, u_int32_t command,
393 u_int32_t xferstate, struct aac_fib *fib,
394 u_int16_t datasize);
395
396/*
397 * Debugging levels:

--- 192 unchanged lines hidden ---