27 lines · c
1/* SPDX-License-Identifier: GPL-2.0-only */2/*3 * Copyright (c) 2010 ASIX Electronics Corporation4 * Copyright (c) 2020 Samsung Electronics Co., Ltd.5 *6 * ASIX AX88796C SPI Fast Ethernet Linux driver7 */8 9#ifndef _AX88796C_IOCTL_H10#define _AX88796C_IOCTL_H11 12#include <linux/ethtool.h>13#include <linux/netdevice.h>14 15#include "ax88796c_main.h"16 17extern const struct ethtool_ops ax88796c_ethtool_ops;18 19bool ax88796c_check_power(const struct ax88796c_device *ax_local);20bool ax88796c_check_power_and_wake(struct ax88796c_device *ax_local);21void ax88796c_set_power_saving(struct ax88796c_device *ax_local, u8 ps_level);22int ax88796c_mdio_read(struct mii_bus *mdiobus, int phy_id, int loc);23int ax88796c_mdio_write(struct mii_bus *mdiobus, int phy_id, int loc, u16 val);24int ax88796c_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd);25 26#endif27