forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/net/ethernet/cavium/liquidio/liquidio_common.h
....@@ -25,17 +25,11 @@
2525
2626 #include "octeon_config.h"
2727
28
-#define LIQUIDIO_PACKAGE ""
2928 #define LIQUIDIO_BASE_MAJOR_VERSION 1
3029 #define LIQUIDIO_BASE_MINOR_VERSION 7
3130 #define LIQUIDIO_BASE_MICRO_VERSION 2
3231 #define LIQUIDIO_BASE_VERSION __stringify(LIQUIDIO_BASE_MAJOR_VERSION) "." \
3332 __stringify(LIQUIDIO_BASE_MINOR_VERSION)
34
-#define LIQUIDIO_MICRO_VERSION "." __stringify(LIQUIDIO_BASE_MICRO_VERSION)
35
-#define LIQUIDIO_VERSION LIQUIDIO_PACKAGE \
36
- __stringify(LIQUIDIO_BASE_MAJOR_VERSION) "." \
37
- __stringify(LIQUIDIO_BASE_MINOR_VERSION) \
38
- "." __stringify(LIQUIDIO_BASE_MICRO_VERSION)
3933
4034 struct lio_version {
4135 u16 major;
....@@ -118,6 +112,10 @@
118112 /* App specific capabilities from firmware to pf driver */
119113 #define LIQUIDIO_TIME_SYNC_CAP 0x1
120114 #define LIQUIDIO_SWITCHDEV_CAP 0x2
115
+#define LIQUIDIO_SPOOFCHK_CAP 0x4
116
+
117
+/* error status return from firmware */
118
+#define OCTEON_REQUEST_NO_PERMISSION 0xc
121119
122120 static inline u32 incr_index(u32 index, u32 count, u32 max)
123121 {
....@@ -241,6 +239,10 @@
241239
242240 #define OCTNET_CMD_QUEUE_COUNT_CTL 0x1f
243241
242
+#define OCTNET_CMD_GROUP1 1
243
+#define OCTNET_CMD_SET_VF_SPOOFCHK 0x1
244
+#define OCTNET_GROUP1_LAST_CMD OCTNET_CMD_SET_VF_SPOOFCHK
245
+
244246 #define OCTNET_CMD_VXLAN_PORT_ADD 0x0
245247 #define OCTNET_CMD_VXLAN_PORT_DEL 0x1
246248 #define OCTNET_CMD_RXCSUM_ENABLE 0x0
....@@ -250,8 +252,17 @@
250252 #define OCTNET_CMD_VLAN_FILTER_ENABLE 0x1
251253 #define OCTNET_CMD_VLAN_FILTER_DISABLE 0x0
252254
255
+#define OCTNET_CMD_FAIL 0x1
256
+
257
+#define SEAPI_CMD_FEC_SET 0x0
258
+#define SEAPI_CMD_FEC_SET_DISABLE 0x0
259
+#define SEAPI_CMD_FEC_SET_RS 0x1
260
+#define SEAPI_CMD_FEC_GET 0x1
261
+
253262 #define SEAPI_CMD_SPEED_SET 0x2
254263 #define SEAPI_CMD_SPEED_GET 0x3
264
+
265
+#define OPCODE_NIC_VF_PORT_STATS 0x22
255266
256267 #define LIO_CMD_WAIT_TM 100
257268
....@@ -301,7 +312,8 @@
301312
302313 u64 more:6; /* How many udd words follow the command */
303314
304
- u64 reserved:29;
315
+ u64 cmdgroup:8;
316
+ u64 reserved:21;
305317
306318 u64 param1:16;
307319
....@@ -313,7 +325,8 @@
313325
314326 u64 param1:16;
315327
316
- u64 reserved:29;
328
+ u64 reserved:21;
329
+ u64 cmdgroup:8;
317330
318331 u64 more:6;
319332
....@@ -757,13 +770,17 @@
757770 #ifdef __BIG_ENDIAN_BITFIELD
758771 u64 gmxport:16;
759772 u64 macaddr_is_admin_asgnd:1;
760
- u64 rsvd:31;
773
+ u64 rsvd:13;
774
+ u64 macaddr_spoofchk:1;
775
+ u64 rsvd1:17;
761776 u64 num_txpciq:8;
762777 u64 num_rxpciq:8;
763778 #else
764779 u64 num_rxpciq:8;
765780 u64 num_txpciq:8;
766
- u64 rsvd:31;
781
+ u64 rsvd1:17;
782
+ u64 macaddr_spoofchk:1;
783
+ u64 rsvd:13;
767784 u64 macaddr_is_admin_asgnd:1;
768785 u64 gmxport:16;
769786 #endif