Home | History | Annotate | Line # | Download | only in dev
mb86601reg.h revision 1.1
      1  1.1  oki /*	$NetBSD: mb86601reg.h,v 1.1 1997/10/19 09:29:25 oki Exp $	*/
      2  1.1  oki 
      3  1.1  oki /*
      4  1.1  oki  * Copyright (c) 1990, 1993
      5  1.1  oki  *	The Regents of the University of California.  All rights reserved.
      6  1.1  oki  *
      7  1.1  oki  * This code is derived from software contributed to Berkeley by
      8  1.1  oki  * Van Jacobson of Lawrence Berkeley Laboratory.
      9  1.1  oki  *
     10  1.1  oki  * Redistribution and use in source and binary forms, with or without
     11  1.1  oki  * modification, are permitted provided that the following conditions
     12  1.1  oki  * are met:
     13  1.1  oki  * 1. Redistributions of source code must retain the above copyright
     14  1.1  oki  *    notice, this list of conditions and the following disclaimer.
     15  1.1  oki  * 2. Redistributions in binary form must reproduce the above copyright
     16  1.1  oki  *    notice, this list of conditions and the following disclaimer in the
     17  1.1  oki  *    documentation and/or other materials provided with the distribution.
     18  1.1  oki  * 3. All advertising materials mentioning features or use of this software
     19  1.1  oki  *    must display the following acknowledgement:
     20  1.1  oki  *	This product includes software developed by the University of
     21  1.1  oki  *	California, Berkeley and its contributors.
     22  1.1  oki  * 4. Neither the name of the University nor the names of its contributors
     23  1.1  oki  *    may be used to endorse or promote products derived from this software
     24  1.1  oki  *    without specific prior written permission.
     25  1.1  oki  *
     26  1.1  oki  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     27  1.1  oki  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     28  1.1  oki  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     29  1.1  oki  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     30  1.1  oki  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     31  1.1  oki  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     32  1.1  oki  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     33  1.1  oki  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     34  1.1  oki  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     35  1.1  oki  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     36  1.1  oki  * SUCH DAMAGE.
     37  1.1  oki  *
     38  1.1  oki  *	@(#)scsireg.h	8.1 (Berkeley) 6/10/93
     39  1.1  oki  */
     40  1.1  oki 
     41  1.1  oki /*
     42  1.1  oki  * FUJITSU MB86601A SCSI Protocol Controler Hardware Description.
     43  1.1  oki  */
     44  1.1  oki 
     45  1.1  oki struct mb86601 {
     46  1.1  oki 	u_char	p32, scsi_bdid;
     47  1.1  oki 	u_char	p34, scsi_sctl;
     48  1.1  oki #define			SCTL_DISABLE	0x80
     49  1.1  oki #define			SCTL_CTRLRST	0x40
     50  1.1  oki #define			SCTL_DIAG	0x20
     51  1.1  oki #define			SCTL_ABRT_ENAB	0x10
     52  1.1  oki #define			SCTL_PARITY_ENAB 0x08
     53  1.1  oki #define			SCTL_SEL_ENAB	0x04
     54  1.1  oki #define			SCTL_RESEL_ENAB	0x02
     55  1.1  oki #define			SCTL_INTR_ENAB	0x01
     56  1.1  oki 	u_char	p36, scsi_scmd;
     57  1.1  oki #define			SCMD_RST	0x10
     58  1.1  oki #define			SCMD_ICPT_XFR	0x08
     59  1.1  oki #define			SCMD_PROG_XFR	0x04
     60  1.1  oki #define			SCMD_PAD	0x01	/* if initiator */
     61  1.1  oki #define			SCMD_PERR_STOP	0x01	/* if target */
     62  1.1  oki 			/* command codes */
     63  1.1  oki #define			SCMD_BUS_REL	0x00
     64  1.1  oki #define			SCMD_SELECT	0x20
     65  1.1  oki #define			SCMD_RST_ATN	0x40
     66  1.1  oki #define			SCMD_SET_ATN	0x60
     67  1.1  oki #define			SCMD_XFR	0x80
     68  1.1  oki #define			SCMD_XFR_PAUSE	0xa0
     69  1.1  oki #define			SCMD_RST_ACK	0xc0
     70  1.1  oki #define			SCMD_SET_ACK	0xe0
     71  1.1  oki 	u_char	p38, scsi_tmod;
     72  1.1  oki #define			TMOD_SYNC	0x80
     73  1.1  oki 	u_char	p40, scsi_ints;
     74  1.1  oki #define			INTS_SEL	0x80
     75  1.1  oki #define			INTS_RESEL	0x40
     76  1.1  oki #define			INTS_DISCON	0x20
     77  1.1  oki #define			INTS_CMD_DONE	0x10
     78  1.1  oki #define			INTS_SRV_REQ	0x08
     79  1.1  oki #define			INTS_TIMEOUT	0x04
     80  1.1  oki #define			INTS_HARD_ERR	0x02
     81  1.1  oki #define			INTS_RST	0x01
     82  1.1  oki 	u_char	p42, scsi_psns;
     83  1.1  oki #define			PSNS_REQ	0x80
     84  1.1  oki #define			PSNS_ACK	0x40
     85  1.1  oki #define			PSNS_ATN	0x20
     86  1.1  oki #define			PSNS_SEL	0x10
     87  1.1  oki #define			PSNS_BSY	0x08
     88  1.1  oki 	u_char	p44, scsi_ssts;
     89  1.1  oki #define			SSTS_INITIATOR	0x80
     90  1.1  oki #define			SSTS_TARGET	0x40
     91  1.1  oki #define			SSTS_BUSY	0x20
     92  1.1  oki #define			SSTS_XFR	0x10
     93  1.1  oki #define			SSTS_ACTIVE	(SSTS_INITIATOR|SSTS_XFR)
     94  1.1  oki #define			SSTS_RST	0x08
     95  1.1  oki #define			SSTS_TCZERO	0x04
     96  1.1  oki #define			SSTS_DREG_FULL	0x02
     97  1.1  oki #define			SSTS_DREG_EMPTY	0x01
     98  1.1  oki 	u_char	p46, scsi_serr;
     99  1.1  oki #define			SERR_SCSI_PAR	0x80
    100  1.1  oki #define			SERR_SPC_PAR	0x40
    101  1.1  oki #define			SERR_TC_PAR	0x08
    102  1.1  oki #define			SERR_PHASE_ERR	0x04
    103  1.1  oki #define			SERR_SHORT_XFR	0x02
    104  1.1  oki #define			SERR_OFFSET	0x01
    105  1.1  oki 	u_char	p48, scsi_pctl;
    106  1.1  oki #define			PCTL_BFINT_ENAB	0x80
    107  1.1  oki 	u_char	p50, scsi_mbc;
    108  1.1  oki 	u_char	p52, scsi_dreg;
    109  1.1  oki 	u_char	p54, scsi_temp;
    110  1.1  oki 	u_char	p56, scsi_tch;
    111  1.1  oki 	u_char	p58, scsi_tcm;
    112  1.1  oki 	u_char	p60, scsi_tcl;
    113  1.1  oki 	u_char	p62, scsi_exbf;
    114  1.1  oki };
    115