WIP FPC-III support
[linux/fpc-iii.git] / drivers / net / ethernet / qlogic / qed / qed_selftest.h
blobe27dd9a4547e892b1170c06540d1be6ee1fa1465
1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
2 /* Copyright (c) 2019-2020 Marvell International Ltd. */
4 #ifndef _QED_SELFTEST_API_H
5 #define _QED_SELFTEST_API_H
6 #include <linux/types.h>
8 /**
9 * @brief qed_selftest_memory - Perform memory test
11 * @param cdev
13 * @return int
15 int qed_selftest_memory(struct qed_dev *cdev);
17 /**
18 * @brief qed_selftest_interrupt - Perform interrupt test
20 * @param cdev
22 * @return int
24 int qed_selftest_interrupt(struct qed_dev *cdev);
26 /**
27 * @brief qed_selftest_register - Perform register test
29 * @param cdev
31 * @return int
33 int qed_selftest_register(struct qed_dev *cdev);
35 /**
36 * @brief qed_selftest_clock - Perform clock test
38 * @param cdev
40 * @return int
42 int qed_selftest_clock(struct qed_dev *cdev);
44 /**
45 * @brief qed_selftest_nvram - Perform nvram test
47 * @param cdev
49 * @return int
51 int qed_selftest_nvram(struct qed_dev *cdev);
53 #endif