summaryrefslogtreecommitdiff
path: root/board/MAI/menu
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-06-27 21:31:46 +0000
committerwdenk <wdenk>2003-06-27 21:31:46 +0000
commit8bde7f776c77b343aca29b8c7b58464d915ac245 (patch)
tree20f1fd99975215e7c658454a15cdb4ed4694e2d4 /board/MAI/menu
parent993cad9364c6b87ae429d1ed1130d8153f6f027e (diff)
* Code cleanup:LABEL_2003_06_27_2340
- remove trailing white space, trailing empty lines, C++ comments, etc. - split cmd_boot.c (separate cmd_bdinfo.c and cmd_load.c) * Patches by Kenneth Johansson, 25 Jun 2003: - major rework of command structure (work done mostly by Michal Cendrowski and Joakim Kristiansen)
Diffstat (limited to 'board/MAI/menu')
-rw-r--r--board/MAI/menu/cmd_menu.c13
-rw-r--r--board/MAI/menu/menu.c4
-rw-r--r--board/MAI/menu/menu.h8
3 files changed, 16 insertions, 9 deletions
diff --git a/board/MAI/menu/cmd_menu.c b/board/MAI/menu/cmd_menu.c
index 178817374b..4c17c6acf7 100644
--- a/board/MAI/menu/cmd_menu.c
+++ b/board/MAI/menu/cmd_menu.c
@@ -1,9 +1,16 @@
#include <common.h>
#include <command.h>
-#include <cmd_menu.h>
int do_menu( cmd_tbl_t *cmdtp, /*bd_t *bd,*/ int flag, int argc, char *argv[] )
{
-// printf("<NOT YET IMPLEMENTED>\n");
- return 0;
+/* printf("<NOT YET IMPLEMENTED>\n"); */
+ return 0;
}
+
+#if defined(CONFIG_AMIGAONEG3SE) && (CONFIG_COMMANDS & CFG_CMD_BSP)
+cmd_tbl_t U_BOOT_CMD(MENU) = MK_CMD_ENTRY(
+ "menu", 1, 1, do_menu,
+ "menu - display BIOS setup menu\n",
+ ""
+);
+#endif
diff --git a/board/MAI/menu/menu.c b/board/MAI/menu/menu.c
index 3130142647..c0c63a89dd 100644
--- a/board/MAI/menu/menu.c
+++ b/board/MAI/menu/menu.c
@@ -41,9 +41,9 @@ int menu_init (menu_t *root)
s = getenv("menu_disabled");
if (s) disabled_attr = atoi(s);
-
+
for (i=0; i<MAX_MENU_OPTIONS; i++) odata[i].used = 0;
-
+
root_menu = root;
}
diff --git a/board/MAI/menu/menu.h b/board/MAI/menu/menu.h
index e5886b83b3..8aebb7de53 100644
--- a/board/MAI/menu/menu.h
+++ b/board/MAI/menu/menu.h
@@ -48,7 +48,7 @@ typedef struct menu_s
* Text:
* A single line/limited number of characters text entry box. Text can be restricted
* to a certain charset (digits/hex digits/all/custom). Result is also available as an
- * int if numeric.
+ * int if numeric.
*
* Selection:
* One-of-many type of selection entry. User may choose on of a set of strings, which
@@ -122,7 +122,7 @@ typedef struct menu_select_s
int num_options; /* Number of mappings */
menu_select_option_t **options;
- /* Option list array */
+ /* Option list array */
} menu_select_t;
@@ -133,10 +133,10 @@ typedef struct menu_routine_s
{
OPTION_PREAMBLE
menu_routine_callback callback;
- /* routine to be called */
+ /* routine to be called */
void *user_data; /* User data, don't care for system */
} menu_routine_t;
-
+
#define MENU_CUSTOM_TYPE 5
typedef void (*menu_custom_draw)(struct menu_custom_s *);