Path: blob/master/arch/blackfin/include/asm/early_printk.h
15126 views
/*1* function prototpyes for early printk2*3* Copyright 2007-2009 Analog Devices Inc.4*5* Licensed under the GPL-2 or later.6*/78#ifndef __ASM_EARLY_PRINTK_H__9#define __ASM_EARLY_PRINTK_H__1011#ifdef CONFIG_EARLY_PRINTK12/* For those that don't include it already */13#include <linux/console.h>1415extern int setup_early_printk(char *);16extern void enable_shadow_console(void);17extern int shadow_console_enabled(void);18extern void mark_shadow_error(void);19extern void early_shadow_reg(unsigned long reg, unsigned int n);20extern void early_shadow_write(struct console *con, const char *s,21unsigned int n) __attribute__((nonnull(2)));22#define early_shadow_puts(str) early_shadow_write(NULL, str, strlen(str))23#define early_shadow_stamp() \24do { \25early_shadow_puts(__FILE__ " : " __stringify(__LINE__) " ["); \26early_shadow_puts(__func__); \27early_shadow_puts("]\n"); \28} while (0)29#else30#define setup_early_printk(fmt) do { } while (0)31#define enable_shadow_console(fmt) do { } while (0)32#define early_shadow_stamp() do { } while (0)33#endif /* CONFIG_EARLY_PRINTK */3435#endif /* __ASM_EARLY_PRINTK_H__ */363738