CFE is used in the upcoming Amiga X-1000 dualcore PPC board. * Largely inspired by the OF and U-Boot code. * Still largely stubbed out. * The loader builds but I don't have a machine to test it. Anyone interested?
49 lines
793 B
C++
49 lines
793 B
C++
/*
|
|
* Copyright 2004, Axel Dörfler, [email protected].
|
|
* All rights reserved. Distributed under the terms of the MIT License.
|
|
*/
|
|
|
|
|
|
#include <boot/platform.h>
|
|
#include <boot/menu.h>
|
|
#include <boot/platform/generic/text_menu.h>
|
|
|
|
|
|
void
|
|
platform_add_menus(Menu *menu)
|
|
{
|
|
// ToDo: implement me!
|
|
|
|
switch (menu->Type()) {
|
|
case MAIN_MENU:
|
|
break;
|
|
case SAFE_MODE_MENU:
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
|
|
|
|
void
|
|
platform_update_menu_item(Menu *menu, MenuItem *item)
|
|
{
|
|
platform_generic_update_text_menu_item(menu, item);
|
|
}
|
|
|
|
|
|
void
|
|
platform_run_menu(Menu *menu)
|
|
{
|
|
platform_generic_run_text_menu(menu);
|
|
}
|
|
|
|
|
|
size_t
|
|
platform_get_user_input_text(Menu *menu, MenuItem *item, char *buffer,
|
|
size_t bufferSize)
|
|
{
|
|
return platform_generic_get_user_input_text(menu, item, buffer,
|
|
bufferSize);
|
|
}
|