/*
* 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 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _sun_dkio_h
#define _sun_dkio_h
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Structures and definitions for disk io control commands
*/
/*
* Structures used as data by ioctl calls.
*/
/*
* Used for controller info
*/
struct dk_info {
};
/* unit # & NULL (ie - "xyc1") */
/*
* Used for configuration info
*/
struct dk_conf {
};
/*
* Controller types
*/
#define DKC_UNKNOWN 0
/* 1 used to be Interphase 2180 */
/* 3 used to be Interphase 2181 */
/* 4 used to be Xylogics 440 */
/* 9 used to be Xylogics 751 */
/* #define DKC_XB1401 10 does not match dkinfo.c*/
/*
* Flags
*/
/*
* Used for drive info
*/
struct dk_type {
};
/*
* Used for all partitions
*/
struct dk_allmap {
};
/*
* Used for bad sector map
*/
struct dk_badmap {
};
/*
* Definition of a disk's geometry
*/
struct dk_geom {
};
/*
* These defines are for historic compatibility with old drivers.
*/
/*
* Used for generic commands
*/
struct dk_cmd {
};
/*
* Execution flags.
*/
/*
* Used for disk diagnostics
*/
struct dk_diag {
};
/*
* Used for getting disk error log.
*/
struct dk_loghdr {
};
/*
* Disk error log table entry.
*/
struct dk_log {
};
/*
* Dk_log type flags.
*
* FIXME: Really should specify dkd_errno error codes.
* For some reason they're specified in the drivers
* instead of here?? Should also use those here for
* dk_log.type too.
*/
/*
* Used for floppies
*/
struct fdk_char{
};
struct fdk_state {
};
};
/*
* Floppy commands
*/
/*
* Used by FDKGETCHANGE, return state of the sense disk change bit.
*/
/*
* Used by FDK{G, S}ETDRIVECHAR
*/
struct fdk_drive {
};
/*
* Used by FDK{G, S}ETSEARCH
*/
struct fdk_search {
};
/*
* Used by F_RAW
*/
struct fdraw {
};
/*
* Floppy raw commands
*/
/*
* Severity values
*/
#define DK_NOERROR 0
/*
* Error types
*/
/*
* Disk io control commands
*/
#endif /* !_sun_dkio_h */