net/sfc/base: provide APIs to configure and reset vPort
[dpdk.git] / drivers / net / sfc / base / ef10_impl.h
index e261487..20f2a5c 100644 (file)
@@ -1342,8 +1342,70 @@ ef10_evb_vport_assign(
        __in            efx_vport_id_t vport_id,
        __in            uint32_t vf_index);
 
+extern __checkReturn                           efx_rc_t
+ef10_evb_vport_reconfigure(
+       __in                                    efx_nic_t *enp,
+       __in                                    efx_vswitch_id_t vswitch_id,
+       __in                                    efx_vport_id_t vport_id,
+       __in_opt                                uint16_t *vidp,
+       __in_bcount_opt(EFX_MAC_ADDR_LEN)       uint8_t *addrp,
+       __out_opt                               boolean_t *fn_resetp);
+
 #endif  /* EFSYS_OPT_EVB */
 
+#if EFSYS_OPT_MCDI_PROXY_AUTH_SERVER
+extern __checkReturn   efx_rc_t
+ef10_proxy_auth_init(
+       __in            efx_nic_t *enp);
+
+extern                 void
+ef10_proxy_auth_fini(
+       __in            efx_nic_t *enp);
+
+extern __checkReturn           efx_rc_t
+ef10_proxy_auth_mc_config(
+       __in                    efx_nic_t *enp,
+       __in                    efsys_mem_t *request_bufferp,
+       __in                    efsys_mem_t *response_bufferp,
+       __in                    efsys_mem_t *status_bufferp,
+       __in                    uint32_t block_cnt,
+       __in_ecount(op_count)   uint32_t *op_listp,
+       __in                    size_t op_count);
+
+extern __checkReturn   efx_rc_t
+ef10_proxy_auth_disable(
+       __in            efx_nic_t *enp);
+
+extern __checkReturn   efx_rc_t
+ef10_proxy_auth_privilege_modify(
+       __in            efx_nic_t *enp,
+       __in            uint32_t fn_group,
+       __in            uint32_t pf_index,
+       __in            uint32_t vf_index,
+       __in            uint32_t add_privileges_mask,
+       __in            uint32_t remove_privileges_mask);
+
+       __checkReturn   efx_rc_t
+ef10_proxy_auth_set_privilege_mask(
+       __in            efx_nic_t *enp,
+       __in            uint32_t vf_index,
+       __in            uint32_t mask,
+       __in            uint32_t value);
+
+       __checkReturn   efx_rc_t
+ef10_proxy_auth_complete_request(
+       __in            efx_nic_t *enp,
+       __in            uint32_t fn_index,
+       __in            uint32_t proxy_result,
+       __in            uint32_t handle);
+
+       __checkReturn   efx_rc_t
+ef10_proxy_auth_exec_cmd(
+       __in            efx_nic_t *enp,
+       __inout         efx_proxy_cmd_params_t *paramsp);
+
+#endif  /* EFSYS_OPT_MCDI_PROXY_AUTH_SERVER */
+
 #if EFSYS_OPT_RX_PACKED_STREAM
 
 /* Data space per credit in packed stream mode */