Low Level Controller
if (!ResL1_SBC (pt))
return (ACK_ACCESS_FAULT);
return (ACK_DONE);
}
/***************************************************************************/
/*
/*
/*
/*
/*
*/
*/
*/
*/
*/
Function: ActL1_SBC ()
Parms : PEI value
purpose : establish L1 link
(= activation)
/***************************************************************************/
EXPORT int
ActL1_SBC (pei)
BYTE
pei;
{
register PEITAB
*pt;
/* return if the addressed device
/* is not operational or not used
/* for LAYER 1 control
*/
*/
*/
if (!(pt = GetPeitab_BASIC (pei)))
return (ACK_NOT_SUPPORTED);
if (!(pt->pt_state & PT_L1_CTRL))
return (ACK_NOT_SUPPORTED);
/* the activation procedure is not */
/* done if the layer 1 link is
/* already established. In that
/* case only an activation
*/
*/
*/
/* indication message is generated */
if (((pt->pt_CI_rec = inp(pt->pt_r_cixr)) & CIR_MASK) != CI_AI)
{
if (pt->pt_ModulMode == PT_MM_TE)
EnaClk_SBC (pt);
if (pt->pt_state & PT_IOM2)
outp (pt->pt_r_cixr, CIXR_TBC | CI_AR | 0x03);
else
outp (pt->pt_r_cixr, CIXR_TBC | CI_AR);
return (ACK_DONE);
}
DECODE_L1_STATUS (pei, pt->pt_CI_rec);
return (ACK_DONE);
}
/***************************************************************************/
/*
/*
/*
/*
/*
*/
*/
*/
*/
*/
Function: ArlL1_SBC ()
Parms : PEI value
purpose : activate local loop
/***************************************************************************/
EXPORT int
Semiconductor Group
312