summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/qlogic/qed/qed_selftest.h
blob: 7a3bd749e1e4ccb2436a97b9d0291609d43f6853 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
/* Copyright (c) 2019-2020 Marvell International Ltd. */

#ifndef _QED_SELFTEST_API_H
#define _QED_SELFTEST_API_H
#include <linux/types.h>

/**
 * qed_selftest_memory(): Perform memory test.
 *
 * @cdev: Qed dev pointer.
 *
 * Return: Int.
 */
int qed_selftest_memory(struct qed_dev *cdev);

/**
 * qed_selftest_interrupt(): Perform interrupt test.
 *
 * @cdev: Qed dev pointer.
 *
 * Return: Int.
 */
int qed_selftest_interrupt(struct qed_dev *cdev);

/**
 * qed_selftest_register(): Perform register test.
 *
 * @cdev: Qed dev pointer.
 *
 * Return: Int.
 */
int qed_selftest_register(struct qed_dev *cdev);

/**
 * qed_selftest_clock(): Perform clock test.
 *
 * @cdev: Qed dev pointer.
 *
 * Return: Int.
 */
int qed_selftest_clock(struct qed_dev *cdev);

/**
 * qed_selftest_nvram(): Perform nvram test.
 *
 * @cdev: Qed dev pointer.
 *
 * Return: Int.
 */
int qed_selftest_nvram(struct qed_dev *cdev);

#endif