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