1 /* 2 * This program is distributed in the hope that it will be useful, 3 * but WITHOUT ANY WARRANTY; without even the implied warranty of 4 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 5 * GNU General Public License for more details. 6 * 7 * You should have received a copy of the GNU General Public License 8 * along with this program; if not, write to the Free Software 9 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 10 */ 11 12 13 #include <common.h> 14 #include <command.h> 15 16 #include "swfunc.h" 17 #include "comminf.h" 18 #include "mem_io.h" 19 #include "mac_api.h" 20 21 extern int mac_test(int argc, char * const argv[], uint32_t mode); 22 23 int do_mactest(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) 24 { 25 display_lantest_log_msg = 0; 26 return mac_test(argc, argv, MODE_DEDICATED); 27 } 28 29 int do_ncsitest (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) 30 { 31 display_lantest_log_msg = 0; 32 return mac_test(argc, argv, MODE_NCSI); 33 } 34 35 U_BOOT_CMD(mactest, NETESTCMD_MAX_ARGS, 0, do_mactest, 36 "Dedicated LAN test program", NULL); 37 U_BOOT_CMD(ncsitest, NETESTCMD_MAX_ARGS, 0, do_ncsitest, 38 "Share LAN (NC-SI) test program", NULL); 39 40 // ------------------------------------------------------------------------------ 41 int do_mactestd (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) 42 { 43 display_lantest_log_msg = 1; 44 return mac_test(argc, argv, MODE_DEDICATED); 45 } 46 47 int do_ncsitestd (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) 48 { 49 display_lantest_log_msg = 1; 50 return mac_test(argc, argv, MODE_NCSI); 51 } 52 53 U_BOOT_CMD(mactestd, NETESTCMD_MAX_ARGS, 0, do_mactestd, 54 "Dedicated LAN test program and display more information", NULL); 55 U_BOOT_CMD(ncsitestd, NETESTCMD_MAX_ARGS, 0, do_ncsitestd, 56 "Share LAN (NC-SI) test program and display more information", NULL);