mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
03dc76ca1e
This patch adds the functionality and APIs needed for selftests. It adds the ability to configure the link-mode which is required for the implementation of loopback tests. It adds the APIs for clock test, register test, interrupt test and memory test. Signed-off-by: Sudarsana Reddy Kalluru <sudarsana.kalluru@qlogic.com> Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
41 lines
676 B
C
41 lines
676 B
C
#ifndef _QED_SELFTEST_API_H
|
|
#define _QED_SELFTEST_API_H
|
|
#include <linux/types.h>
|
|
|
|
/**
|
|
* @brief qed_selftest_memory - Perform memory test
|
|
*
|
|
* @param cdev
|
|
*
|
|
* @return int
|
|
*/
|
|
int qed_selftest_memory(struct qed_dev *cdev);
|
|
|
|
/**
|
|
* @brief qed_selftest_interrupt - Perform interrupt test
|
|
*
|
|
* @param cdev
|
|
*
|
|
* @return int
|
|
*/
|
|
int qed_selftest_interrupt(struct qed_dev *cdev);
|
|
|
|
/**
|
|
* @brief qed_selftest_register - Perform register test
|
|
*
|
|
* @param cdev
|
|
*
|
|
* @return int
|
|
*/
|
|
int qed_selftest_register(struct qed_dev *cdev);
|
|
|
|
/**
|
|
* @brief qed_selftest_clock - Perform clock test
|
|
*
|
|
* @param cdev
|
|
*
|
|
* @return int
|
|
*/
|
|
int qed_selftest_clock(struct qed_dev *cdev);
|
|
#endif
|