2 * Generic driver definitions and exported functions for the Advanced
3 * Systems Inc. SCSI controllers
5 * SPDX-License-Identifier: BSD-3-Clause
7 * Copyright (c) 1996-1997 Justin Gibbs.
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions, and the following disclaimer,
15 * without modification, immediately at the beginning of the file.
16 * 2. Redistributions in binary form must reproduce the above copyright
17 * notice, this list of conditions and the following disclaimer in the
18 * documentation and/or other materials provided with the distribution.
19 * 3. The name of the author may not be used to endorse or promote products
20 * derived from this software without specific prior written permission.
22 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
23 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
26 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * All rights reserved.
41 #include <dev/advansys/advlib.h>
43 struct adv_softc * adv_alloc(device_t dev, struct resource *res, long offset);
44 void adv_map(void *arg, bus_dma_segment_t *segs,
46 void adv_free(struct adv_softc *adv);
47 int adv_init(struct adv_softc *adv);
48 void adv_intr(void *arg);
49 int adv_attach(struct adv_softc *adv);
50 void adv_done(struct adv_softc *adv, union ccb* ccb,
51 u_int done_stat, u_int host_stat,
52 u_int scsi_stat, u_int q_no);
53 void adv_timeout(void *arg);
55 #endif /* _ADVANSYS_H_ */