123301Smckusick /* 229287Smckusick * Copyright (c) 1982, 1986 Regents of the University of California. 3*35325Sbostic * All rights reserved. 423301Smckusick * 5*35325Sbostic * Redistribution and use in source and binary forms are permitted 6*35325Sbostic * provided that the above copyright notice and this paragraph are 7*35325Sbostic * duplicated in all such forms and that any documentation, 8*35325Sbostic * advertising materials, and other materials related to such 9*35325Sbostic * distribution and use acknowledge that the software was developed 10*35325Sbostic * by the University of California, Berkeley. The name of the 11*35325Sbostic * University may not be used to endorse or promote products derived 12*35325Sbostic * from this software without specific prior written permission. 13*35325Sbostic * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 14*35325Sbostic * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 15*35325Sbostic * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 16*35325Sbostic * 17*35325Sbostic * @(#)if_pclreg.h 7.2 (Berkeley) 08/04/88 1823301Smckusick */ 1911817Ssam 2011817Ssam /* 2111817Ssam * DEC CSS PCL-11B Parallel Communications Interface 2211817Ssam */ 2311817Ssam 2411817Ssam struct pcldevice { 2511817Ssam u_short pcl_tcr; /* Transmitter Command Register */ 2611817Ssam u_short pcl_tsr; /* Transmitter Status Register */ 2711817Ssam u_short pcl_tsdb; /* Transmitter Source Data Buffer */ 2811817Ssam short pcl_tsbc; /* Transmitter Source Byte Count */ 2911817Ssam u_short pcl_tsba; /* Transmitter Source Bus Address */ 3011817Ssam u_short pcl_tmmr; /* Transmitter Master/Maint Regs */ 3111817Ssam u_short pcl_tscrc; /* Transmitter Source CRC */ 3211817Ssam u_short pcl_spare; 3311817Ssam u_short pcl_rcr; /* Receiver Command Register */ 3411817Ssam u_short pcl_rsr; /* Receiver Status Register */ 3511817Ssam u_short pcl_rddb; /* Receiver Destination Data Buffer */ 3611817Ssam short pcl_rdbc; /* Receiver Destination Byte Count */ 3711817Ssam u_short pcl_rdba; /* Receiver Destination Bus Address */ 3811817Ssam u_short pcl_rdcrc; /* Receiver Destination CRC */ 3911817Ssam }; 4011817Ssam 4111817Ssam /* Transmitter Command and Status Bits */ 4211817Ssam #define PCL_STTXM (1<<0) /* Start transmission */ 4311817Ssam #define PCL_TXINIT (1<<1) /* Transmitter Initialize */ 4411817Ssam #define PCL_IE (1<<6) /* Interrupt Enable */ 4511817Ssam #define PCL_SNDWD (1<<13) /* Send word */ 4611817Ssam #define PCL_TXNPR (1<<14) /* Transmitter NPR */ 4711817Ssam #define PCL_RIB (1<<15) /* Retry if busy */ 4811817Ssam 4911817Ssam #define PCL_RESPA (3<<0) /* Response A bits (tsr & rsr) */ 5011817Ssam #define PCL_RESPB (3<<2) /* Response B bits (tsr & rsr) */ 5111817Ssam #define PCL_MSTDWN (1<<11) /* Master down */ 5211817Ssam #define PCL_ERR (1<<15) /* Error summary */ 5311817Ssam 5411817Ssam #define PCL_MASTER (1<<8) /* Set MASTER status */ 5511817Ssam #define PCL_AUTOADDR (1<<12) /* Auto time slicing */ 5611817Ssam 5711817Ssam /* Receiver Command and Status Bits */ 5811817Ssam #define PCL_RCVDAT (1<<0) /* Receive data */ 5911817Ssam #define PCL_RCINIT (1<<1) /* Receiver Initialize */ 6011817Ssam #define PCL_RCVWD (1<<13) /* Receive word */ 6111817Ssam #define PCL_RCNPR (1<<14) /* Receive NRP */ 6211817Ssam #define PCL_REJ (1<<15) /* Reject transmission */ 6311817Ssam 6411817Ssam #define PCL_BCOFL (1<<9) /* Byte Counter Overflow */ 6511817Ssam 6611817Ssam #define PCL_TERRBITS "\20\20ERR\17NXL\16MEM_OFL\15TXM_ERR\14MST_DWN\13TIM_OUT\12OVERRUN\11DTI_RDY\10SUC_TXF\07BUSY\06SOREJ\05TBS_BUSY" 6711817Ssam #define PCL_TCSRBITS "\20\20RIB\17TX_NPR\16SND_WD\10RD_SILO\07IE\04DTO_RDY\03INH_ADI\02TX_INIT\01START_TXM" 6811817Ssam 6911817Ssam #define PCL_RERRBITS "\20\20ERR\17NXL\16MEM_OFL\15TXM_ERR\14PARITY\13TIM_OUT\12BC_OFL\11DTO_RDY\10SUC_TXF\07BUSY\06REJ_COMP\05CHN_OPN" 7011817Ssam #define PCL_RCSRBITS "\20\20REJ\17RC_NPR\16RCV_WD\10LD_SILO\07IE\04DTI_RDY\03INH_ADI\02RC_INIT\01RCV_DAT" 71