1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* Marvell/Qlogic FastLinQ NIC driver 3 * 4 * Copyright (C) 2020 Marvell International Ltd. 5 */ 6 #ifndef _QED_DEVLINK_H 7 #define _QED_DEVLINK_H 8 9 #include <linux/qed/qed_if.h> 10 #include <net/devlink.h> 11 12 struct devlink *qed_devlink_register(struct qed_dev *cdev); 13 void qed_devlink_unregister(struct devlink *devlink); 14 15 void qed_fw_reporters_create(struct devlink *devlink); 16 void qed_fw_reporters_destroy(struct devlink *devlink); 17 18 int qed_report_fatal_error(struct devlink *dl, enum qed_hw_err_type err_type); 19 20 #endif 21