| .. | .. |
|---|
| 25 | 25 | |
|---|
| 26 | 26 | #include "octeon_config.h" |
|---|
| 27 | 27 | |
|---|
| 28 | | -#define LIQUIDIO_PACKAGE "" |
|---|
| 29 | 28 | #define LIQUIDIO_BASE_MAJOR_VERSION 1 |
|---|
| 30 | 29 | #define LIQUIDIO_BASE_MINOR_VERSION 7 |
|---|
| 31 | 30 | #define LIQUIDIO_BASE_MICRO_VERSION 2 |
|---|
| 32 | 31 | #define LIQUIDIO_BASE_VERSION __stringify(LIQUIDIO_BASE_MAJOR_VERSION) "." \ |
|---|
| 33 | 32 | __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) |
|---|
| 39 | 33 | |
|---|
| 40 | 34 | struct lio_version { |
|---|
| 41 | 35 | u16 major; |
|---|
| .. | .. |
|---|
| 118 | 112 | /* App specific capabilities from firmware to pf driver */ |
|---|
| 119 | 113 | #define LIQUIDIO_TIME_SYNC_CAP 0x1 |
|---|
| 120 | 114 | #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 |
|---|
| 121 | 119 | |
|---|
| 122 | 120 | static inline u32 incr_index(u32 index, u32 count, u32 max) |
|---|
| 123 | 121 | { |
|---|
| .. | .. |
|---|
| 241 | 239 | |
|---|
| 242 | 240 | #define OCTNET_CMD_QUEUE_COUNT_CTL 0x1f |
|---|
| 243 | 241 | |
|---|
| 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 | + |
|---|
| 244 | 246 | #define OCTNET_CMD_VXLAN_PORT_ADD 0x0 |
|---|
| 245 | 247 | #define OCTNET_CMD_VXLAN_PORT_DEL 0x1 |
|---|
| 246 | 248 | #define OCTNET_CMD_RXCSUM_ENABLE 0x0 |
|---|
| .. | .. |
|---|
| 250 | 252 | #define OCTNET_CMD_VLAN_FILTER_ENABLE 0x1 |
|---|
| 251 | 253 | #define OCTNET_CMD_VLAN_FILTER_DISABLE 0x0 |
|---|
| 252 | 254 | |
|---|
| 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 | + |
|---|
| 253 | 262 | #define SEAPI_CMD_SPEED_SET 0x2 |
|---|
| 254 | 263 | #define SEAPI_CMD_SPEED_GET 0x3 |
|---|
| 264 | + |
|---|
| 265 | +#define OPCODE_NIC_VF_PORT_STATS 0x22 |
|---|
| 255 | 266 | |
|---|
| 256 | 267 | #define LIO_CMD_WAIT_TM 100 |
|---|
| 257 | 268 | |
|---|
| .. | .. |
|---|
| 301 | 312 | |
|---|
| 302 | 313 | u64 more:6; /* How many udd words follow the command */ |
|---|
| 303 | 314 | |
|---|
| 304 | | - u64 reserved:29; |
|---|
| 315 | + u64 cmdgroup:8; |
|---|
| 316 | + u64 reserved:21; |
|---|
| 305 | 317 | |
|---|
| 306 | 318 | u64 param1:16; |
|---|
| 307 | 319 | |
|---|
| .. | .. |
|---|
| 313 | 325 | |
|---|
| 314 | 326 | u64 param1:16; |
|---|
| 315 | 327 | |
|---|
| 316 | | - u64 reserved:29; |
|---|
| 328 | + u64 reserved:21; |
|---|
| 329 | + u64 cmdgroup:8; |
|---|
| 317 | 330 | |
|---|
| 318 | 331 | u64 more:6; |
|---|
| 319 | 332 | |
|---|
| .. | .. |
|---|
| 757 | 770 | #ifdef __BIG_ENDIAN_BITFIELD |
|---|
| 758 | 771 | u64 gmxport:16; |
|---|
| 759 | 772 | u64 macaddr_is_admin_asgnd:1; |
|---|
| 760 | | - u64 rsvd:31; |
|---|
| 773 | + u64 rsvd:13; |
|---|
| 774 | + u64 macaddr_spoofchk:1; |
|---|
| 775 | + u64 rsvd1:17; |
|---|
| 761 | 776 | u64 num_txpciq:8; |
|---|
| 762 | 777 | u64 num_rxpciq:8; |
|---|
| 763 | 778 | #else |
|---|
| 764 | 779 | u64 num_rxpciq:8; |
|---|
| 765 | 780 | u64 num_txpciq:8; |
|---|
| 766 | | - u64 rsvd:31; |
|---|
| 781 | + u64 rsvd1:17; |
|---|
| 782 | + u64 macaddr_spoofchk:1; |
|---|
| 783 | + u64 rsvd:13; |
|---|
| 767 | 784 | u64 macaddr_is_admin_asgnd:1; |
|---|
| 768 | 785 | u64 gmxport:16; |
|---|
| 769 | 786 | #endif |
|---|