mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Query resources from the firmware and, based on the availability of resources, initialize the default settings. The default settings include: 1. Rings and other resource reservations with the firmware. This ensures that resources are reserved before network and auxiliary devices are created. 2. Mapping the BAR, which helps access doorbells since its size is known after querying the firmware. 3. Retrieving the TCs and hardware CoS queue mappings. Signed-off-by: Vikas Gupta <vikas.gupta@broadcom.com> Reviewed-by: Bhargava Chenna Marreddy <bhargava.marreddy@broadcom.com> Reviewed-by: Rajashekar Hudumula <rajashekar.hudumula@broadcom.com> Link: https://patch.msgid.link/20250701143511.280702-10-vikas.gupta@broadcom.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
27 lines
1 KiB
C
27 lines
1 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright (c) 2025 Broadcom */
|
|
|
|
#ifndef _BNGE_HWRM_LIB_H_
|
|
#define _BNGE_HWRM_LIB_H_
|
|
|
|
int bnge_hwrm_ver_get(struct bnge_dev *bd);
|
|
int bnge_hwrm_func_reset(struct bnge_dev *bd);
|
|
int bnge_hwrm_fw_set_time(struct bnge_dev *bd);
|
|
int bnge_hwrm_func_drv_rgtr(struct bnge_dev *bd);
|
|
int bnge_hwrm_func_drv_unrgtr(struct bnge_dev *bd);
|
|
int bnge_hwrm_vnic_qcaps(struct bnge_dev *bd);
|
|
int bnge_hwrm_nvm_dev_info(struct bnge_dev *bd,
|
|
struct hwrm_nvm_get_dev_info_output *nvm_dev_info);
|
|
int bnge_hwrm_func_backing_store(struct bnge_dev *bd,
|
|
struct bnge_ctx_mem_type *ctxm,
|
|
bool last);
|
|
int bnge_hwrm_func_backing_store_qcaps(struct bnge_dev *bd);
|
|
int bnge_hwrm_reserve_rings(struct bnge_dev *bd,
|
|
struct bnge_hw_rings *hwr);
|
|
int bnge_hwrm_func_qcaps(struct bnge_dev *bd);
|
|
int bnge_hwrm_vnic_qcaps(struct bnge_dev *bd);
|
|
int bnge_hwrm_func_qcfg(struct bnge_dev *bd);
|
|
int bnge_hwrm_func_resc_qcaps(struct bnge_dev *bd);
|
|
int bnge_hwrm_queue_qportcfg(struct bnge_dev *bd);
|
|
|
|
#endif /* _BNGE_HWRM_LIB_H_ */
|