/* ks8695_get_pause - Retrieve network pause/flow-control advertising @ndev: The device to retrieve settings from  */
static void ks8695_get_pause(struct net_device *ndev, struct ethtool_pauseparam *param)
/* ks8695_get_pause - Retrieve network pause/flow-control advertising @ndev: The device to retrieve settings from  */
static void ks8695_get_pause(struct net_device *ndev, struct ethtool_pauseparam *param)
{
	struct ks8695_priv *ksp = netdev_priv(ndev);
	u32 ctrl;
	switch (ksp->dtype) {
	case KS8695_DTYPE_HPNA:
		return;
	case KS8695_DTYPE_WAN:
		ctrl = readl(ksp->phyiface_regs + KS8695_WMC);
		param->autoneg = (ctrl & WMC_WANAP);
		ctrl = ks8695_readreg(ksp, KS8695_DRXC);
		param->rx_pause = (ctrl & DRXC_RFCE);
		ctrl = ks8695_readreg(ksp, KS8695_DTXC);
		param->tx_pause = (ctrl & DTXC_TFCE);
		break;
	case KS8695_DTYPE_LAN:
		return;
	}
}