Skip to content

Commit

Permalink
Patch by Kenneth Johansson, 30 Jun 2003:
Browse files Browse the repository at this point in the history
get rid of MK_CMD_ENTRY macro; update doc/README.command
  • Loading branch information
wdenk committed Jul 1, 2003
1 parent b37c7e5 commit 0d49839
Show file tree
Hide file tree
Showing 61 changed files with 332 additions and 389 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Changes for U-Boot 0.4.2:
======================================================================

* Patch by Kenneth Johansson, 30 Jun 2003:
get rid of MK_CMD_ENTRY macro; update doc/README.command

* Patch by Seb James, 30 Jun 2003:
Improve documentation of I2C configuration in README

Expand Down
4 changes: 2 additions & 2 deletions board/MAI/AmigaOneG3SE/cmd_boota.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ int do_boota (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
return 0;
}
#if defined(CONFIG_AMIGAONEG3SE) && (CONFIG_COMMANDS & CFG_CMD_BSP)
cmd_tbl_t U_BOOT_CMD(BOOTA) = MK_CMD_ENTRY(
"boota", 3, 1, do_boota,
U_BOOT_CMD(
boota, 3, 1, do_boota,
"boota - boot an Amiga kernel\n",
"address disk"
);
Expand Down
4 changes: 2 additions & 2 deletions board/MAI/menu/cmd_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ int do_menu( cmd_tbl_t *cmdtp, /*bd_t *bd,*/ int flag, int argc, char *argv[] )
}

