138451Smsmith/*	$NetBSD: saioctl.h,v 1.2 1994/10/26 05:45:04 cgd Exp $	*/
238451Smsmith
338451Smsmith/*-
438451Smsmith * Copyright (c) 1993
538451Smsmith *	The Regents of the University of California.  All rights reserved.
638451Smsmith *
738451Smsmith * Redistribution and use in source and binary forms, with or without
838451Smsmith * modification, are permitted provided that the following conditions
938451Smsmith * are met:
1038451Smsmith * 1. Redistributions of source code must retain the above copyright
1138451Smsmith *    notice, this list of conditions and the following disclaimer.
1238451Smsmith * 2. Redistributions in binary form must reproduce the above copyright
1338451Smsmith *    notice, this list of conditions and the following disclaimer in the
1438451Smsmith *    documentation and/or other materials provided with the distribution.
1538451Smsmith * 4. Neither the name of the University nor the names of its contributors
1638451Smsmith *    may be used to endorse or promote products derived from this software
1738451Smsmith *    without specific prior written permission.
1838451Smsmith *
1938451Smsmith * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
2038451Smsmith * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2138451Smsmith * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2238451Smsmith * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2338451Smsmith * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2438451Smsmith * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2538451Smsmith * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2638451Smsmith * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2738451Smsmith * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2838451Smsmith * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2938451Smsmith * SUCH DAMAGE.
3038451Smsmith *
3138451Smsmith *	@(#)saioctl.h	8.1 (Berkeley) 6/11/93
32165906Simp *
33165906Simp * $FreeBSD: stable/11/stand/libsa/saioctl.h 329132 2018-02-11 19:51:29Z kevans $
3438451Smsmith */
3538451Smsmith
3638451Smsmith/* ioctl's -- for disks just now */
3738451Smsmith#define	SAIOHDR		(('d'<<8)|1)	/* next i/o includes header */
3838451Smsmith#define	SAIOCHECK	(('d'<<8)|2)	/* next i/o checks data */
3938451Smsmith#define	SAIOHCHECK	(('d'<<8)|3)	/* next i/o checks header & data */
4038451Smsmith#define	SAIONOBAD	(('d'<<8)|4)	/* inhibit bad sector forwarding */
4138451Smsmith#define	SAIODOBAD	(('d'<<8)|5)	/* enable bad sector forwarding */
4238451Smsmith#define	SAIOECCLIM	(('d'<<8)|6)	/* set limit to ecc correction, bits */
4338451Smsmith#define	SAIOECCUNL	(('d'<<8)|7)	/* use standard ecc procedures */
4438451Smsmith#define	SAIORETRIES	(('d'<<8)|8)	/* set retry count for unit */
4538451Smsmith#define	SAIODEVDATA	(('d'<<8)|9)	/* get pointer to pack label */
4638451Smsmith#define	SAIOSSI		(('d'<<8)|10)	/* set skip sector inhibit */
4738451Smsmith#define	SAIONOSSI	(('d'<<8)|11)	/* inhibit skip sector handling */
4838451Smsmith#define	SAIOSSDEV	(('d'<<8)|12)	/* is device skip sector type? */
4938451Smsmith#define	SAIODEBUG	(('d'<<8)|13)	/* enable/disable debugging */
5038451Smsmith#define	SAIOGBADINFO	(('d'<<8)|14)	/* get bad-sector table */
51