/* Returns 0 on success, errno on failure (as defined in errno.h)  */
int et131x_ioctl(struct net_device *netdev, struct ifreq *reqbuf, int cmd)
/* Returns 0 on success, errno on failure (as defined in errno.h)  */
int et131x_ioctl(struct net_device *netdev, struct ifreq *reqbuf, int cmd)
{
	int status = 0;
	switch (cmd) {
	case SIOCGMIIPHY:
	case SIOCGMIIREG:
	case SIOCSMIIREG:
		status = et131x_ioctl_mii(netdev, reqbuf, cmd);
		break;
	default:
		status = -EOPNOTSUPP;
	}
	return status;
}