152306deeSIgor Russkikh /* SPDX-License-Identifier: GPL-2.0-or-later */ 252306deeSIgor Russkikh /* Marvell/Qlogic FastLinQ NIC driver 352306deeSIgor Russkikh * 452306deeSIgor Russkikh * Copyright (C) 2020 Marvell International Ltd. 552306deeSIgor Russkikh */ 652306deeSIgor Russkikh #ifndef _QED_DEVLINK_H 752306deeSIgor Russkikh #define _QED_DEVLINK_H 852306deeSIgor Russkikh 952306deeSIgor Russkikh #include <linux/qed/qed_if.h> 1052306deeSIgor Russkikh #include <net/devlink.h> 1152306deeSIgor Russkikh 12755f982bSIgor Russkikh struct devlink *qed_devlink_register(struct qed_dev *cdev); 13755f982bSIgor Russkikh void qed_devlink_unregister(struct devlink *devlink); 1452306deeSIgor Russkikh 159524067bSIgor Russkikh void qed_fw_reporters_create(struct devlink *devlink); 169524067bSIgor Russkikh void qed_fw_reporters_destroy(struct devlink *devlink); 179524067bSIgor Russkikh 18*4f5a8db2SIgor Russkikh int qed_report_fatal_error(struct devlink *dl, enum qed_hw_err_type err_type); 19*4f5a8db2SIgor Russkikh 2052306deeSIgor Russkikh #endif 21