1 /* @(#)rand_rw.h	1.3 96/06/23 Copyright 1993 J. Schilling */
2 /*
3  *	Copyright (c) 1993 J. Schilling
4  */
5 /*
6  * The contents of this file are subject to the terms of the
7  * Common Development and Distribution License, Version 1.0 only
8  * (the "License").  You may not use this file except in compliance
9  * with the License.
10  *
11  * See the file CDDL.Schily.txt in this distribution for details.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file CDDL.Schily.txt from this distribution.
15  */
16 
17 /*
18  * Return-CODES
19  */
20 #define	BREAK			(0xFF)
21 #define	SYS_ERR			(0xF0)
22 #define	DRV_ERR			(0x0F)
23 
24 #define	OK			(0x00)
25 
26 #define	READ_FAULT		(0x01)
27 #define	WRITE_FAULT		(0x02)
28 #define	VERIFY_FAULT		(0x04)
29 #define	SEEK_FAULT		(0x08)
30 
31 #define	NO_FAULT		(0x10)	/* not reproducable fault */
32 #define	SOFT_FAULT		(0x20)	/* partially reproducable fault */
33 #define	HARD_FAULT		(0x40)	/* constant fault */
34 #define	DATA_LOST		(0x80)
35 
36 struct bb_list {
37 	int		count;
38 	u_long		block;
39 	u_char		code;
40 };
41