162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2010 ASIX Electronics Corporation
462306a36Sopenharmony_ci * Copyright (c) 2020 Samsung Electronics Co., Ltd.
562306a36Sopenharmony_ci *
662306a36Sopenharmony_ci * ASIX AX88796C SPI Fast Ethernet Linux driver
762306a36Sopenharmony_ci */
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci#ifndef _AX88796C_IOCTL_H
1062306a36Sopenharmony_ci#define _AX88796C_IOCTL_H
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci#include <linux/ethtool.h>
1362306a36Sopenharmony_ci#include <linux/netdevice.h>
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ci#include "ax88796c_main.h"
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ciextern const struct ethtool_ops ax88796c_ethtool_ops;
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_cibool ax88796c_check_power(const struct ax88796c_device *ax_local);
2062306a36Sopenharmony_cibool ax88796c_check_power_and_wake(struct ax88796c_device *ax_local);
2162306a36Sopenharmony_civoid ax88796c_set_power_saving(struct ax88796c_device *ax_local, u8 ps_level);
2262306a36Sopenharmony_ciint ax88796c_mdio_read(struct mii_bus *mdiobus, int phy_id, int loc);
2362306a36Sopenharmony_ciint ax88796c_mdio_write(struct mii_bus *mdiobus, int phy_id, int loc, u16 val);
2462306a36Sopenharmony_ciint ax88796c_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd);
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ci#endif
27