voltestdrv.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* 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) 1992-1996 by Sun Microsystems, Inc.
* All rights reserved
*/
#ifndef __VOLTESTDRV_H
#define __VOLTESTDRV_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
struct vt_name {
char *vtn_name; /* "label" of the device */
};
struct vt_tag {
};
struct vt_event {
};
struct vt_lab {
int vtl_errno; /* error to generate on block 0 reads. */
char *vtl_label; /* pointer to label */
};
enum vt_evtype {
};
struct vt_status {
union {
/* write error message */
struct ve_wrterr {
int vwe_want; /* data that we wanted */
int vwe_got; /* data that we got */
} vse_u_wrterr;
} vse_un;
};
/*
* vt_vtoc contains information that the vt driver will use to respond to
* DKIOCGVTOC ioctls.
*/
struct vt_vtoc {
int vtvt_errno; /* error to return on DKIOCGVTOC */
};
/*
* Use vt_vtdes to load the vt_vtoc structure into the driver.
*/
struct vt_vtdes {
};
/*
* vt_hdrinfo contains information that the vt driver will use to
* respond to the CDROMREADTOCHDR ioctl.
*/
struct vt_hdrinfo {
int vttoc_errno; /* error for CDROMREADTOCHDR */
};
/*
* Use vt_tochdr to load vt_hdrinfo into the driver using the
* VTIOCSTOCHDR ioctl.
*/
struct vt_tochdr {
};
/*
* Use vt_tedes to load cdrom toc entries and error generation information
* into the vt driver using the VTIOCSTOCENTRIES ioctl.
*/
struct vt_tedes {
int vttd_errno; /* error to return. */
unsigned char vttd_err_track; /* track to gen. error for. */
};
/*
* this test driver uses the same "key" as the vol driver
*/
/*
* the following defines are for backwards compatability
*/
#define VTCTLNAME "voltestdrvctl"
#ifdef __cplusplus
}
#endif
#endif /* __VOLTESTDRV_H */