#if defined(CONFIG_AMIGAONEG3SE) && (CONFIG_COMMANDS & CFG_CMD_BSP)
cmd_tbl_t U_BOOT_CMD(MENU) = MK_CMD_ENTRY(
"menu", 1, 1, do_menu,
U_BOOT_CMD(
menu, 1, 1, do_menu,
"menu - display BIOS setup menu\n",
""
);
Expand Down
4 changes: 2 additions & 2 deletions board/esd/dasa_sim/cmd_dasa_sim.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ int do_pci9054 (cmd_tbl_t * cmdtp, int flag, int argc,

}

cmd_tbl_t U_BOOT_CMD (pci9054) = MK_CMD_ENTRY(
"pci9054", 3, 1, do_pci9054,
U_BOOT_CMD(
pci9054, 3, 1, do_pci9054,
"pci9054 - PLX PCI9054 EEPROM access\n",
"pci9054 info - print EEPROM values\n"
"pci9054 update - updates EEPROM with default values\n"
Expand Down
12 changes: 6 additions & 6 deletions board/evb64260/zuma_pbb.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,20 +198,20 @@ do_zuma_init_mbox (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return 0;
}

cmd_tbl_t U_BOOT_CMD(zuma_init_pbb) = MK_CMD_ENTRY(
"zinit", 1, 0, do_zuma_init_pbb,
U_BOOT_CMD(
zinit, 1, 0, do_zuma_init_pbb,
"zinit - init zuma pbb\n",
"\n"
" - init zuma pbb\n"
);
cmd_tbl_t U_BOOT_CMD(zuma_test_dma) = MK_CMD_ENTRY(
"zdtest", 3, 1, do_zuma_test_dma,
U_BOOT_CMD(
zdtest, 3, 1, do_zuma_test_dma,
"zdtest - run dma test\n",
"[cmd [count]]\n"
" - run dma cmd (w=0,v=1,cp=2,cmp=3,wi=4,vi=5), count bytes\n"
);
cmd_tbl_t U_BOOT_CMD(zuma_init_mbox) = MK_CMD_ENTRY(
"zminit", 1, 0, do_zuma_init_mbox,
U_BOOT_CMD(
zminit, 1, 0, do_zuma_init_mbox,
"zminit - init zuma mbox\n",
"\n"
" - init zuma mbox\n"
Expand Down
8 changes: 4 additions & 4 deletions board/hymod/bsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ do_fpga (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
printf ("Usage:\n%s\n", cmdtp->usage);
return 1;
}
cmd_tbl_t U_BOOT_CMD(fpga) = MK_CMD_ENTRY(
"fpga", 6, 1, do_fpga,
U_BOOT_CMD(
fpga, 6, 1, do_fpga,
"fpga - FPGA sub-system\n",
"load [type] addr size\n"
" - write the configuration data at memory address `addr',\n"
Expand Down Expand Up @@ -334,8 +334,8 @@ do_eecl (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])

return 0;
}
cmd_tbl_t U_BOOT_CMD(eec) = MK_CMD_ENTRY(
"eeclear", 1, 0, do_eecl,
U_BOOT_CMD(
eeclear, 1, 0, do_eecl,
"eeclear - Clear the eeprom on a Hymod board \n",
"[type]\n"
" - write zeroes into the EEPROM on the board of type `type'\n"
Expand Down
12 changes: 6 additions & 6 deletions board/lwmon/lwmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -851,8 +851,8 @@ int do_pic (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
printf ("Usage:\n%s\n", cmdtp->usage);
return 1;
}
cmd_tbl_t U_BOOT_CMD(pic) = MK_CMD_ENTRY(
"pic", 4, 1, do_pic,
U_BOOT_CMD(
pic, 4, 1, do_pic,
"pic - read and write PIC registers\n",
"read reg - read PIC register `reg'\n"
"pic write reg val - write value `val' to PIC register `reg'\n"
Expand Down Expand Up @@ -910,8 +910,8 @@ int do_kbd (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return 0;
}

cmd_tbl_t U_BOOT_CMD(kdb) = MK_CMD_ENTRY(
"kbd", 1, 1, do_kbd,
U_BOOT_CMD(
kbd, 1, 1, do_kbd,
"kbd - read keyboard status\n",
NULL
);
Expand Down Expand Up @@ -982,8 +982,8 @@ int do_lsb (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return 1;
}

cmd_tbl_t U_BOOT_CMD(lsb) = MK_CMD_ENTRY(
"lsb", 2, 1, do_lsb,
U_BOOT_CMD(
lsb, 2, 1, do_lsb,
"lsb - check and set LSB switch\n",
"on - switch LSB on\n"
"lsb off - switch LSB off\n"
Expand Down
4 changes: 2 additions & 2 deletions board/mpl/mip405/cmd_mip405.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ int do_mip405(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
}
return (do_mplcommon(cmdtp, flag, argc, argv));
}
cmd_tbl_t U_BOOT_CMD(mip405) = MK_CMD_ENTRY(
"mip405", 6, 1, do_mip405,
U_BOOT_CMD(
mip405, 6, 1, do_mip405,
"mip405 - MIP405 specific Cmds\n",
"flash mem [SrcAddr] - updates U-Boot with image in memory\n"
"mip405 flash mps - updates U-Boot with image from MPS\n"
Expand Down
4 changes: 2 additions & 2 deletions board/mpl/pip405/cmd_pip405.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ int do_pip405(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])

return (do_mplcommon(cmdtp, flag, argc, argv));
}
cmd_tbl_t U_BOOT_CMD(pip405) = MK_CMD_ENTRY(
"pip405", 6, 1, do_pip405,
U_BOOT_CMD(
pip405, 6, 1, do_pip405,
"pip405 - PIP405 specific Cmds\n",
"flash mem [SrcAddr] - updates U-Boot with image in memory\n"
"pip405 flash floppy [SrcAddr] - updates U-Boot with image from floppy\n"
Expand Down
4 changes: 2 additions & 2 deletions board/pcippc2/pcippc2.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ int do_wd (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return 1;
}

cmd_tbl_t U_BOOT_CMD(wd) = MK_CMD_ENTRY(
"wd", 2, 1, do_wd,
U_BOOT_CMD(
wd, 2, 1, do_wd,
"wd - check and set watchdog\n",
"on - switch watchDog on\n"
"wd off - switch watchdog off\n"
Expand Down
8 changes: 4 additions & 4 deletions board/pn62/cmd_pn62.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ int do_led (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
set_led (number, function);
return 0;
}
cmd_tbl_t U_BOOT_CMD(led) = MK_CMD_ENTRY(
"led" , 3, 1, do_led,
U_BOOT_CMD(
led , 3, 1, do_led,
"led - set LED 0..11 on the PN62 board\n",
"i fun\n"
" - set 'i'th LED to function 'fun'\n"
Expand Down Expand Up @@ -165,8 +165,8 @@ int do_loadpci (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return rcode;
}

cmd_tbl_t U_BOOT_CMD(loadpci) = MK_CMD_ENTRY(
"loadpci", 2, 1, do_loadpci,
U_BOOT_CMD(
loadpci, 2, 1, do_loadpci,
"loadpci - load binary file over PCI\n",
"[addr]\n"
" - load binary file over PCI to address 'addr'\n"
Expand Down
4 changes: 2 additions & 2 deletions board/r360mpi/r360mpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,8 @@ int do_kbd (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
return 0;
}

cmd_tbl_t U_BOOT_CMD(kbd) = MK_CMD_ENTRY(
"kbd", 1, 1, do_kbd,
U_BOOT_CMD(
kbd, 1, 1, do_kbd,
"kbd - read keyboard status\n",
NULL
);
4 changes: 2 additions & 2 deletions board/siemens/common/fpga.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ int do_fpga (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return 1;
}

cmd_tbl_t U_BOOT_CMD(fpga) = MK_CMD_ENTRY(
"fpga", 4, 1, do_fpga,
U_BOOT_CMD(
fpga, 4, 1, do_fpga,
"fpga - access FPGA(s)\n",
"fpga status [name] - print FPGA status\n"
"fpga reset [name] - reset FPGA\n"
Expand Down
4 changes: 2 additions & 2 deletions board/siemens/pcu_e/pcu_e.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@ int do_puma (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
printf ("Usage:\n%s\n", cmdtp->usage);
return 1;
}
cmd_tbl_t U_BOOT_CMD(puma) = MK_CMD_ENTRY(
"puma", 4, 1, do_puma,
U_BOOT_CMD(
puma, 4, 1, do_puma,
"puma - access PUMA FPGA\n",
"status - print PUMA status\n"
"puma load addr len - load PUMA configuration data\n"
Expand Down
4 changes: 2 additions & 2 deletions board/trab/trab.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ int do_kbd (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
return 0;
}

cmd_tbl_t U_BOOT_CMD(kbd) = MK_CMD_ENTRY(
"kbd", 1, 1, do_kbd,
U_BOOT_CMD(
kbd, 1, 1, do_kbd,
"kbd - read keyboard status\n",
NULL
);
Expand Down
4 changes: 2 additions & 2 deletions board/w7o/cmd_vpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ int do_vpd (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
return 1;
}

cmd_tbl_t U_BOOT_CMD(vpd) = MK_CMD_ENTRY(
"vpd", 2, 1, do_vpd,
U_BOOT_CMD(
vpd, 2, 1, do_vpd,
"vpd - Read Vital Product Data\n",
"[dev_addr]\n"
" - Read VPD Data from default address, or device address 'dev_addr'.\n"
Expand Down
4 changes: 2 additions & 2 deletions common/cmd_autoscript.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ do_autoscript (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
}

#if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT)
cmd_tbl_t U_BOOT_CMD(AUTOSCRIPT) = MK_CMD_ENTRY(
"autoscr", 2, 0, do_autoscript,
U_BOOT_CMD(
autoscr, 2, 0, do_autoscript,
"autoscr - run script from memory\n",
"[addr] - run script starting at addr"
" - A valid autoscr header must be present\n"
Expand Down
4 changes: 2 additions & 2 deletions common/cmd_bdinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ static void print_str(const char *name, const char *str)

/* -------------------------------------------------------------------- */

cmd_tbl_t U_BOOT_CMD(BDINFO) = MK_CMD_ENTRY(
"bdinfo", 1, 1, do_bdinfo,
U_BOOT_CMD(
bdinfo, 1, 1, do_bdinfo,
"bdinfo - print Board Info structure\n",
NULL
);
Expand Down
32 changes: 16 additions & 16 deletions common/cmd_bedbug.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ int do_bedbug_dis (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
dis_last_len = len;
return 0;
} /* do_bedbug_dis */
cmd_tbl_t U_BOOT_CMD(DIS) = MK_CMD_ENTRY(
"ds", 3, 1, do_bedbug_dis,
U_BOOT_CMD(
ds, 3, 1, do_bedbug_dis,
"ds - disassemble memory\n",
"ds <address> [# instructions]\n"
);
Expand Down Expand Up @@ -165,8 +165,8 @@ int do_bedbug_asm (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
}
return rcode;
} /* do_bedbug_asm */
cmd_tbl_t U_BOOT_CMD(ASM) = MK_CMD_ENTRY(
"as", 2, 0, do_bedbug_asm,
U_BOOT_CMD(
as, 2, 0, do_bedbug_asm,
"as - assemble memory\n",
"as <address>\n"
);
Expand All @@ -184,8 +184,8 @@ int do_bedbug_break (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
return 0;

} /* do_bedbug_break */
cmd_tbl_t U_BOOT_CMD(BREAK) = MK_CMD_ENTRY(
"break", 3, 0, do_bedbug_break,
U_BOOT_CMD(
break, 3, 0, do_bedbug_break,
"break - set or clear a breakpoint\n",
" - Set or clear a breakpoint\n"
"break <address> - Break at an address\n"
Expand Down Expand Up @@ -288,8 +288,8 @@ int do_bedbug_continue (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
bug_ctx.stopped = 0;
return 0;
} /* do_bedbug_continue */
cmd_tbl_t U_BOOT_CMD(CONTINUE) = MK_CMD_ENTRY(
"continue", 1, 0, do_bedbug_continue,
U_BOOT_CMD(
continue, 1, 0, do_bedbug_continue,
"continue- continue from a breakpoint\n",
" - continue from a breakpoint.\n"
);
Expand Down Expand Up @@ -320,8 +320,8 @@ int do_bedbug_step (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
bug_ctx.stopped = 0;
return 0;
} /* do_bedbug_step */
cmd_tbl_t U_BOOT_CMD(STEP) = MK_CMD_ENTRY(
"step", 1, 1, do_bedbug_step,
U_BOOT_CMD(
step, 1, 1, do_bedbug_step,
"step - single step execution.\n",
" - single step execution.\n"
);
Expand Down Expand Up @@ -352,8 +352,8 @@ int do_bedbug_next (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
bug_ctx.stopped = 0;
return 0;
} /* do_bedbug_next */
cmd_tbl_t U_BOOT_CMD(NEXT) = MK_CMD_ENTRY(
"next", 1, 1, do_bedbug_next,
U_BOOT_CMD(
next, 1, 1, do_bedbug_next,
"next - single step execution, stepping over subroutines.\n",
" - single step execution, stepping over subroutines.\n"
);
Expand Down Expand Up @@ -401,8 +401,8 @@ int do_bedbug_stack (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
}
return 0;
} /* do_bedbug_stack */
cmd_tbl_t U_BOOT_CMD(STACK) = MK_CMD_ENTRY(
"where", 1, 1, do_bedbug_stack,
U_BOOT_CMD(
where, 1, 1, do_bedbug_stack,
"where - Print the running stack.\n",
" - Print the running stack.\n"
);
Expand All @@ -424,8 +424,8 @@ int do_bedbug_rdump (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
show_regs( bug_ctx.regs );
return 0;
} /* do_bedbug_rdump */
cmd_tbl_t U_BOOT_CMD(RDUMP) = MK_CMD_ENTRY(
"rdump", 1, 1, do_bedbug_rdump,
U_BOOT_CMD(
rdump, 1, 1, do_bedbug_rdump,
"rdump - Show registers.\n",
" - Show registers.\n"
);
Expand Down
4 changes: 2 additions & 2 deletions common/cmd_bmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ int do_bmp(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
}
}

cmd_tbl_t U_BOOT_CMD(BMP) = MK_CMD_ENTRY(
"bmp", 3, 1, do_bmp,
U_BOOT_CMD(
bmp, 3, 1, do_bmp,
"bmp - manipulate BMP image data\n",
"info <imageAddr> - display image info\n"
"bmp display <imageAddr> - display image\n"
Expand Down
8 changes: 4 additions & 4 deletions common/cmd_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,17 @@ int do_go (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])

/* -------------------------------------------------------------------- */

cmd_tbl_t U_BOOT_CMD(GO) = MK_CMD_ENTRY(
"go", CFG_MAXARGS, 1, do_go,
U_BOOT_CMD(
go, CFG_MAXARGS, 1, do_go,
"go - start application at address 'addr'\n",
"addr [arg ...]\n - start application at address 'addr'\n"
" passing 'arg' as arguments\n"
);

extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);

cmd_tbl_t U_BOOT_CMD(RESET) = MK_CMD_ENTRY(
"reset", 1, 0, do_reset,
U_BOOT_CMD(
reset, 1, 0, do_reset,
"reset - Perform RESET of the CPU\n",
NULL
);
Loading

0 comments on commit 0d49839

Please sign in to comment.