scsiconf.h revision 1.51 1 1.51 thorpej /* $NetBSD: scsiconf.h,v 1.51 2004/08/21 20:40:36 thorpej Exp $ */
2 1.11 cgd
3 1.44 mycroft /*-
4 1.49 bouyer * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
5 1.44 mycroft * All rights reserved.
6 1.44 mycroft *
7 1.44 mycroft * This code is derived from software contributed to The NetBSD Foundation
8 1.49 bouyer * by Charles M. Hannum; by Jason R. Thorpe of the Numerical Aerospace
9 1.49 bouyer * Simulation Facility, NASA Ames Research Center.
10 1.6 mycroft *
11 1.6 mycroft * Redistribution and use in source and binary forms, with or without
12 1.6 mycroft * modification, are permitted provided that the following conditions
13 1.6 mycroft * are met:
14 1.6 mycroft * 1. Redistributions of source code must retain the above copyright
15 1.6 mycroft * notice, this list of conditions and the following disclaimer.
16 1.6 mycroft * 2. Redistributions in binary form must reproduce the above copyright
17 1.6 mycroft * notice, this list of conditions and the following disclaimer in the
18 1.6 mycroft * documentation and/or other materials provided with the distribution.
19 1.6 mycroft * 3. All advertising materials mentioning features or use of this software
20 1.6 mycroft * must display the following acknowledgement:
21 1.44 mycroft * This product includes software developed by the NetBSD
22 1.44 mycroft * Foundation, Inc. and its contributors.
23 1.44 mycroft * 4. Neither the name of The NetBSD Foundation nor the names of its
24 1.44 mycroft * contributors may be used to endorse or promote products derived
25 1.44 mycroft * from this software without specific prior written permission.
26 1.6 mycroft *
27 1.44 mycroft * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
28 1.44 mycroft * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
29 1.44 mycroft * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
30 1.44 mycroft * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
31 1.44 mycroft * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
32 1.44 mycroft * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
33 1.44 mycroft * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
34 1.44 mycroft * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
35 1.44 mycroft * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
36 1.44 mycroft * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37 1.44 mycroft * POSSIBILITY OF SUCH DAMAGE.
38 1.6 mycroft */
39 1.6 mycroft
40 1.6 mycroft /*
41 1.6 mycroft * Originally written by Julian Elischer (julian (at) tfs.com)
42 1.3 deraadt * for TRW Financial Systems for use under the MACH(2.5) operating system.
43 1.1 cgd *
44 1.1 cgd * TRW Financial Systems, in accordance with their agreement with Carnegie
45 1.1 cgd * Mellon University, makes this software available to CMU to distribute
46 1.1 cgd * or use in any manner that they see fit as long as this message is kept with
47 1.1 cgd * the software. For this reason TFS also grants any other persons or
48 1.1 cgd * organisations permission to use or modify this software.
49 1.1 cgd *
50 1.1 cgd * TFS supplies this software to be publicly redistributed
51 1.1 cgd * on the understanding that TFS is not responsible for the correct
52 1.1 cgd * functioning of this software in any circumstances.
53 1.4 cgd *
54 1.6 mycroft * Ported to run under 386BSD by Julian Elischer (julian (at) tfs.com) Sept 1992
55 1.1 cgd */
56 1.1 cgd
57 1.50 matt #ifndef _DEV_SCSIPI_SCSICONF_H_
58 1.50 matt #define _DEV_SCSIPI_SCSICONF_H_
59 1.50 matt
60 1.38 bouyer #include <dev/scsipi/scsipiconf.h>
61 1.31 cgd
62 1.51 thorpej int scsiprint(void *, const char *);
63 1.17 mycroft
64 1.17 mycroft struct scsibus_softc {
65 1.6 mycroft struct device sc_dev;
66 1.49 bouyer struct scsipi_channel *sc_channel; /* our scsipi_channel */
67 1.45 thorpej int sc_flags;
68 1.17 mycroft };
69 1.45 thorpej
70 1.45 thorpej /* sc_flags */
71 1.45 thorpej #define SCSIBUSF_OPEN 0x00000001 /* bus is open */
72 1.17 mycroft
73 1.49 bouyer extern const struct scsipi_bustype scsi_bustype;
74 1.49 bouyer
75 1.51 thorpej int scsi_change_def(struct scsipi_periph *, int);
76 1.51 thorpej void scsi_kill_pending(struct scsipi_periph *);
77 1.51 thorpej void scsi_print_addr(struct scsipi_periph *);
78 1.51 thorpej int scsi_probe_bus(struct scsibus_softc *, int, int);
79 1.51 thorpej int scsi_scsipi_cmd(struct scsipi_periph *, struct scsipi_generic *,
80 1.51 thorpej int, void *, size_t, int, int, struct buf *, int);
81 1.50 matt
82 1.50 matt #endif /* _DEV_SCSIPI_SCSICONF_H_ */
83