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>
9 * qed_selftest_memory(): Perform memory test.
11 * @cdev: Qed dev pointer.
15 int qed_selftest_memory(struct qed_dev
*cdev
);
18 * qed_selftest_interrupt(): Perform interrupt test.
20 * @cdev: Qed dev pointer.
24 int qed_selftest_interrupt(struct qed_dev
*cdev
);
27 * qed_selftest_register(): Perform register test.
29 * @cdev: Qed dev pointer.
33 int qed_selftest_register(struct qed_dev
*cdev
);
36 * qed_selftest_clock(): Perform clock test.
38 * @cdev: Qed dev pointer.
42 int qed_selftest_clock(struct qed_dev
*cdev
);
45 * qed_selftest_nvram(): Perform nvram test.
47 * @cdev: Qed dev pointer.
51 int qed_selftest_nvram(struct qed_dev
*cdev
);