summaryrefslogtreecommitdiff
path: root/board/MAI/menu
diff options
context:
space:
mode:
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 178817374b3..4c17c6acf76 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 31301426472..c0c63a89ddc 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 e5886b83b3e..8aebb7de537 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 *);