diff options
Diffstat (limited to 'cmd/fpga.c')
-rw-r--r-- | cmd/fpga.c | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/cmd/fpga.c b/cmd/fpga.c index 563528ca5e..47307bfc89 100644 --- a/cmd/fpga.c +++ b/cmd/fpga.c @@ -34,7 +34,8 @@ static long do_fpga_get_device(char *arg) } static int do_fpga_check_params(long *dev, long *fpga_data, size_t *data_size, - cmd_tbl_t *cmdtp, int argc, char *const argv[]) + struct cmd_tbl *cmdtp, int argc, + char *const argv[]) { size_t local_data_size; long local_fpga_data; @@ -66,7 +67,7 @@ static int do_fpga_check_params(long *dev, long *fpga_data, size_t *data_size, } #if defined(CONFIG_CMD_FPGA_LOAD_SECURE) -int do_fpga_loads(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) +int do_fpga_loads(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { size_t data_size = 0; long fpga_data, dev; @@ -118,7 +119,7 @@ int do_fpga_loads(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) #endif #if defined(CONFIG_CMD_FPGA_LOADFS) -static int do_fpga_loadfs(cmd_tbl_t *cmdtp, int flag, int argc, +static int do_fpga_loadfs(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { size_t data_size = 0; @@ -141,16 +142,16 @@ static int do_fpga_loadfs(cmd_tbl_t *cmdtp, int flag, int argc, } #endif -static int do_fpga_info(cmd_tbl_t *cmdtp, int flag, int argc, - char * const argv[]) +static int do_fpga_info(struct cmd_tbl *cmdtp, int flag, int argc, + char *const argv[]) { long dev = do_fpga_get_device(argv[0]); return fpga_info(dev); } -static int do_fpga_dump(cmd_tbl_t *cmdtp, int flag, int argc, - char * const argv[]) +static int do_fpga_dump(struct cmd_tbl *cmdtp, int flag, int argc, + char *const argv[]) { size_t data_size = 0; long fpga_data, dev; @@ -164,8 +165,8 @@ static int do_fpga_dump(cmd_tbl_t *cmdtp, int flag, int argc, return fpga_dump(dev, (void *)fpga_data, data_size); } -static int do_fpga_load(cmd_tbl_t *cmdtp, int flag, int argc, - char * const argv[]) +static int do_fpga_load(struct cmd_tbl *cmdtp, int flag, int argc, + char *const argv[]) { size_t data_size = 0; long fpga_data, dev; @@ -179,8 +180,8 @@ static int do_fpga_load(cmd_tbl_t *cmdtp, int flag, int argc, return fpga_load(dev, (void *)fpga_data, data_size, BIT_FULL); } -static int do_fpga_loadb(cmd_tbl_t *cmdtp, int flag, int argc, - char * const argv[]) +static int do_fpga_loadb(struct cmd_tbl *cmdtp, int flag, int argc, + char *const argv[]) { size_t data_size = 0; long fpga_data, dev; @@ -195,8 +196,8 @@ static int do_fpga_loadb(cmd_tbl_t *cmdtp, int flag, int argc, } #if defined(CONFIG_CMD_FPGA_LOADP) -static int do_fpga_loadp(cmd_tbl_t *cmdtp, int flag, int argc, - char * const argv[]) +static int do_fpga_loadp(struct cmd_tbl *cmdtp, int flag, int argc, + char *const argv[]) { size_t data_size = 0; long fpga_data, dev; @@ -212,8 +213,8 @@ static int do_fpga_loadp(cmd_tbl_t *cmdtp, int flag, int argc, #endif #if defined(CONFIG_CMD_FPGA_LOADBP) -static int do_fpga_loadbp(cmd_tbl_t *cmdtp, int flag, int argc, - char * const argv[]) +static int do_fpga_loadbp(struct cmd_tbl *cmdtp, int flag, int argc, + char *const argv[]) { size_t data_size = 0; long fpga_data, dev; @@ -230,8 +231,8 @@ static int do_fpga_loadbp(cmd_tbl_t *cmdtp, int flag, int argc, #endif #if defined(CONFIG_CMD_FPGA_LOADMK) -static int do_fpga_loadmk(cmd_tbl_t *cmdtp, int flag, int argc, - char * const argv[]) +static int do_fpga_loadmk(struct cmd_tbl *cmdtp, int flag, int argc, + char *const argv[]) { size_t data_size = 0; void *fpga_data = NULL; @@ -363,7 +364,7 @@ static int do_fpga_loadmk(cmd_tbl_t *cmdtp, int flag, int argc, } #endif -static cmd_tbl_t fpga_commands[] = { +static struct cmd_tbl fpga_commands[] = { U_BOOT_CMD_MKENT(info, 1, 1, do_fpga_info, "", ""), U_BOOT_CMD_MKENT(dump, 3, 1, do_fpga_dump, "", ""), U_BOOT_CMD_MKENT(load, 3, 1, do_fpga_load, "", ""), @@ -385,10 +386,10 @@ static cmd_tbl_t fpga_commands[] = { #endif }; -static int do_fpga_wrapper(cmd_tbl_t *cmdtp, int flag, int argc, +static int do_fpga_wrapper(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { - cmd_tbl_t *fpga_cmd; + struct cmd_tbl *fpga_cmd; int ret; if (argc < 2) |