Annotation of sys/arch/hp300/dev/hdvar.h, Revision 1.1
1.1 ! nbrk 1: /* $OpenBSD: hdvar.h,v 1.10 2007/02/21 22:32:05 miod Exp $ */
! 2: /* $NetBSD: rdvar.h,v 1.6 1997/01/30 09:14:19 thorpej Exp $ */
! 3:
! 4: /*
! 5: * Copyright (c) 1988 University of Utah.
! 6: * Copyright (c) 1982, 1990, 1993
! 7: * The Regents of the University of California. All rights reserved.
! 8: *
! 9: * This code is derived from software contributed to Berkeley by
! 10: * the Systems Programming Group of the University of Utah Computer
! 11: * Science Department.
! 12: *
! 13: * Redistribution and use in source and binary forms, with or without
! 14: * modification, are permitted provided that the following conditions
! 15: * are met:
! 16: * 1. Redistributions of source code must retain the above copyright
! 17: * notice, this list of conditions and the following disclaimer.
! 18: * 2. Redistributions in binary form must reproduce the above copyright
! 19: * notice, this list of conditions and the following disclaimer in the
! 20: * documentation and/or other materials provided with the distribution.
! 21: * 3. Neither the name of the University nor the names of its contributors
! 22: * may be used to endorse or promote products derived from this software
! 23: * without specific prior written permission.
! 24: *
! 25: * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
! 26: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
! 27: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
! 28: * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
! 29: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
! 30: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
! 31: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
! 32: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
! 33: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
! 34: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
! 35: * SUCH DAMAGE.
! 36: *
! 37: * from: Utah $Hdr: rdvar.h 1.1 92/12/21$
! 38: *
! 39: * @(#)rdvar.h 8.1 (Berkeley) 6/10/93
! 40: */
! 41:
! 42: struct hdidentinfo {
! 43: short ri_hwid; /* 2 byte HW id */
! 44: short ri_maxunum; /* maximum allowed unit number */
! 45: char *ri_desc; /* drive type description */
! 46: int ri_nbpt; /* DEV_BSIZE blocks per track */
! 47: int ri_ntpc; /* tracks per cylinder */
! 48: int ri_ncyl; /* cylinders per unit */
! 49: int ri_nblocks; /* DEV_BSIZE blocks on disk */
! 50: };
! 51:
! 52: struct hdstats {
! 53: long hdretries;
! 54: long hdtimeouts;
! 55: long hdpolltries;
! 56: long hdpollwaits;
! 57: };
! 58:
! 59: struct hd_softc {
! 60: struct device sc_dev;
! 61: struct disk sc_dkdev;
! 62: int sc_slave; /* HP-IB slave */
! 63: int sc_punit; /* physical unit on slave */
! 64: int sc_flags;
! 65: short sc_type;
! 66: char *sc_addr;
! 67: int sc_resid;
! 68: int sc_errcnt;
! 69: struct hpibqueue sc_hq; /* hpib job queue entry */
! 70: struct hd_iocmd sc_ioc;
! 71: struct hd_rscmd sc_rsc;
! 72: struct hd_stat sc_stat;
! 73: struct buf sc_tab; /* buffer queue */
! 74: #ifdef DEBUG
! 75: struct hdstats sc_stats;
! 76: #endif
! 77: struct timeout sc_timeout;
! 78: };
! 79:
! 80: /* sc_flags values */
! 81: #define HDF_SEEK 0x01
! 82: #define HDF_SWAIT 0x02
! 83: #define HDF_OPENING 0x04
! 84: #define HDF_CLOSING 0x08
! 85: #define HDF_WANTED 0x10
! 86: #define HDF_WLABEL 0x20
! 87:
! 88: #ifdef _KERNEL
! 89: extern const struct hdidentinfo hdidentinfo[];
! 90: #endif
CVSweb