bus/pci: fix Windows kernel driver categories
[dpdk.git] / drivers / net / bnxt / tf_core / tf_device.h
index fce7f25..d0c4ec8 100644 (file)
@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2019-2020 Broadcom
+ * Copyright(c) 2019-2021 Broadcom
  * All rights reserved.
  */
 
@@ -573,6 +573,49 @@ struct tf_dev_ops {
         */
        int (*tf_dev_alloc_tbl_scope)(struct tf *tfp,
                                      struct tf_alloc_tbl_scope_parms *parms);
+       /**
+        * Map EEM parif
+        *
+        * [in] tfp
+        *   Pointer to TF handle
+        *
+        * [in] pf
+        * PF associated with the table scope
+        *
+        * [in] parif_bitmask
+        * Bitmask of PARIFs to enable
+        *
+        * [in/out] pointer to the parif_2_pf data to be updated
+        *
+        * [in/out] pointer to the parif_2_pf mask to be updated
+        *
+        * [in] sz_in_bytes - number of bytes to be written
+        *
+        *    returns:
+        *    0       - Success
+        *    -EINVAL - Error
+        */
+       int (*tf_dev_map_parif)(struct tf *tfp,
+                               uint16_t parif_bitmask,
+                               uint16_t pf,
+                               uint8_t *data,
+                               uint8_t *mask,
+                               uint16_t sz_in_bytes);
+       /**
+        * Map EEM table scope
+        *
+        * [in] tfp
+        *   Pointer to TF handle
+        *
+        * [in] parms
+        *   Pointer to table scope map parameters
+        *
+        *    returns:
+        *    0       - Success
+        *    -EINVAL - Error
+        */
+       int (*tf_dev_map_tbl_scope)(struct tf *tfp,
+                                   struct tf_map_tbl_scope_parms *parms);
 
        /**
         * Free EEM table scope
@@ -642,7 +685,7 @@ struct tf_dev_ops {
         *    -EINVAL - Error
         */
        int (*tf_dev_set_global_cfg)(struct tf *tfp,
-                                    struct tf_dev_global_cfg_parms *parms);
+                                    struct tf_global_cfg_parms *parms);
 
        /**
         * Get global cfg
@@ -658,7 +701,7 @@ struct tf_dev_ops {
         *    -EINVAL - Error
         */
        int (*tf_dev_get_global_cfg)(struct tf *tfp,
-                                    struct tf_dev_global_cfg_parms *parms);
+                                    struct tf_global_cfg_parms *parms);
 };
 
 /**