1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * This file is based on code from OCTEON SDK by Cavium Networks.
4  *
5  * Copyright (c) 2003-2007 Cavium Networks
6  *
7  * This file is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License, Version 2, as
9  * published by the Free Software Foundation.
10  */
11 
12 #include <linux/module.h>
13 #include <linux/kernel.h>
14 #include <linux/netdevice.h>
15 #include <linux/etherdevice.h>
16 #include <linux/ip.h>
17 #include <linux/string.h>
18 #include <linux/ethtool.h>
19 #include <linux/seq_file.h>
20 #include <linux/proc_fs.h>
21 #include <net/dst.h>
22 #ifdef CONFIG_XFRM
23 #include <linux/xfrm.h>
24 #include <net/xfrm.h>
25 #endif /* CONFIG_XFRM */
26 
27 extern const struct ethtool_ops cvm_oct_ethtool_ops;
28 
29 void octeon_mdiobus_force_mod_depencency(void);
30 
31 int cvm_oct_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);
32 int cvm_oct_phy_setup_device(struct net_device *dev);
33