1 /* 2 * Copyright 2009, Johannes Wischert 3 * Distributed under the terms of the MIT License. 4 */ 5 6 7 #include "video.h" 8 9 #include <arch/cpu.h> 10 #include <boot/stage2.h> 11 #include <boot/platform.h> 12 #include <boot/menu.h> 13 #include <boot/kernel_args.h> 14 #include <boot/images.h> 15 #include <util/list.h> 16 #include <drivers/driver_settings.h> 17 18 #include <stdio.h> 19 #include <stdlib.h> 20 #include <string.h> 21 22 23 #define TRACE_VIDEO 24 #ifdef TRACE_VIDEO 25 # define TRACE(x) dprintf x 26 #else 27 # define TRACE(x) ; 28 #endif 29 30 31 32 // #pragma mark - 33 34 35 bool 36 video_mode_hook(Menu *menu, MenuItem *item) 37 { 38 return true; 39 } 40 41 42 Menu * 43 video_mode_menu() 44 { 45 Menu *menu = new(nothrow) Menu(CHOICE_MENU, "Select Video Mode"); 46 MenuItem *item; 47 48 menu->AddItem(item = new(nothrow) MenuItem("Default")); 49 item->SetMarked(true); 50 item->Select(true); 51 item->SetHelpText("The Default video mode is the one currently configured " 52 "in the system. If there is no mode configured yet, a viable mode will " 53 "be chosen automatically."); 54 55 56 menu->AddSeparatorItem(); 57 menu->AddItem(item = new(nothrow) MenuItem("Return to main menu")); 58 item->SetType(MENU_ITEM_NO_CHOICE); 59 60 return menu; 61 } 62 63 64 65 // #pragma mark - 66 67 extern "C" void 68 platform_switch_to_logo(void) 69 { 70 // in debug mode, we'll never show the logo 71 if ((platform_boot_options() & BOOT_OPTION_DEBUG_OUTPUT) != 0) 72 return; 73 #warning ARM:TODO 74 } 75 76 77 extern "C" void 78 platform_switch_to_text_mode(void) 79 { 80 #warning ARM:TODO 81 } 82 83 84 extern "C" status_t 85 platform_init_video(void) 86 { 87 #warning ARM:TODO 88 return B_OK; 89 } 90 91