Commit | Line | Data |
---|---|---|
0ae53640 | 1 | /* |
96f1050d | 2 | * function prototpyes for early printk |
0ae53640 | 3 | * |
96f1050d | 4 | * Copyright 2007-2009 Analog Devices Inc. |
0ae53640 | 5 | * |
96f1050d | 6 | * Licensed under the GPL-2 or later. |
0ae53640 RG |
7 | */ |
8 | ||
837ec2d5 RG |
9 | #ifndef __ASM_EARLY_PRINTK_H__ |
10 | #define __ASM_EARLY_PRINTK_H__ | |
11 | ||
0ae53640 | 12 | #ifdef CONFIG_EARLY_PRINTK |
837ec2d5 RG |
13 | /* For those that don't include it already */ |
14 | #include <linux/console.h> | |
15 | ||
0ae53640 | 16 | extern int setup_early_printk(char *); |
3f871fea | 17 | extern void enable_shadow_console(void); |
837ec2d5 RG |
18 | extern int shadow_console_enabled(void); |
19 | extern void mark_shadow_error(void); | |
20 | extern void early_shadow_reg(unsigned long reg, unsigned int n); | |
21 | extern void early_shadow_write(struct console *con, const char *s, | |
22 | unsigned int n) __attribute__((nonnull(2))); | |
23 | #define early_shadow_puts(str) early_shadow_write(NULL, str, strlen(str)) | |
24 | #define early_shadow_stamp() \ | |
25 | do { \ | |
26 | early_shadow_puts(__FILE__ " : " __stringify(__LINE__) " ["); \ | |
27 | early_shadow_puts(__func__); \ | |
28 | early_shadow_puts("]\n"); \ | |
29 | } while (0) | |
0ae53640 RG |
30 | #else |
31 | #define setup_early_printk(fmt) do { } while (0) | |
3f871fea | 32 | #define enable_shadow_console(fmt) do { } while (0) |
837ec2d5 | 33 | #define early_shadow_stamp() do { } while (0) |
0ae53640 | 34 | #endif /* CONFIG_EARLY_PRINTK */ |
837ec2d5 RG |
35 | |
36 | #endif /* __ASM_EARLY_PRINTK_H__ */ |