/* force line state on a PHY output (only in MAINT state)  */
static void sm_ph_linestate(struct s_smc *smc, int phy, int ls)
/* force line state on a PHY output (only in MAINT state)  */
static void sm_ph_linestate(struct s_smc *smc, int phy, int ls)
{
	int	cntrl ;
	SK_UNUSED(smc) ;
	cntrl = (inpw(PLC(phy,PL_CNTRL_B)) & ~PL_MAINT_LS) |
						PL_PCM_STOP | PL_MAINT ;
	switch(ls) {
	case PC_QLS:
		cntrl |= PL_M_QUI0 ;
		break ;
	case PC_MLS:
		cntrl |= PL_M_MASTR ;
		break ;
	case PC_HLS:
		cntrl |= PL_M_HALT ;
		break ;
	default :
	case PC_ILS:
		cntrl |= PL_M_IDLE ;
		break ;
	case PC_LS_PDR:
		cntrl |= PL_M_TPDR ;
		break ;
	}
	outpw(PLC(phy,PL_CNTRL_B),cntrl) ;
}