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
CommitLineData
0ae53640
RG
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
837ec2d5
RG
24
25#ifndef __ASM_EARLY_PRINTK_H__
26#define __ASM_EARLY_PRINTK_H__
27
0ae53640 28#ifdef CONFIG_EARLY_PRINTK
837ec2d5
RG
29/* For those that don't include it already */
30#include <linux/console.h>
31
0ae53640 32extern int setup_early_printk(char *);
3f871fea 33extern void enable_shadow_console(void);
837ec2d5
RG
34extern int shadow_console_enabled(void);
35extern void mark_shadow_error(void);
36extern void early_shadow_reg(unsigned long reg, unsigned int n);
37extern 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)
0ae53640
RG
46#else
47#define setup_early_printk(fmt) do { } while (0)
3f871fea 48#define enable_shadow_console(fmt) do { } while (0)
837ec2d5 49#define early_shadow_stamp() do { } while (0)
0ae53640 50#endif /* CONFIG_EARLY_PRINTK */
837ec2d5
RG
51
52#endif /* __ASM_EARLY_PRINTK_H__ */
This page took 0.196603 seconds and 5 git commands to generate.