Merge tag 'mt76-for-kvalo-2021-01-29' of https://github.com/nbd168/wireless
[linux-2.6-microblaze.git] / drivers / net / ethernet / freescale / dpaa2 / dpni-cmd.h
index 90453dc..9f80bdf 100644 (file)
 
 #define DPNI_CMDID_SET_RX_TC_DIST                      DPNI_CMD(0x235)
 
+#define DPNI_CMDID_ENABLE_VLAN_FILTER                  DPNI_CMD(0x230)
+#define DPNI_CMDID_ADD_VLAN_ID                         DPNI_CMD_V2(0x231)
+#define DPNI_CMDID_REMOVE_VLAN_ID                      DPNI_CMD(0x232)
+
 #define DPNI_CMDID_SET_QOS_TBL                         DPNI_CMD(0x240)
 #define DPNI_CMDID_ADD_QOS_ENT                         DPNI_CMD(0x241)
 #define DPNI_CMDID_REMOVE_QOS_ENT                      DPNI_CMD(0x242)
@@ -662,4 +666,17 @@ struct dpni_rsp_single_step_cfg {
        __le32 peer_delay;
 };
 
+struct dpni_cmd_enable_vlan_filter {
+       /* only the LSB */
+       u8 en;
+};
+
+struct dpni_cmd_vlan_id {
+       u8 flags;
+       u8 tc_id;
+       u8 flow_id;
+       u8 pad;
+       __le16 vlan_id;
+};
+
 #endif /* _FSL_DPNI_CMD_H */