forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/staging/octeon/octeon-ethernet.h
....@@ -12,8 +12,35 @@
1212 #define OCTEON_ETHERNET_H
1313
1414 #include <linux/of.h>
15
+#include <linux/phy.h>
1516
16
-#include <asm/octeon/cvmx-helper-board.h>
17
+#ifdef CONFIG_CAVIUM_OCTEON_SOC
18
+
19
+#include <asm/octeon/octeon.h>
20
+
21
+#include <asm/octeon/cvmx-asxx-defs.h>
22
+#include <asm/octeon/cvmx-config.h>
23
+#include <asm/octeon/cvmx-fau.h>
24
+#include <asm/octeon/cvmx-gmxx-defs.h>
25
+#include <asm/octeon/cvmx-helper.h>
26
+#include <asm/octeon/cvmx-helper-util.h>
27
+#include <asm/octeon/cvmx-ipd.h>
28
+#include <asm/octeon/cvmx-ipd-defs.h>
29
+#include <asm/octeon/cvmx-npi-defs.h>
30
+#include <asm/octeon/cvmx-pip.h>
31
+#include <asm/octeon/cvmx-pko.h>
32
+#include <asm/octeon/cvmx-pow.h>
33
+#include <asm/octeon/cvmx-scratch.h>
34
+#include <asm/octeon/cvmx-spi.h>
35
+#include <asm/octeon/cvmx-spxx-defs.h>
36
+#include <asm/octeon/cvmx-stxx-defs.h>
37
+#include <asm/octeon/cvmx-wqe.h>
38
+
39
+#else
40
+
41
+#include "octeon-stubs.h"
42
+
43
+#endif
1744
1845 /**
1946 * This is the definition of the Ethernet driver's private
....@@ -33,6 +60,8 @@
3360 * cvmx_helper_interface_mode_t
3461 */
3562 int imode;
63
+ /* PHY mode */
64
+ phy_interface_t phy_mode;
3665 /* List of outstanding tx buffers per queue */
3766 struct sk_buff_head tx_free_list[16];
3867 unsigned int last_speed;
....@@ -62,7 +91,7 @@
6291 int cvm_oct_common_open(struct net_device *dev,
6392 void (*link_poll)(struct net_device *));
6493 void cvm_oct_note_carrier(struct octeon_ethernet *priv,
65
- cvmx_helper_link_info_t li);
94
+ union cvmx_helper_link_info li);
6695 void cvm_oct_link_poll(struct net_device *dev);
6796
6897 extern int always_use_pow;