Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / drivers / net / ethernet / asix / ax88796c_ioctl.h
blob34d2a7dcc5eff41530479e460a0289236aa74cc9
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (c) 2010 ASIX Electronics Corporation
4 * Copyright (c) 2020 Samsung Electronics Co., Ltd.
6 * ASIX AX88796C SPI Fast Ethernet Linux driver
7 */
9 #ifndef _AX88796C_IOCTL_H
10 #define _AX88796C_IOCTL_H
12 #include <linux/ethtool.h>
13 #include <linux/netdevice.h>
15 #include "ax88796c_main.h"
17 extern const struct ethtool_ops ax88796c_ethtool_ops;
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);
26 #endif