19578SSam.Cramer@Sun.COM /* 29578SSam.Cramer@Sun.COM * CDDL HEADER START 39578SSam.Cramer@Sun.COM * 49578SSam.Cramer@Sun.COM * The contents of this file are subject to the terms of the 59578SSam.Cramer@Sun.COM * Common Development and Distribution License (the "License"). 69578SSam.Cramer@Sun.COM * You may not use this file except in compliance with the License. 79578SSam.Cramer@Sun.COM * 89578SSam.Cramer@Sun.COM * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 99578SSam.Cramer@Sun.COM * or http://www.opensolaris.org/os/licensing. 109578SSam.Cramer@Sun.COM * See the License for the specific language governing permissions 119578SSam.Cramer@Sun.COM * and limitations under the License. 129578SSam.Cramer@Sun.COM * 139578SSam.Cramer@Sun.COM * When distributing Covered Code, include this CDDL HEADER in each 149578SSam.Cramer@Sun.COM * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 159578SSam.Cramer@Sun.COM * If applicable, add the following below this CDDL HEADER, with the 169578SSam.Cramer@Sun.COM * fields enclosed by brackets "[]" replaced with your own identifying 179578SSam.Cramer@Sun.COM * information: Portions Copyright [yyyy] [name of copyright owner] 189578SSam.Cramer@Sun.COM * 199578SSam.Cramer@Sun.COM * CDDL HEADER END 209578SSam.Cramer@Sun.COM */ 219578SSam.Cramer@Sun.COM 229578SSam.Cramer@Sun.COM /* 239578SSam.Cramer@Sun.COM * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 249578SSam.Cramer@Sun.COM * Use is subject to license terms. 259578SSam.Cramer@Sun.COM */ 269578SSam.Cramer@Sun.COM 27*9625SSam.Cramer@Sun.COM #pragma D depends_on module genunix 28*9625SSam.Cramer@Sun.COM #pragma D depends_on module stmf 29*9625SSam.Cramer@Sun.COM 309578SSam.Cramer@Sun.COM /* 319578SSam.Cramer@Sun.COM * The scsicmd_t structure should be used by providers 329578SSam.Cramer@Sun.COM * to represent a SCSI command block (cdb). 339578SSam.Cramer@Sun.COM */ 349578SSam.Cramer@Sun.COM typedef struct scsicmd { 359578SSam.Cramer@Sun.COM uint64_t ic_len; /* CDB length */ 369578SSam.Cramer@Sun.COM uint8_t *ic_cdb; /* CDB data */ 379578SSam.Cramer@Sun.COM } scsicmd_t; 389578SSam.Cramer@Sun.COM 399578SSam.Cramer@Sun.COM /* 409578SSam.Cramer@Sun.COM * Translator for scsicmd_t, translating from a scsi_task_t 419578SSam.Cramer@Sun.COM */ 429578SSam.Cramer@Sun.COM #pragma D binding "1.5" translator 439578SSam.Cramer@Sun.COM translator scsicmd_t < scsi_task_t *T > { 449578SSam.Cramer@Sun.COM ic_len = T->task_cdb_length; 459578SSam.Cramer@Sun.COM ic_cdb = T->task_cdb; 469578SSam.Cramer@Sun.COM }; 47