18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* Marvell/Qlogic FastLinQ NIC driver 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * Copyright (C) 2020 Marvell International Ltd. 58c2ecf20Sopenharmony_ci */ 68c2ecf20Sopenharmony_ci#ifndef _QED_DEVLINK_H 78c2ecf20Sopenharmony_ci#define _QED_DEVLINK_H 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#include <linux/qed/qed_if.h> 108c2ecf20Sopenharmony_ci#include <net/devlink.h> 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_cistruct devlink *qed_devlink_register(struct qed_dev *cdev); 138c2ecf20Sopenharmony_civoid qed_devlink_unregister(struct devlink *devlink); 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_civoid qed_fw_reporters_create(struct devlink *devlink); 168c2ecf20Sopenharmony_civoid qed_fw_reporters_destroy(struct devlink *devlink); 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ciint qed_report_fatal_error(struct devlink *dl, enum qed_hw_err_type err_type); 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci#endif 21