Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux...
[deliverable/linux.git] / arch / blackfin / include / asm / early_printk.h
1 /*
2 * File: include/asm-blackfin/early_printk.h
3 * Author: Robin Getz <rgetz@blackfin.uclinux.org
4 *
5 * Created: 14Aug2007
6 * Description: function prototpyes for early printk
7 *
8 * Modified:
9 * Copyright 2004-2007 Analog Devices Inc.
10 *
11 * Bugs: Enter bugs at http://blackfin.uclinux.org/
12 *
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
17 *
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 */
23
24
25 #ifndef __ASM_EARLY_PRINTK_H__
26 #define __ASM_EARLY_PRINTK_H__
27
28 #ifdef CONFIG_EARLY_PRINTK
29 /* For those that don't include it already */
30 #include <linux/console.h>
31
32 extern int setup_early_printk(char *);
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)
46 #else
47 #define setup_early_printk(fmt) do { } while (0)
48 #define enable_shadow_console(fmt) do { } while (0)
49 #define early_shadow_stamp() do { } while (0)
50 #endif /* CONFIG_EARLY_PRINTK */
51
52 #endif /* __ASM_EARLY_PRINTK_H__ */
This page took 0.038654 seconds and 5 git commands to generate.