/*-1* SPDX-License-Identifier: BSD-2-Clause2*3* Copyright (c) 1997, 1998, 1999 Justin T. Gibbs.4* Copyright (c) 1997, 1998, 2003 Kenneth D. Merry.5* All rights reserved.6*7* Redistribution and use in source and binary forms, with or without8* modification, are permitted provided that the following conditions9* are met:10* 1. Redistributions of source code must retain the above copyright11* notice, this list of conditions, and the following disclaimer,12* without modification, immediately at the beginning of the file.13* 2. The name of the author may not be used to endorse or promote products14* derived from this software without specific prior written permission.15*16* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND17* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE18* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE19* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR20* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL21* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS22* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)23* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT24* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY25* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF26* SUCH DAMAGE.27*28* $Id: //depot/users/kenm/FreeBSD-test2/sys/cam/ctl/ctl_scsi_all.h#2 $29*/30__BEGIN_DECLS31const char * ctl_scsi_status_string(struct ctl_scsiio *ctsio);32#ifdef _KERNEL33void ctl_scsi_sense_print(struct ctl_scsiio *ctsio,34struct scsi_inquiry_data *inq_data);35#else /* _KERNEL */36void ctl_scsi_sense_print(struct ctl_scsiio *ctsio,37struct scsi_inquiry_data *inq_data,38FILE *ofile);39#endif /* _KERNEL */40int ctl_scsi_command_string(struct ctl_scsiio *ctsio,41struct scsi_inquiry_data *inq_data,struct sbuf *sb);42int ctl_scsi_sense_sbuf(struct ctl_scsiio *ctsio,43struct scsi_inquiry_data *inq_data, struct sbuf *sb,44scsi_sense_string_flags flags);45void ctl_scsi_path_string(struct ctl_io_hdr *hdr, char *path_str, int strlen);46char *ctl_scsi_sense_string(struct ctl_scsiio *ctsio,47struct scsi_inquiry_data *inq_data, char *str,48int str_len);4950__END_DECLS515253