Print this page
remove support for non-ANSI compilation


   3  *
   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*

  23  * Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
  24  */
  25 
  26 #ifndef _SYS_SCSI_IMPL_COMMANDS_H
  27 #define _SYS_SCSI_IMPL_COMMANDS_H
  28 
  29 #ifdef  __cplusplus
  30 extern "C" {
  31 #endif
  32 
  33 /*
  34  * Implementation dependent command definitions.
  35  * This file is included by <sys/scsi/generic/commands.h>
  36  */
  37 
  38 /*
  39  * Implementation dependent view of a SCSI command descriptor block
  40  */
  41 
  42 /*


 652         uchar_t         sc_prot_en      :1;
 653         uchar_t         sc_rsvd0        :6;
 654 #elif defined(_BIT_FIELDS_HTOL)
 655         uchar_t         sc_rsvd0        :6;
 656         uchar_t         sc_prot_en      :1;
 657         uchar_t         sc_rto_en       :1;
 658 #else
 659 #error  One of _BIT_FIELDS_LTOH or _BIT_FIELDS_HTOL must be defined
 660 #endif  /* _BIT_FIELDS_LTOH */
 661         uchar_t         sc_rsvd1[19];
 662 };
 663 
 664 #ifdef  _KERNEL
 665 
 666 /*
 667  * Functional versions of the above macros, and other functions.
 668  * the makecom functions have been deprecated. Please use
 669  * scsi_setup_cdb()
 670  */
 671 
 672 #ifdef  __STDC__
 673 extern void     makecom_g0(struct scsi_pkt *pkt, struct scsi_device *devp,
 674                                 int flag, int cmd, int addr, int cnt);
 675 extern void     makecom_g0_s(struct scsi_pkt *pkt, struct scsi_device *devp,
 676                                 int flag, int cmd, int cnt, int fixbit);
 677 extern void     makecom_g1(struct scsi_pkt *pkt, struct scsi_device *devp,
 678                                 int flag, int cmd, int addr, int cnt);
 679 extern void     makecom_g5(struct scsi_pkt *pkt, struct scsi_device *devp,
 680                                 int flag, int cmd, int addr, int cnt);
 681 extern int      scsi_setup_cdb(union scsi_cdb *cdbp, uchar_t cmd, uint_t addr,
 682                                 uint_t cnt, uint_t addtl_cdb_data);
 683 
 684 #else   /* __STDC__ */
 685 
 686 extern void     makecom_g0();
 687 extern void     makecom_g0_s();
 688 extern void     makecom_g1();
 689 extern void     makecom_g5();
 690 extern int      scsi_setup_cdb();
 691 
 692 #endif  /* __STDC__ */
 693 
 694 #endif /* _KERNEL */
 695 
 696 #ifdef  __cplusplus
 697 }
 698 #endif
 699 
 700 #endif  /* _SYS_SCSI_IMPL_COMMANDS_H */


   3  *
   4  * The contents of this file are subject to the terms of the
   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2014 Garrett D'Amore <garrett@damore.org>
  24  * Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
  25  */
  26 
  27 #ifndef _SYS_SCSI_IMPL_COMMANDS_H
  28 #define _SYS_SCSI_IMPL_COMMANDS_H
  29 
  30 #ifdef  __cplusplus
  31 extern "C" {
  32 #endif
  33 
  34 /*
  35  * Implementation dependent command definitions.
  36  * This file is included by <sys/scsi/generic/commands.h>
  37  */
  38 
  39 /*
  40  * Implementation dependent view of a SCSI command descriptor block
  41  */
  42 
  43 /*


 653         uchar_t         sc_prot_en      :1;
 654         uchar_t         sc_rsvd0        :6;
 655 #elif defined(_BIT_FIELDS_HTOL)
 656         uchar_t         sc_rsvd0        :6;
 657         uchar_t         sc_prot_en      :1;
 658         uchar_t         sc_rto_en       :1;
 659 #else
 660 #error  One of _BIT_FIELDS_LTOH or _BIT_FIELDS_HTOL must be defined
 661 #endif  /* _BIT_FIELDS_LTOH */
 662         uchar_t         sc_rsvd1[19];
 663 };
 664 
 665 #ifdef  _KERNEL
 666 
 667 /*
 668  * Functional versions of the above macros, and other functions.
 669  * the makecom functions have been deprecated. Please use
 670  * scsi_setup_cdb()
 671  */
 672 

 673 extern void     makecom_g0(struct scsi_pkt *pkt, struct scsi_device *devp,
 674                                 int flag, int cmd, int addr, int cnt);
 675 extern void     makecom_g0_s(struct scsi_pkt *pkt, struct scsi_device *devp,
 676                                 int flag, int cmd, int cnt, int fixbit);
 677 extern void     makecom_g1(struct scsi_pkt *pkt, struct scsi_device *devp,
 678                                 int flag, int cmd, int addr, int cnt);
 679 extern void     makecom_g5(struct scsi_pkt *pkt, struct scsi_device *devp,
 680                                 int flag, int cmd, int addr, int cnt);
 681 extern int      scsi_setup_cdb(union scsi_cdb *cdbp, uchar_t cmd, uint_t addr,
 682                                 uint_t cnt, uint_t addtl_cdb_data);
 683 










 684 #endif /* _KERNEL */
 685 
 686 #ifdef  __cplusplus
 687 }
 688 #endif
 689 
 690 #endif  /* _SYS_SCSI_IMPL_COMMANDS_H */