This patch unifies the use of config options in v2 to all start with CONFIG_
[coreboot.git] / src / include / console / loglevel.h
1 #ifndef LOGLEVEL_H
2 #define LOGLEVEL_H
3
4 /* Safe for inclusion in assembly */
5
6 #ifndef CONFIG_MAXIMUM_CONSOLE_LOGLEVEL
7 #define CONFIG_MAXIMUM_CONSOLE_LOGLEVEL 8
8 #endif
9
10 #ifndef CONFIG_DEFAULT_CONSOLE_LOGLEVEL
11 #define CONFIG_DEFAULT_CONSOLE_LOGLEVEL 8 /* anything MORE serious than BIOS_SPEW */
12 #endif
13
14 #ifndef ASM_CONSOLE_LOGLEVEL
15 #if (CONFIG_DEFAULT_CONSOLE_LOGLEVEL <= CONFIG_MAXIMUM_CONSOLE_LOGLEVEL)
16 #define ASM_CONSOLE_LOGLEVEL CONFIG_DEFAULT_CONSOLE_LOGLEVEL
17 #else
18 #define ASM_CONSOLE_LOGLEVEL CONFIG_MAXIMUM_CONSOLE_LOGLEVEL
19 #endif
20 #endif
21
22 #define BIOS_EMERG      0   /* system is unusable                   */
23 #define BIOS_ALERT      1   /* action must be taken immediately     */
24 #define BIOS_CRIT       2   /* critical conditions                  */
25 #define BIOS_ERR        3   /* error conditions                     */
26 #define BIOS_WARNING    4   /* warning conditions                   */
27 #define BIOS_NOTICE     5   /* normal but significant condition     */
28 #define BIOS_INFO       6   /* informational                        */
29 #define BIOS_DEBUG      7   /* debug-level messages                 */
30 #define BIOS_SPEW       8   /* Way too many details                 */
31
32 #endif /* LOGLEVEL_H */