Root/usbboot/src/cmd.h

1/*
2 * Copyright(C) 2009 Qi Hardware Inc.,
3 * Authors: Xiangfu Liu <xiangfu@qi-hardware.com>
4
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef __CMD_H__
20#define __CMD_H__
21
22#include "usb_boot_defines.h"
23#include <stdint.h>
24
25#define COMMAND_NUM 31
26#define MAX_ARGC 10
27#define MAX_COMMAND_LENGTH 100
28
29struct ingenic_dev;
30
31int boot(struct ingenic_dev *dev, const char *stage1_path, const char *stage2_path);
32int debug_memory(struct ingenic_dev *dev, int obj, unsigned int start, unsigned int size);
33int debug_go(struct ingenic_dev *dev, size_t argc, char *argv[]);
34int sdram_load_file(struct ingenic_dev *dev, struct sdram_in *sdram_in, char *file_path);
35
36#endif /* __CMD_H__ */
37

Archive Download this file



interactive