![]() |
|
|||
0001 /* Copyright 2008 - 2016 Freescale Semiconductor, Inc. 0002 * 0003 * Redistribution and use in source and binary forms, with or without 0004 * modification, are permitted provided that the following conditions are met: 0005 * * Redistributions of source code must retain the above copyright 0006 * notice, this list of conditions and the following disclaimer. 0007 * * Redistributions in binary form must reproduce the above copyright 0008 * notice, this list of conditions and the following disclaimer in the 0009 * documentation and/or other materials provided with the distribution. 0010 * * Neither the name of Freescale Semiconductor nor the 0011 * names of its contributors may be used to endorse or promote products 0012 * derived from this software without specific prior written permission. 0013 * 0014 * ALTERNATIVELY, this software may be distributed under the terms of the 0015 * GNU General Public License ("GPL") as published by the Free Software 0016 * Foundation, either version 2 of that License or (at your option) any 0017 * later version. 0018 * 0019 * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY 0020 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 0021 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 0022 * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY 0023 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 0024 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 0025 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 0026 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 0027 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 0028 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 0029 */ 0030 0031 #include "qman_test.h" 0032 0033 MODULE_AUTHOR("Geoff Thorpe"); 0034 MODULE_LICENSE("Dual BSD/GPL"); 0035 MODULE_DESCRIPTION("QMan testing"); 0036 0037 static int test_init(void) 0038 { 0039 int loop = 1; 0040 int err = 0; 0041 0042 while (loop--) { 0043 #ifdef CONFIG_FSL_QMAN_TEST_STASH 0044 err = qman_test_stash(); 0045 if (err) 0046 break; 0047 #endif 0048 #ifdef CONFIG_FSL_QMAN_TEST_API 0049 err = qman_test_api(); 0050 if (err) 0051 break; 0052 #endif 0053 } 0054 return err; 0055 } 0056 0057 static void test_exit(void) 0058 { 0059 } 0060 0061 module_init(test_init); 0062 module_exit(test_exit);
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |