1*1709Smlf /* 2*1709Smlf * CDDL HEADER START 3*1709Smlf * 4*1709Smlf * The contents of this file are subject to the terms of the 5*1709Smlf * Common Development and Distribution License (the "License"). 6*1709Smlf * You may not use this file except in compliance with the License. 7*1709Smlf * 8*1709Smlf * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*1709Smlf * or http://www.opensolaris.org/os/licensing. 10*1709Smlf * See the License for the specific language governing permissions 11*1709Smlf * and limitations under the License. 12*1709Smlf * 13*1709Smlf * When distributing Covered Code, include this CDDL HEADER in each 14*1709Smlf * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*1709Smlf * If applicable, add the following below this CDDL HEADER, with the 16*1709Smlf * fields enclosed by brackets "[]" replaced with your own identifying 17*1709Smlf * information: Portions Copyright [yyyy] [name of copyright owner] 18*1709Smlf * 19*1709Smlf * CDDL HEADER END 20*1709Smlf */ 21*1709Smlf 22*1709Smlf /* 23*1709Smlf * Copyright 1996 Sun Microsystems, Inc. All rights reserved. 24*1709Smlf * Use is subject to license terms. 25*1709Smlf */ 26*1709Smlf 27*1709Smlf 28*1709Smlf #ifndef _GHD_SCSI_H 29*1709Smlf #define _GHD_SCSI_H 30*1709Smlf 31*1709Smlf #pragma ident "%Z%%M% %I% %E% SMI" 32*1709Smlf 33*1709Smlf #ifdef __cplusplus 34*1709Smlf extern "C" { 35*1709Smlf #endif 36*1709Smlf 37*1709Smlf #include <sys/types.h> 38*1709Smlf 39*1709Smlf void scsi_htos_3byte(uchar_t *ap, ulong_t nav); 40*1709Smlf void scsi_htos_long(uchar_t *ap, ulong_t niv); 41*1709Smlf void scsi_htos_short(uchar_t *ap, ushort_t nsv); 42*1709Smlf ulong_t scsi_stoh_3byte(uchar_t *ap); 43*1709Smlf ulong_t scsi_stoh_long(ulong_t ai); 44*1709Smlf ushort_t scsi_stoh_short(ushort_t as); 45*1709Smlf 46*1709Smlf 47*1709Smlf #ifdef __cplusplus 48*1709Smlf } 49*1709Smlf #endif 50*1709Smlf 51*1709Smlf #endif /* _GHD_SCSI_H */ 52