186d7f5d3SJohn Marino /* 286d7f5d3SJohn Marino * Generic driver definitions and exported functions for the Advanced 386d7f5d3SJohn Marino * Systems Inc. SCSI controllers 486d7f5d3SJohn Marino * 586d7f5d3SJohn Marino * Copyright (c) 1996-1997 Justin Gibbs. 686d7f5d3SJohn Marino * All rights reserved. 786d7f5d3SJohn Marino * 886d7f5d3SJohn Marino * Redistribution and use in source and binary forms, with or without 986d7f5d3SJohn Marino * modification, are permitted provided that the following conditions 1086d7f5d3SJohn Marino * are met: 1186d7f5d3SJohn Marino * 1. Redistributions of source code must retain the above copyright 1286d7f5d3SJohn Marino * notice, this list of conditions, and the following disclaimer, 1386d7f5d3SJohn Marino * without modification, immediately at the beginning of the file. 1486d7f5d3SJohn Marino * 2. Redistributions in binary form must reproduce the above copyright 1586d7f5d3SJohn Marino * notice, this list of conditions and the following disclaimer in the 1686d7f5d3SJohn Marino * documentation and/or other materials provided with the distribution. 1786d7f5d3SJohn Marino * 3. The name of the author may not be used to endorse or promote products 1886d7f5d3SJohn Marino * derived from this software without specific prior written permission. 1986d7f5d3SJohn Marino * 2086d7f5d3SJohn Marino * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 2186d7f5d3SJohn Marino * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2286d7f5d3SJohn Marino * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2386d7f5d3SJohn Marino * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR 2486d7f5d3SJohn Marino * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2586d7f5d3SJohn Marino * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2686d7f5d3SJohn Marino * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2786d7f5d3SJohn Marino * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2886d7f5d3SJohn Marino * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2986d7f5d3SJohn Marino * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3086d7f5d3SJohn Marino * SUCH DAMAGE. 3186d7f5d3SJohn Marino * All rights reserved. 3286d7f5d3SJohn Marino * 3386d7f5d3SJohn Marino * $FreeBSD: src/sys/dev/advansys/advansys.h,v 1.2.2.1 2000/04/14 13:32:48 nyan Exp $ 3486d7f5d3SJohn Marino * $DragonFly: src/sys/dev/disk/advansys/advansys.h,v 1.3 2003/08/07 21:16:50 dillon Exp $ 3586d7f5d3SJohn Marino */ 3686d7f5d3SJohn Marino 3786d7f5d3SJohn Marino #ifndef _ADVANSYS_H_ 3886d7f5d3SJohn Marino #define _ADVANSYS_H_ 3986d7f5d3SJohn Marino 4086d7f5d3SJohn Marino #include "advlib.h" 4186d7f5d3SJohn Marino 4286d7f5d3SJohn Marino struct adv_softc * adv_alloc(device_t dev, bus_space_tag_t tag, 4386d7f5d3SJohn Marino bus_space_handle_t bsh); 4486d7f5d3SJohn Marino char * adv_name(struct adv_softc *adv); 4586d7f5d3SJohn Marino void adv_map(void *arg, bus_dma_segment_t *segs, 4686d7f5d3SJohn Marino int nseg, int error); 4786d7f5d3SJohn Marino void adv_free(struct adv_softc *adv); 4886d7f5d3SJohn Marino int adv_init(struct adv_softc *adv); 4986d7f5d3SJohn Marino void adv_intr(void *arg); 5086d7f5d3SJohn Marino int adv_attach(struct adv_softc *adv); 5186d7f5d3SJohn Marino void adv_done(struct adv_softc *adv, union ccb* ccb, 5286d7f5d3SJohn Marino u_int done_stat, u_int host_stat, 5386d7f5d3SJohn Marino u_int scsi_stat, u_int q_no); 5486d7f5d3SJohn Marino timeout_t adv_timeout; 5586d7f5d3SJohn Marino 5686d7f5d3SJohn Marino #endif /* _ADVANSYS_H_ */ 57