1/* 2 * Copyright 2011 Intel Corporation - All Rights Reserved 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 7 * Boston MA 02110-1301, USA; either version 2 of the License, or 8 * (at your option) any later version; incorporated herein by reference. 9 * 10 */ 11 12#ifndef __CONFIG_H__ 13#define __CONFIG_H__ 14 15/* 16 * These values correspond to the "default" and "ui" commands 17 * respectively. "ui" takes precendence over "default". 18 */ 19#define LEVEL_DEFAULT 1 20#define LEVEL_UI 2 21 22extern short uappendlen; //bytes in append= command 23extern short ontimeoutlen; //bytes in ontimeout command 24extern short onerrorlen; //bytes in onerror command 25extern short forceprompt; //force prompt 26extern short noescape; //no escape 27extern short nocomplete; //no label completion on TAB key 28extern short allowimplicit; //allow implicit kernels 29extern short allowoptions; //user-specified options allowed 30extern short includelevel; //nesting level 31extern short defaultlevel; //the current level of default 32extern short vkernel; //have we seen any "label" statements? 33extern short displaycon; //conio.inc 34extern short nohalt; //idle.inc 35 36extern const char *default_cmd; //"default" command line 37extern const char *onerror; //"onerror" command line 38extern const char *ontimeout; //"ontimeout" command line 39 40extern void cat_help_file(int key); 41extern struct menu_entry *find_label(const char *str); 42extern void print_labels(const char *prefix, size_t len); 43 44extern int new_linux_kernel(char *okernel, char *ocmdline); 45 46extern void pm_load_high(com32sys_t *regs); 47 48extern void ldlinux_enter_command(void); 49extern void ldlinux_console_init(void); 50extern const char *apply_extension(const char *kernel, const char *ext); 51 52#endif /* __CONFIG_H__ */ 53