/testbed/scsipi/scsiconf.h

http://rtems-atapi.googlecode.com/ · C Header · 74 lines · 17 code · 10 blank · 47 comment · 0 complexity · 05538cd162aafc13609b80d072eaede5 MD5 · raw file

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