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  * qed_selftest_memory(): Perform memory test.
10  *
11  * @cdev: Qed dev pointer.
12  *
13  * Return: Int.
14  */
15 int qed_selftest_memory(struct qed_dev *cdev);
16 
17 /**
18  * qed_selftest_interrupt(): Perform interrupt test.
19  *
20  * @cdev: Qed dev pointer.
21  *
22  * Return: Int.
23  */
24 int qed_selftest_interrupt(struct qed_dev *cdev);
25 
26 /**
27  * qed_selftest_register(): Perform register test.
28  *
29  * @cdev: Qed dev pointer.
30  *
31  * Return: Int.
32  */
33 int qed_selftest_register(struct qed_dev *cdev);
34 
35 /**
36  * qed_selftest_clock(): Perform clock test.
37  *
38  * @cdev: Qed dev pointer.
39  *
40  * Return: Int.
41  */
42 int qed_selftest_clock(struct qed_dev *cdev);
43 
44 /**
45  * qed_selftest_nvram(): Perform nvram test.
46  *
47  * @cdev: Qed dev pointer.
48  *
49  * Return: Int.
50  */
51 int qed_selftest_nvram(struct qed_dev *cdev);
52 
53 #endif
54