forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/arch/mips/include/asm/octeon/cvmx-helper.h
....@@ -51,7 +51,7 @@
5151 CVMX_HELPER_INTERFACE_MODE_LOOP,
5252 } cvmx_helper_interface_mode_t;
5353
54
-typedef union {
54
+union cvmx_helper_link_info {
5555 uint64_t u64;
5656 struct {
5757 uint64_t reserved_20_63:44;
....@@ -59,7 +59,7 @@
5959 uint64_t full_duplex:1; /**< 1 if the link is full duplex */
6060 uint64_t speed:18; /**< Speed of the link in Mbps */
6161 } s;
62
-} cvmx_helper_link_info_t;
62
+};
6363
6464 #include <asm/octeon/cvmx-helper-errata.h>
6565 #include <asm/octeon/cvmx-helper-loop.h>
....@@ -69,26 +69,6 @@
6969 #include <asm/octeon/cvmx-helper-spi.h>
7070 #include <asm/octeon/cvmx-helper-util.h>
7171 #include <asm/octeon/cvmx-helper-xaui.h>
72
-
73
-/**
74
- * cvmx_override_pko_queue_priority(int ipd_port, uint64_t
75
- * priorities[16]) is a function pointer. It is meant to allow
76
- * customization of the PKO queue priorities based on the port
77
- * number. Users should set this pointer to a function before
78
- * calling any cvmx-helper operations.
79
- */
80
-extern void (*cvmx_override_pko_queue_priority) (int pko_port,
81
- uint64_t priorities[16]);
82
-
83
-/**
84
- * cvmx_override_ipd_port_setup(int ipd_port) is a function
85
- * pointer. It is meant to allow customization of the IPD port
86
- * setup before packet input/output comes online. It is called
87
- * after cvmx-helper does the default IPD configuration, but
88
- * before IPD is enabled. Users should set this pointer to a
89
- * function before calling any cvmx-helper operations.
90
- */
91
-extern void (*cvmx_override_ipd_port_setup) (int ipd_port);
9272
9373 /**
9474 * This function enables the IPD and also enables the packet interfaces.
....@@ -165,7 +145,7 @@
165145 *
166146 * Returns Link state
167147 */
168
-extern cvmx_helper_link_info_t cvmx_helper_link_get(int ipd_port);
148
+extern union cvmx_helper_link_info cvmx_helper_link_get(int ipd_port);
169149
170150 /**
171151 * Configure an IPD/PKO port for the specified link state. This
....@@ -179,7 +159,7 @@
179159 * Returns Zero on success, negative on failure
180160 */
181161 extern int cvmx_helper_link_set(int ipd_port,
182
- cvmx_helper_link_info_t link_info);
162
+ union cvmx_helper_link_info link_info);
183163
184164 /**
185165 * This function probes an interface to determine the actual
....@@ -194,21 +174,5 @@
194174 */
195175 extern int cvmx_helper_interface_probe(int interface);
196176 extern int cvmx_helper_interface_enumerate(int interface);
197
-
198
-/**
199
- * Configure a port for internal and/or external loopback. Internal loopback
200
- * causes packets sent by the port to be received by Octeon. External loopback
201
- * causes packets received from the wire to sent out again.
202
- *
203
- * @ipd_port: IPD/PKO port to loopback.
204
- * @enable_internal:
205
- * Non zero if you want internal loopback
206
- * @enable_external:
207
- * Non zero if you want external loopback
208
- *
209
- * Returns Zero on success, negative on failure.
210
- */
211
-extern int cvmx_helper_configure_loopback(int ipd_port, int enable_internal,
212
- int enable_external);
213177
214178 #endif /* __CVMX_HELPER_H__ */