]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/net/ethernet/cavium/liquidio/liquidio_common.h
liquidio CN23XX: code cleanup
[karo-tx-linux.git] / drivers / net / ethernet / cavium / liquidio / liquidio_common.h
index 0d990accb65e20f604373e43b4b52bfea7d4057b..1d2eba757071c4fa714cab2665e11c37c845c19f 100644 (file)
@@ -68,8 +68,6 @@ enum octeon_tag_type {
  */
 #define OPCODE_CORE 0           /* used for generic core operations */
 #define OPCODE_NIC  1           /* used for NIC operations */
-#define OPCODE_LAST OPCODE_NIC
-
 /* Subcodes are used by host driver/apps to identify the sub-operation
  * for the core. They only need to by unique for a given subsystem.
  */
@@ -89,6 +87,10 @@ enum octeon_tag_type {
 #define OPCODE_NIC_TIMESTAMP           0x07
 #define OPCODE_NIC_INTRMOD_CFG         0x08
 #define OPCODE_NIC_IF_CFG              0x09
+#define OPCODE_NIC_VF_DRV_NOTICE       0x0A
+#define VF_DRV_LOADED                  1
+#define VF_DRV_REMOVED                -1
+#define VF_DRV_MACADDR_CHANGED         2
 
 #define CORE_DRV_TEST_SCATTER_OP    0xFFF5
 
@@ -235,6 +237,7 @@ static inline void add_sg_size(struct octeon_sg_entry *sg_entry,
 
 #define   OCTNET_CMD_ID_ACTIVE         0x1a
 
+#define   OCTNET_CMD_SET_VF_LINKSTATE  0x1c
 #define   OCTNET_CMD_VXLAN_PORT_ADD    0x0
 #define   OCTNET_CMD_VXLAN_PORT_DEL    0x1
 #define   OCTNET_CMD_RXCSUM_ENABLE     0x0
@@ -731,13 +734,15 @@ struct oct_link_info {
 
 #ifdef __BIG_ENDIAN_BITFIELD
        u64 gmxport:16;
-       u64 rsvd:32;
+       u64 macaddr_is_admin_asgnd:1;
+       u64 rsvd:31;
        u64 num_txpciq:8;
        u64 num_rxpciq:8;
 #else
        u64 num_rxpciq:8;
        u64 num_txpciq:8;
-       u64 rsvd:32;
+       u64 rsvd:31;
+       u64 macaddr_is_admin_asgnd:1;
        u64 gmxport:16;
 #endif