advansys.h revision 241492
1139749Simp/*- 239217Sgibbs * Generic driver definitions and exported functions for the Advanced 339217Sgibbs * Systems Inc. SCSI controllers 439217Sgibbs * 539217Sgibbs * Copyright (c) 1996-1997 Justin Gibbs. 639217Sgibbs * All rights reserved. 739217Sgibbs * 839217Sgibbs * Redistribution and use in source and binary forms, with or without 939217Sgibbs * modification, are permitted provided that the following conditions 1039217Sgibbs * are met: 1139217Sgibbs * 1. Redistributions of source code must retain the above copyright 1239217Sgibbs * notice, this list of conditions, and the following disclaimer, 1339217Sgibbs * without modification, immediately at the beginning of the file. 1439217Sgibbs * 2. Redistributions in binary form must reproduce the above copyright 1539217Sgibbs * notice, this list of conditions and the following disclaimer in the 1639217Sgibbs * documentation and/or other materials provided with the distribution. 1739217Sgibbs * 3. The name of the author may not be used to endorse or promote products 1839217Sgibbs * derived from this software without specific prior written permission. 1939217Sgibbs * 2039217Sgibbs * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 2139217Sgibbs * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2239217Sgibbs * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2339217Sgibbs * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR 2439217Sgibbs * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2539217Sgibbs * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2639217Sgibbs * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2739217Sgibbs * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2839217Sgibbs * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2939217Sgibbs * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3039217Sgibbs * SUCH DAMAGE. 3139217Sgibbs * All rights reserved. 3239217Sgibbs * 3350477Speter * $FreeBSD: head/sys/dev/advansys/advansys.h 241492 2012-10-12 21:31:44Z jhb $ 3439217Sgibbs */ 3539217Sgibbs 3639217Sgibbs#ifndef _ADVANSYS_H_ 3739217Sgibbs#define _ADVANSYS_H_ 3839217Sgibbs 3939217Sgibbs#include <dev/advansys/advlib.h> 4039217Sgibbs 41241492Sjhbstruct adv_softc * adv_alloc(device_t dev, struct resource *res, long offset); 4239217Sgibbsvoid adv_map(void *arg, bus_dma_segment_t *segs, 4339217Sgibbs int nseg, int error); 4439217Sgibbsvoid adv_free(struct adv_softc *adv); 4539217Sgibbsint adv_init(struct adv_softc *adv); 4639217Sgibbsvoid adv_intr(void *arg); 4739217Sgibbsint adv_attach(struct adv_softc *adv); 4839217Sgibbsvoid adv_done(struct adv_softc *adv, union ccb* ccb, 4939217Sgibbs u_int done_stat, u_int host_stat, 5039217Sgibbs u_int scsi_stat, u_int q_no); 51241492Sjhbvoid adv_timeout(void *arg); 5239217Sgibbs 5339217Sgibbs#endif /* _ADVANSYS_H_ */ 54