/* s2io_ethtool_getpause_data -Pause frame frame generation and reception. @sp : private member of the device structure, which is a pointer to the s2io_nic structure. @ep : pointer to the structure with pause parameters given by ethtool. Description: Returns the Pause frame generation and reception capability of the NIC. Return value: void  */
static void s2io_ethtool_getpause_data(struct net_device *dev, struct ethtool_pauseparam *ep)
/* s2io_ethtool_getpause_data -Pause frame frame generation and reception. @sp : private member of the device structure, which is a pointer to the s2io_nic structure. @ep : pointer to the structure with pause parameters given by ethtool. Description: Returns the Pause frame generation and reception capability of the NIC. Return value: void  */
static void s2io_ethtool_getpause_data(struct net_device *dev, struct ethtool_pauseparam *ep)
{
	u64 val64;
	struct s2io_nic *sp = netdev_priv(dev);
	struct XENA_dev_config __iomem *bar0 = sp->bar0;
	val64 = readq(&bar0->rmac_pause_cfg);
	if (val64 & RMAC_PAUSE_GEN_ENABLE)
		ep->tx_pause = true;
	if (val64 & RMAC_PAUSE_RX_ENABLE)
		ep->rx_pause = true;
	ep->autoneg = false;
}