1*11817Ssam /* if_pclreg.h 4.1 83/03/31 */ 2*11817Ssam 3*11817Ssam /* 4*11817Ssam * DEC CSS PCL-11B Parallel Communications Interface 5*11817Ssam */ 6*11817Ssam 7*11817Ssam struct pcldevice { 8*11817Ssam u_short pcl_tcr; /* Transmitter Command Register */ 9*11817Ssam u_short pcl_tsr; /* Transmitter Status Register */ 10*11817Ssam u_short pcl_tsdb; /* Transmitter Source Data Buffer */ 11*11817Ssam short pcl_tsbc; /* Transmitter Source Byte Count */ 12*11817Ssam u_short pcl_tsba; /* Transmitter Source Bus Address */ 13*11817Ssam u_short pcl_tmmr; /* Transmitter Master/Maint Regs */ 14*11817Ssam u_short pcl_tscrc; /* Transmitter Source CRC */ 15*11817Ssam u_short pcl_spare; 16*11817Ssam u_short pcl_rcr; /* Receiver Command Register */ 17*11817Ssam u_short pcl_rsr; /* Receiver Status Register */ 18*11817Ssam u_short pcl_rddb; /* Receiver Destination Data Buffer */ 19*11817Ssam short pcl_rdbc; /* Receiver Destination Byte Count */ 20*11817Ssam u_short pcl_rdba; /* Receiver Destination Bus Address */ 21*11817Ssam u_short pcl_rdcrc; /* Receiver Destination CRC */ 22*11817Ssam }; 23*11817Ssam 24*11817Ssam /* Transmitter Command and Status Bits */ 25*11817Ssam #define PCL_STTXM (1<<0) /* Start transmission */ 26*11817Ssam #define PCL_TXINIT (1<<1) /* Transmitter Initialize */ 27*11817Ssam #define PCL_IE (1<<6) /* Interrupt Enable */ 28*11817Ssam #define PCL_SNDWD (1<<13) /* Send word */ 29*11817Ssam #define PCL_TXNPR (1<<14) /* Transmitter NPR */ 30*11817Ssam #define PCL_RIB (1<<15) /* Retry if busy */ 31*11817Ssam 32*11817Ssam #define PCL_RESPA (3<<0) /* Response A bits (tsr & rsr) */ 33*11817Ssam #define PCL_RESPB (3<<2) /* Response B bits (tsr & rsr) */ 34*11817Ssam #define PCL_MSTDWN (1<<11) /* Master down */ 35*11817Ssam #define PCL_ERR (1<<15) /* Error summary */ 36*11817Ssam 37*11817Ssam #define PCL_MASTER (1<<8) /* Set MASTER status */ 38*11817Ssam #define PCL_AUTOADDR (1<<12) /* Auto time slicing */ 39*11817Ssam 40*11817Ssam /* Receiver Command and Status Bits */ 41*11817Ssam #define PCL_RCVDAT (1<<0) /* Receive data */ 42*11817Ssam #define PCL_RCINIT (1<<1) /* Receiver Initialize */ 43*11817Ssam #define PCL_RCVWD (1<<13) /* Receive word */ 44*11817Ssam #define PCL_RCNPR (1<<14) /* Receive NRP */ 45*11817Ssam #define PCL_REJ (1<<15) /* Reject transmission */ 46*11817Ssam 47*11817Ssam #define PCL_BCOFL (1<<9) /* Byte Counter Overflow */ 48*11817Ssam 49*11817Ssam #define PCL_TERRBITS "\20\20ERR\17NXL\16MEM_OFL\15TXM_ERR\14MST_DWN\13TIM_OUT\12OVERRUN\11DTI_RDY\10SUC_TXF\07BUSY\06SOREJ\05TBS_BUSY" 50*11817Ssam #define PCL_TCSRBITS "\20\20RIB\17TX_NPR\16SND_WD\10RD_SILO\07IE\04DTO_RDY\03INH_ADI\02TX_INIT\01START_TXM" 51*11817Ssam 52*11817Ssam #define PCL_RERRBITS "\20\20ERR\17NXL\16MEM_OFL\15TXM_ERR\14PARITY\13TIM_OUT\12BC_OFL\11DTO_RDY\10SUC_TXF\07BUSY\06REJ_COMP\05CHN_OPN" 53*11817Ssam #define PCL_RCSRBITS "\20\20REJ\17RC_NPR\16RCV_WD\10LD_SILO\07IE\04DTI_RDY\03INH_ADI\02RC_INIT\01RCV_DAT" 54