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