/* ks8695_get_link - Retrieve link status of network interface @ndev: The network interface to retrive the link status of.  */
static u32 ks8695_get_link(struct net_device *ndev)
/* ks8695_get_link - Retrieve link status of network interface @ndev: The network interface to retrive the link status of.  */
static u32 ks8695_get_link(struct net_device *ndev)
{
	struct ks8695_priv *ksp = netdev_priv(ndev);
	u32 ctrl;
	switch (ksp->dtype) {
	case KS8695_DTYPE_HPNA:
		return 1;
	case KS8695_DTYPE_WAN:
		ctrl = readl(ksp->phyiface_regs + KS8695_WMC);
		return ctrl & WMC_WLS;
	case KS8695_DTYPE_LAN:
		return -EOPNOTSUPP;
	}
	return 0;
}