ax88796c_ioctl.h 845 B

1234567891011121314151617181920212223242526
  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. #ifndef _AX88796C_IOCTL_H
  9. #define _AX88796C_IOCTL_H
  10. #include <linux/ethtool.h>
  11. #include <linux/netdevice.h>
  12. #include "ax88796c_main.h"
  13. extern const struct ethtool_ops ax88796c_ethtool_ops;
  14. bool ax88796c_check_power(const struct ax88796c_device *ax_local);
  15. bool ax88796c_check_power_and_wake(struct ax88796c_device *ax_local);
  16. void ax88796c_set_power_saving(struct ax88796c_device *ax_local, u8 ps_level);
  17. int ax88796c_mdio_read(struct mii_bus *mdiobus, int phy_id, int loc);
  18. int ax88796c_mdio_write(struct mii_bus *mdiobus, int phy_id, int loc, u16 val);
  19. int ax88796c_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd);
  20. #endif