fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * CDDL HEADER START
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * The contents of this file are subject to the terms of the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Common Development and Distribution License (the "License").
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * You may not use this file except in compliance with the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * and limitations under the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * When distributing Covered Code, include this CDDL HEADER in each
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * If applicable, add the following below this CDDL HEADER, with the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * fields enclosed by brackets "[]" replaced with your own identifying
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * information: Portions Copyright [yyyy] [name of copyright owner]
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * CDDL HEADER END
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Use is subject to license terms.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * local SCSI definitions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Include any headers you depend on.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * I18N message number ranges
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * This file: 18500 - 18999
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Shared common messages: 1 - 1999
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte/* NOTE: These command op codes are not defined in commands.h */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Structure for MODE SELECT/SENSE 10 byte page header
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte uchar_t device_specific; /* device specfic parameters */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ushort_t bdesc_length; /* length of block descriptor(s), if any */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte struct mode_page mode_page; /* common mode page header */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#error One of _BIT_FIELDS_LTOH or _BIT_FIELDS_HTOL must be defined
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif /* _BIT_FIELDS_LTOH */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte struct mode_page mode_page; /* common mode page header */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte uchar_t awre : 1, /* auto write realloc enabled */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#error One of _BIT_FIELDS_LTOH or _BIT_FIELDS_HTOL must be defined
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif /* _BIT_FIELDS_LTOH */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * I define here for backward compatability
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * with 2.5.1
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * For 2.6 & above you can use "mode_caching"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte struct mode_page mode_page; /* common mode page header */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte uchar_t write_ret_prio : 4, /* Write Retention Priority */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte dmd_rd_ret_prio : 4; /* Demand Read Retention Priority */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte uchar_t dmd_rd_ret_prio : 4, /* Demand Read Retention Priority */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte write_ret_prio : 4; /* Write Retention Priority */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#error One of _BIT_FIELDS_LTOH or _BIT_FIELDS_HTOL must be defined
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif /* _BIT_FIELDS_LTOH */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ushort_t pf_dsbl_trans_len; /* Disable prefetch Xfer len. */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ushort_t max_prefetch_ceiling; /* Maximum Prefetch Ceiling */
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * SCSI CDB structures
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortetypedef struct {
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Bits 7-5 are the Peripheral Device Qualifier
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte * Bits 4-0 are the Peripheral Device Type
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#endif /* _G_SCSI_H */