]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/cmd_doc.h
* Patches by Robert Schwebel, 26 Jun 2003:
[people/ms/u-boot.git] / include / cmd_doc.h
CommitLineData
78f6622a
WD
1/*
2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU General Public License as
4 * published by the Free Software Foundation; either version 2 of
5 * the License, or (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
15 * MA 02111-1307 USA
16 */
17
18/*
19 * Disk-On-Chip support
20 */
21#ifndef _CMD_DOC_H
22#define _CMD_DOC_H
23
24#include <common.h>
25#include <command.h>
26
27
28#if (CONFIG_COMMANDS & CFG_CMD_DOC)
29#define CMD_TBL_DOC MK_CMD_TBL_ENTRY( \
30 "doc", 3, 5, 1, do_doc, \
31 "doc - Disk-On-Chip sub-system\n", \
32 "info - show available DOC devices\n" \
33 "doc device [dev] - show or set current device\n" \
34 "doc read addr off size\n" \
35 "doc write addr off size - read/write `size'" \
36 " bytes starting at offset `off'\n" \
37 " to/from memory address `addr'\n" \
38 "doc erase off size - erase `size' bytes of DOC from offset `off'\n" \
39),
40
41#define CMD_TBL_DOCBOOT MK_CMD_TBL_ENTRY( \
42 "docboot", 4, 4, 1, do_docboot, \
43 "docboot - boot from DOC device\n", \
44 "loadAddr dev\n" \
45),
46
47int do_doc (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
48int do_docboot (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
49
50#else
51#define CMD_TBL_DOC
52#define CMD_TBL_DOCBOOT
53#endif
54
55#endif /* _CMD_DOC_H */