1d8c54e3dSSam Cramer /* 2d8c54e3dSSam Cramer * CDDL HEADER START 3d8c54e3dSSam Cramer * 4d8c54e3dSSam Cramer * The contents of this file are subject to the terms of the 5d8c54e3dSSam Cramer * Common Development and Distribution License (the "License"). 6d8c54e3dSSam Cramer * You may not use this file except in compliance with the License. 7d8c54e3dSSam Cramer * 8d8c54e3dSSam Cramer * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9d8c54e3dSSam Cramer * or http://www.opensolaris.org/os/licensing. 10d8c54e3dSSam Cramer * See the License for the specific language governing permissions 11d8c54e3dSSam Cramer * and limitations under the License. 12d8c54e3dSSam Cramer * 13d8c54e3dSSam Cramer * When distributing Covered Code, include this CDDL HEADER in each 14d8c54e3dSSam Cramer * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15d8c54e3dSSam Cramer * If applicable, add the following below this CDDL HEADER, with the 16d8c54e3dSSam Cramer * fields enclosed by brackets "[]" replaced with your own identifying 17d8c54e3dSSam Cramer * information: Portions Copyright [yyyy] [name of copyright owner] 18d8c54e3dSSam Cramer * 19d8c54e3dSSam Cramer * CDDL HEADER END 20d8c54e3dSSam Cramer */ 21d8c54e3dSSam Cramer 22d8c54e3dSSam Cramer /* 23d8c54e3dSSam Cramer * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24d8c54e3dSSam Cramer * Use is subject to license terms. 25d8c54e3dSSam Cramer */ 26d8c54e3dSSam Cramer 27*072f7b95SSam Cramer #pragma D depends_on module genunix 28*072f7b95SSam Cramer #pragma D depends_on module stmf 29*072f7b95SSam Cramer 30d8c54e3dSSam Cramer /* 31d8c54e3dSSam Cramer * The scsicmd_t structure should be used by providers 32d8c54e3dSSam Cramer * to represent a SCSI command block (cdb). 33d8c54e3dSSam Cramer */ 34d8c54e3dSSam Cramer typedef struct scsicmd { 35d8c54e3dSSam Cramer uint64_t ic_len; /* CDB length */ 36d8c54e3dSSam Cramer uint8_t *ic_cdb; /* CDB data */ 37d8c54e3dSSam Cramer } scsicmd_t; 38d8c54e3dSSam Cramer 39d8c54e3dSSam Cramer /* 40d8c54e3dSSam Cramer * Translator for scsicmd_t, translating from a scsi_task_t 41d8c54e3dSSam Cramer */ 42d8c54e3dSSam Cramer #pragma D binding "1.5" translator 43d8c54e3dSSam Cramer translator scsicmd_t < scsi_task_t *T > { 44d8c54e3dSSam Cramer ic_len = T->task_cdb_length; 45d8c54e3dSSam Cramer ic_cdb = T->task_cdb; 46d8c54e3dSSam Cramer }; 47