1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */ 2 /* Copyright (c) 2019-2020 Marvell International Ltd. */ 3 4 #ifndef _QED_SELFTEST_API_H 5 #define _QED_SELFTEST_API_H 6 #include <linux/types.h> 7 8 /** 9 * @brief qed_selftest_memory - Perform memory test 10 * 11 * @param cdev 12 * 13 * @return int 14 */ 15 int qed_selftest_memory(struct qed_dev *cdev); 16 17 /** 18 * @brief qed_selftest_interrupt - Perform interrupt test 19 * 20 * @param cdev 21 * 22 * @return int 23 */ 24 int qed_selftest_interrupt(struct qed_dev *cdev); 25 26 /** 27 * @brief qed_selftest_register - Perform register test 28 * 29 * @param cdev 30 * 31 * @return int 32 */ 33 int qed_selftest_register(struct qed_dev *cdev); 34 35 /** 36 * @brief qed_selftest_clock - Perform clock test 37 * 38 * @param cdev 39 * 40 * @return int 41 */ 42 int qed_selftest_clock(struct qed_dev *cdev); 43 44 /** 45 * @brief qed_selftest_nvram - Perform nvram test 46 * 47 * @param cdev 48 * 49 * @return int 50 */ 51 int qed_selftest_nvram(struct qed_dev *cdev); 52 53 #endif 54