/* @(#)rand_rw.h	1.3 96/06/23 Copyright 1993 J. Schilling */
/*
 *	Copyright (c) 1993 J. Schilling
 */
/* This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; see the file COPYING.  If not, write to
 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 
 */

/*
 * Return-CODES
 */
#define	BREAK			(0xFF)
#define	SYS_ERR			(0xF0)
#define	DRV_ERR			(0x0F)

#define	OK			(0x00)

#define	READ_FAULT		(0x01)
#define	WRITE_FAULT		(0x02)
#define	VERIFY_FAULT		(0x04)
#define	SEEK_FAULT		(0x08)

#define	NO_FAULT		(0x10)	/* not reproducable fault */
#define	SOFT_FAULT		(0x20)	/* partially reproducable fault */
#define	HARD_FAULT		(0x40)	/* constant fault */
#define	DATA_LOST		(0x80)

struct bb_list {
	int		count;
	u_long		block;
	u_char		code;
};
