Home | History | Annotate | Line # | Download | only in scsipi
scsiconf.h revision 1.47.10.2
      1  1.47.10.2  thorpej /*	$NetBSD: scsiconf.h,v 1.47.10.2 1999/10/20 22:47:21 thorpej Exp $	*/
      2       1.11      cgd 
      3       1.44  mycroft /*-
      4  1.47.10.1  thorpej  * 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.47.10.1  thorpej  * by Charles M. Hannum; by Jason R. Thorpe of the Numerical Aerospace
      9  1.47.10.1  thorpej  * 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.38   bouyer #include <dev/scsipi/scsipiconf.h>
     58       1.31      cgd 
     59       1.31      cgd int	scsiprint __P((void *, const char *));
     60       1.17  mycroft 
     61       1.17  mycroft struct scsibus_softc {
     62        1.6  mycroft 	struct device sc_dev;
     63  1.47.10.1  thorpej 	struct scsipi_channel *sc_channel;	/* our scsipi_channel */
     64       1.45  thorpej 	int	sc_flags;
     65       1.17  mycroft };
     66       1.45  thorpej 
     67       1.45  thorpej /* sc_flags */
     68       1.45  thorpej #define	SCSIBUSF_OPEN	0x00000001	/* bus is open */
     69       1.17  mycroft 
     70  1.47.10.1  thorpej extern const struct scsipi_bustype scsi_bustype;
     71  1.47.10.1  thorpej 
     72  1.47.10.1  thorpej int	scsi_change_def __P((struct scsipi_periph *, int));
     73  1.47.10.2  thorpej void	scsi_kill_pending __P((struct scsipi_periph *));
     74  1.47.10.1  thorpej void	scsi_print_addr __P((struct scsipi_periph *));
     75  1.47.10.1  thorpej int	scsi_probe_bus __P((struct scsibus_softc *, int, int));
     76  1.47.10.1  thorpej int	scsi_scsipi_cmd __P((struct scsipi_periph *, struct scsipi_generic *,
     77  1.47.10.1  thorpej 	    int, void *, size_t, int, int, struct buf *, int));
     78