/* return status (called by SMT) type state remote phy type remote mac yes/no  */
void pcm_status_state(struct s_smc *smc, int np, int *type, int *state, int *remote, int *mac)
/* return status (called by SMT) type state remote phy type remote mac yes/no  */
void pcm_status_state(struct s_smc *smc, int np, int *type, int *state, int *remote, int *mac)
{
	struct s_phy	*phy = &smc->y[np] ;
	struct fddi_mib_p	*mib ;
	mib = phy->mib ;
	*mac = 0 ;
	*type = mib->fddiPORTMy_Type ;
	*state = mib->fddiPORTConnectState ;
	*remote = mib->fddiPORTNeighborType ;
	switch(mib->fddiPORTPCMState) {
	case PC8_ACTIVE :
		*mac = mib->fddiPORTMacIndicated.R_val ;
		break ;
	}
}