Home | History | Annotate | Line # | Download | only in scsipi
scsiconf.h revision 1.55.2.1
      1  1.55.2.1  wrstuden /*	$NetBSD: scsiconf.h,v 1.55.2.1 2008/09/18 04:35:10 wrstuden Exp $	*/
      2      1.11       cgd 
      3      1.44   mycroft /*-
      4      1.53   mycroft  * Copyright (c) 1998, 1999, 2004 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  *
     20      1.44   mycroft  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     21      1.44   mycroft  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     22      1.44   mycroft  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     23      1.44   mycroft  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     24      1.44   mycroft  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     25      1.44   mycroft  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     26      1.44   mycroft  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     27      1.44   mycroft  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     28      1.44   mycroft  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     29      1.44   mycroft  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     30      1.44   mycroft  * POSSIBILITY OF SUCH DAMAGE.
     31       1.6   mycroft  */
     32       1.6   mycroft 
     33       1.6   mycroft /*
     34       1.6   mycroft  * Originally written by Julian Elischer (julian (at) tfs.com)
     35       1.3   deraadt  * for TRW Financial Systems for use under the MACH(2.5) operating system.
     36       1.1       cgd  *
     37       1.1       cgd  * TRW Financial Systems, in accordance with their agreement with Carnegie
     38       1.1       cgd  * Mellon University, makes this software available to CMU to distribute
     39       1.1       cgd  * or use in any manner that they see fit as long as this message is kept with
     40       1.1       cgd  * the software. For this reason TFS also grants any other persons or
     41       1.1       cgd  * organisations permission to use or modify this software.
     42       1.1       cgd  *
     43       1.1       cgd  * TFS supplies this software to be publicly redistributed
     44       1.1       cgd  * on the understanding that TFS is not responsible for the correct
     45       1.1       cgd  * functioning of this software in any circumstances.
     46       1.4       cgd  *
     47       1.6   mycroft  * Ported to run under 386BSD by Julian Elischer (julian (at) tfs.com) Sept 1992
     48       1.1       cgd  */
     49       1.1       cgd 
     50      1.50      matt #ifndef _DEV_SCSIPI_SCSICONF_H_
     51      1.50      matt #define _DEV_SCSIPI_SCSICONF_H_
     52      1.50      matt 
     53      1.38    bouyer #include <dev/scsipi/scsipiconf.h>
     54      1.31       cgd 
     55      1.51   thorpej int	scsiprint(void *, const char *);
     56      1.17   mycroft 
     57      1.17   mycroft struct scsibus_softc {
     58  1.55.2.1  wrstuden 	device_t sc_dev;
     59      1.49    bouyer 	struct scsipi_channel *sc_channel;	/* our scsipi_channel */
     60      1.45   thorpej 	int	sc_flags;
     61      1.17   mycroft };
     62      1.45   thorpej 
     63      1.45   thorpej /* sc_flags */
     64      1.45   thorpej #define	SCSIBUSF_OPEN	0x00000001	/* bus is open */
     65      1.17   mycroft 
     66      1.49    bouyer extern const struct scsipi_bustype scsi_bustype;
     67      1.49    bouyer 
     68      1.51   thorpej int	scsi_change_def(struct scsipi_periph *, int);
     69      1.51   thorpej void	scsi_kill_pending(struct scsipi_periph *);
     70      1.51   thorpej void	scsi_print_addr(struct scsipi_periph *);
     71      1.51   thorpej int	scsi_probe_bus(struct scsibus_softc *, int, int);
     72      1.53   mycroft void	scsi_scsipi_cmd(struct scsipi_xfer *);
     73      1.50      matt 
     74      1.50      matt #endif /* _DEV_SCSIPI_SCSICONF_H_ */
     75