/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1996-1998 by Sun Microsystems, Inc.
* All rights reserved.
*/
#ifndef _SYS_SCSI_GENERIC_DAD_MODE_H
#define _SYS_SCSI_GENERIC_DAD_MODE_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
*/
/*
* Direct Access Device mode header device specific byte definitions.
*
* On MODE SELECT operations, the effect of the state of the WP bit is unknown,
* else reflects the Write-Protect status of the device.
*
* On MODE SELECT operations, the the DPOFUA bit is reserved and must
* be zero, else on MODE SENSE operations it reflects whether or not
* DPO and FUA bits are supported.
*/
/*
* Direct Access Device Medium Types (for non direct-access magentic tapes)
*/
/*
*/
/*
* Definitions of selected pages
*/
/*
* Page 0x1 - Error Recovery Parameters
*
* Note: This structure is incompatible with previous SCSI
* alternative form of this structure. They can be
* distinguished by the length of data returned
* from a MODE SENSE command.
*/
struct mode_err_recov {
#if defined(_BIT_FIELDS_LTOH)
#elif defined(_BIT_FIELDS_HTOL)
#else
#endif /* _BIT_FIELDS_LTOH */
};
/*
* Page 0x3 - Direct Access Device Format Parameters
*/
struct mode_format {
#if defined(_BIT_FIELDS_LTOH)
#elif defined(_BIT_FIELDS_HTOL)
: 3;
#else
#endif /* _BIT_FIELDS_LTOH */
};
/*
* Page 0x4 - Rigid Disk Drive Geometry Parameters
*/
struct mode_geometry {
#if defined(_BIT_FIELDS_LTOH)
: 6;
#elif defined(_BIT_FIELDS_HTOL)
#else
#endif /* _BIT_FIELDS_LTOH */
};
/*
* Page 0x8 - Caching Page
*
* Note: This structure is incompatible with previous SCSI
* alternative form of this structure. They can be
* distinguished by the length of data returned
* from a MODE SENSE command.
*/
struct mode_cache_scsi3 {
#if defined(_BIT_FIELDS_LTOH)
#elif defined(_BIT_FIELDS_HTOL)
#else
#endif /* _BIT_FIELDS_LTOH */
#if defined(_BIT_FIELDS_LTOH)
#elif defined(_BIT_FIELDS_HTOL)
: 3; /* reserved */
#else
#endif /* _BIT_FIELDS_LTOH */
};
#ifdef __cplusplus
}
#endif
#endif /* _SYS_SCSI_GENERIC_DAD_MODE_H */