9506 Want support for QLogic QL41000/45000 series devices
[unleashed.git] / usr / src / uts / common / io / qede / 579xx / drivers / ecore / ecore_selftest_api.h
blob514f402bcc420bd1bf0a24778e7b6ce35c268763
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, v.1, (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://opensource.org/licenses/CDDL-1.0.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
19 * CDDL HEADER END
23 * Copyright 2014-2017 Cavium, Inc.
24 * The contents of this file are subject to the terms of the Common Development
25 * and Distribution License, v.1, (the "License").
27 * You may not use this file except in compliance with the License.
29 * You can obtain a copy of the License at available
30 * at http://opensource.org/licenses/CDDL-1.0
32 * See the License for the specific language governing permissions and
33 * limitations under the License.
36 #ifndef __ECORE_SELFTEST_API_H__
37 #define __ECORE_SELFTEST_API_H__
39 #include "ecore_status.h"
41 /**
42 * @brief ecore_selftest_memory - Perform memory test
44 * @param p_dev
46 * @return enum _ecore_status_t
48 enum _ecore_status_t ecore_selftest_memory(struct ecore_dev *p_dev);
50 /**
51 * @brief ecore_selftest_interrupt - Perform interrupt test
53 * @param p_dev
55 * @return enum _ecore_status_t
57 enum _ecore_status_t ecore_selftest_interrupt(struct ecore_dev *p_dev);
59 /**
60 * @brief ecore_selftest_register - Perform register test
62 * @param p_dev
64 * @return enum _ecore_status_t
66 enum _ecore_status_t ecore_selftest_register(struct ecore_dev *p_dev);
68 /**
69 * @brief ecore_selftest_clock - Perform clock test
71 * @param p_dev
73 * @return enum _ecore_status_t
75 enum _ecore_status_t ecore_selftest_clock(struct ecore_dev *p_dev);
77 /**
78 * @brief ecore_selftest_nvram - Perform nvram test
80 * @param p_dev
82 * @return enum _ecore_status_t
84 enum _ecore_status_t ecore_selftest_nvram(struct ecore_dev *p_dev);
85 #endif