/* spider_net_write_phy_register writes to an arbitrary PHY register via the spider GPCWOPCMD register. We assume the queue does not run full (not more than 15 commands outstanding).  */
static void spider_net_write_phy(struct net_device *netdev, int mii_id, int reg, int val)
/* spider_net_write_phy_register writes to an arbitrary PHY register via the spider GPCWOPCMD register. We assume the queue does not run full (not more than 15 commands outstanding).  */
static void spider_net_write_phy(struct net_device *netdev, int mii_id, int reg, int val)
{
	struct spider_net_card *card = netdev_priv(netdev);
	u32 writevalue;
	writevalue = ((u32)mii_id << 21) |
		((u32)reg << 16) | ((u32)val);
	spider_net_write_reg(card, SPIDER_NET_GPCWOPCMD, writevalue);
}