4 int start_can(int argc, char** argv);
5 int end_can(int argc, char** argv);
6 int print_clocks(int argc, char** argv);
7 int print_can_totals(int argc, char** argv);
8 int start_net(int argc, char** argv);
9 int show_net(int argc, char** argv);
10 int start_load(int argc, char** argv);
11 int stop_load(int argc, char** argv);
13 /* chain of shell command descriptors */
14 static rtems_shell_cmd_t shell_command_stop_load = {
15 "stop_load", /* name */
16 "stops cpu loading threads", /* usage */
18 stop_load, /* command */
22 static rtems_shell_cmd_t shell_command_start_load = {
23 "start_load", /* name */
24 "starts cpu loading threads", /* usage */
26 start_load, /* command */
28 &shell_command_stop_load /* next */
30 static rtems_shell_cmd_t shell_command_start_net = {
31 "startNET", /* name */
32 "starts ethernet driver", /* usage */
34 start_net, /* command */
36 &shell_command_start_load /* next */
38 static rtems_shell_cmd_t shell_command_stop_gw = {
40 "stops CAN gateway", /* usage */
42 end_can, /* command */
44 &shell_command_start_net /* next */
46 static rtems_shell_cmd_t shell_command_start_gw = {
48 "starts CAN gateway", /* usage */
50 start_can, /* command */
52 &shell_command_stop_gw /* next */
54 static rtems_shell_cmd_t shell_command_print_net = {
55 "show_net", /* name */
56 "shows some debug information about bsdnet", /* usage */
58 show_net, /* command */
60 &shell_command_start_gw /* next */
62 static rtems_shell_cmd_t shell_command_print_clocks = {
63 "print_clocks", /* name */
64 "prints clock as taken from uboot", /* usage */
66 print_clocks, /* command */
68 &shell_command_print_net /* next */
70 static rtems_shell_cmd_t shell_command_print_can_totals = {
71 "printcan", /* name */
72 "prints can stats", /* usage */
74 print_can_totals, /* command */
76 &shell_command_print_clocks /* next */