diff options
Diffstat (limited to 'arch/blackfin/include/asm/early_printk.h')
-rw-r--r-- | arch/blackfin/include/asm/early_printk.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/early_printk.h b/arch/blackfin/include/asm/early_printk.h index f5b6b7d972e..53a762b6fcd 100644 --- a/arch/blackfin/include/asm/early_printk.h +++ b/arch/blackfin/include/asm/early_printk.h | |||
@@ -21,10 +21,32 @@ | |||
21 | * GNU General Public License for more details. | 21 | * GNU General Public License for more details. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | |||
25 | #ifndef __ASM_EARLY_PRINTK_H__ | ||
26 | #define __ASM_EARLY_PRINTK_H__ | ||
27 | |||
24 | #ifdef CONFIG_EARLY_PRINTK | 28 | #ifdef CONFIG_EARLY_PRINTK |
29 | /* For those that don't include it already */ | ||
30 | #include <linux/console.h> | ||
31 | |||
25 | extern int setup_early_printk(char *); | 32 | extern int setup_early_printk(char *); |
26 | extern void enable_shadow_console(void); | 33 | extern void enable_shadow_console(void); |
34 | extern int shadow_console_enabled(void); | ||
35 | extern void mark_shadow_error(void); | ||
36 | extern void early_shadow_reg(unsigned long reg, unsigned int n); | ||
37 | extern void early_shadow_write(struct console *con, const char *s, | ||
38 | unsigned int n) __attribute__((nonnull(2))); | ||
39 | #define early_shadow_puts(str) early_shadow_write(NULL, str, strlen(str)) | ||
40 | #define early_shadow_stamp() \ | ||
41 | do { \ | ||
42 | early_shadow_puts(__FILE__ " : " __stringify(__LINE__) " ["); \ | ||
43 | early_shadow_puts(__func__); \ | ||
44 | early_shadow_puts("]\n"); \ | ||
45 | } while (0) | ||
27 | #else | 46 | #else |
28 | #define setup_early_printk(fmt) do { } while (0) | 47 | #define setup_early_printk(fmt) do { } while (0) |
29 | #define enable_shadow_console(fmt) do { } while (0) | 48 | #define enable_shadow_console(fmt) do { } while (0) |
49 | #define early_shadow_stamp() do { } while (0) | ||
30 | #endif /* CONFIG_EARLY_PRINTK */ | 50 | #endif /* CONFIG_EARLY_PRINTK */ |
51 | |||
52 | #endif /* __ASM_EARLY_PRINTK_H__ */ | ||