Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright (c) 2010 ASIX Electronics Corporation
0004  * Copyright (c) 2020 Samsung Electronics Co., Ltd.
0005  *
0006  * ASIX AX88796C SPI Fast Ethernet Linux driver
0007  */
0008 
0009 #ifndef _AX88796C_IOCTL_H
0010 #define _AX88796C_IOCTL_H
0011 
0012 #include <linux/ethtool.h>
0013 #include <linux/netdevice.h>
0014 
0015 #include "ax88796c_main.h"
0016 
0017 extern const struct ethtool_ops ax88796c_ethtool_ops;
0018 
0019 bool ax88796c_check_power(const struct ax88796c_device *ax_local);
0020 bool ax88796c_check_power_and_wake(struct ax88796c_device *ax_local);
0021 void ax88796c_set_power_saving(struct ax88796c_device *ax_local, u8 ps_level);
0022 int ax88796c_mdio_read(struct mii_bus *mdiobus, int phy_id, int loc);
0023 int ax88796c_mdio_write(struct mii_bus *mdiobus, int phy_id, int loc, u16 val);
0024 int ax88796c_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd);
0025 
0026 #endif