PLC
u_short st = inpw(PLC(PB,PL_INTR_EVENT)) ;
u_short st = inpw(PLC(PA,PL_INTR_EVENT)) ;
SETMASK(PLC(np,PL_CNTRL_B),PL_MAINT,PL_MAINT) ;
outpw(PLC(np,PL_CNTRL_A),PL_SC_BYPASS) ;
cntrl = (inpw(PLC(phy,PL_CNTRL_B)) & ~PL_MAINT_LS) |
outpw(PLC(phy,PL_CNTRL_B),cntrl) ;
errors = inpw(PLC(((int) phy->np),PL_LINK_ERR_CTR)) ;
errors = inpw(PLC(((int)phy->np),PL_LINK_ERR_CTR)) ;
outpw(PLC(np,PL_LE_THRESHOLD),threshold) ;
(void)inpw(PLC(np,PL_LINK_ERR_CTR)) ; /* clear error counter */
SETMASK(PLC(np,PL_INTR_MASK),PL_LE_CTR,PL_LE_CTR) ;
CLEAR(PLC(np,PL_INTR_MASK),PL_LE_CTR) ;
outpw(PLC((int)phy->np,PL_LC_LENGTH), TP_LC_LENGTH ) ;
outpw(PLC((int)phy->np,PL_LC_LENGTH), TP_LC_LONGLN ) ;
SETMASK(PLC((int)phy->np,PL_CNTRL_B),PL_LONG,PL_LONG) ;
SETMASK(PLC((int)phy->np,PL_CNTRL_B),PL_LONG,PL_LONG) ;
((inpw(PLC(np,PL_STATUS_A)) & PLC_REV_MASK) ==
outpw(PLC(np,PL_INTR_MASK),corr_mask);
j = inpw(PLC(np,PL_LE_THRESHOLD)) ;
i = inpw(PLC(np,PL_LINK_ERR_CTR)) ;
switch (inpw(PLC(np,PL_CNTRL_B)) & PL_MATCH_LS) {
reason = inpw(PLC(np,PL_STATUS_B)) & PL_BREAK_REASON ;
n = inpw(PLC(np,PL_RCV_VECTOR)) ;
switch (inpw(PLC(np,PL_STATUS_B)) & PL_PCM_STATE) {
switch (inpw(PLC(np,PL_STATUS_A)) & PL_LINE_ST) {
switch (inpw(PLC(np,PL_STATUS_B)) & PL_PCM_STATE) {
outpw(PLC(p,PL_CNTRL_B),0) ;
outpw(PLC(p,PL_CNTRL_B),PL_PCM_STOP) ;
outpw(PLC(p,PL_CNTRL_A),0) ;
rev = inpw(PLC(p,PL_STATUS_A)) & PLC_REV_MASK ;
outpw(PLC(p,PL_CNTRL_C),PLCS_CONTROL_C_S) ;
outpw(PLC(p,PL_T_FOT_ASS),PLCS_FASSERT_S) ;
outpw(PLC(p,PL_T_FOT_DEASS),PLCS_FDEASSERT_S) ;
outpw(PLC(p,PL_CNTRL_C),PLCS_CONTROL_C_U) ;
outpw(PLC(p,PL_T_FOT_ASS),PLCS_FASSERT_U) ;
outpw(PLC(p,PL_T_FOT_DEASS),PLCS_FDEASSERT_U) ;
outpw(PLC(p,pltm[i].timer),pltm[i].para) ;
(void)inpw(PLC(p,PL_INTR_EVENT)) ; /* clear interrupt event reg */
outpw(PLC(p,PL_INTR_MASK),plc_imsk_na); /* enable non active irq's */
outpw(PLC(p,PL_CNTRL_B),PL_CLASS_S) ;
port = (HW_PTR) (PLC(p,PL_CNTRL_B)) ;
state = inpw(PLC(phy,PL_STATUS_A)) & PL_LINE_ST ;
if (inpw(PLC(np,PL_STATUS_B)) & PL_PCM_SIGNAL) {
outpw(PLC(np,PL_VECTOR_LEN),len-1) ; /* len=nr-1 */
outpw(PLC(np,PL_XMIT_VECTOR),n) ;
SETMASK(PLC(PA,PL_CNTRL_B),PL_CONFIG_CNTRL,PL_CONFIG_CNTRL) ;
SETMASK(PLC(PA,PL_CNTRL_A),PL_SC_REM_LOOP,PL_SC_REM_LOOP) ;
CLEAR(PLC(PA,PL_CNTRL_B),PL_CONFIG_CNTRL) ;
CLEAR(PLC(PA,PL_CNTRL_A),PL_SC_REM_LOOP) ;
CLEAR(PLC(PB,PL_CNTRL_B),PL_CONFIG_CNTRL) ;
CLEAR(PLC(PB,PL_CNTRL_A),PL_SC_REM_LOOP) ;
CLEAR(PLC(np,PL_CNTRL_B),PL_LONG) ;
outpw(PLC(np,PL_CNTRL_A),0) ;
CLEAR(PLC(np,PL_CNTRL_B),PL_PC_JOIN) ;
CLEAR(PLC(np,PL_CNTRL_B),PL_LONG) ;
CLEAR(PLC(np,PL_CNTRL_B),PL_PC_JOIN) ;
CLEAR(PLC(np,PL_CNTRL_B),PL_LONG) ;
if (inpw(PLC(np,PL_STATUS_B)) & PL_PCM_SIGNAL) {
outpw(PLC(np,PL_INTR_MASK),plc_imsk_na) ;
(void)inpw(PLC(np,PL_INTR_EVENT)) ;
plc_rev = inpw(PLC(np,PL_STATUS_A)) & PLC_REV_MASK ;
if (!(inpw(PLC(np,PL_STATUS_B)) & PL_PCM_SIGNAL))
if (((inpw(PLC(np,PL_STATUS_A)) & PLC_REV_MASK) !=
!(inpw(PLC(np,PL_STATUS_B)) & PL_PCM_SIGNAL))
i = inpw(PLC(np,PL_CNTRL_B)) & ~PL_PC_LOOP ;
outpw(PLC(np,PL_CNTRL_B),i) ; /* must be cleared */
outpw(PLC(np,PL_CNTRL_B),i | PL_RLBP) ;
SETMASK(PLC(np,PL_CNTRL_A),
SETMASK(PLC(np,PL_CNTRL_B),
SETMASK(PLC(np,PL_CNTRL_B),PL_PC_JOIN,PL_PC_JOIN) ;
SETMASK(PLC(np,PL_CNTRL_B),PL_PC_JOIN,PL_PC_JOIN) ;
outpw(PLC(np,PL_INTR_MASK),plc_imsk_act) ;
CLEAR(PLC(np,PL_CNTRL_B),PL_PC_JOIN) ;
CLEAR(PLC(np,PL_CNTRL_B),PL_LONG) ;
CLEAR(PLC(np,PL_INTR_MASK),PL_LE_CTR) ; /* disable LEM int. */