2007-10-09 03:24:49 -06:00
|
|
|
/*
|
2009-09-24 08:11:24 -06:00
|
|
|
* function prototpyes for early printk
|
2007-10-09 03:24:49 -06:00
|
|
|
*
|
2009-09-24 08:11:24 -06:00
|
|
|
* Copyright 2007-2009 Analog Devices Inc.
|
2007-10-09 03:24:49 -06:00
|
|
|
*
|
2009-09-24 08:11:24 -06:00
|
|
|
* Licensed under the GPL-2 or later.
|
2007-10-09 03:24:49 -06:00
|
|
|
*/
|
|
|
|
|
2009-07-07 14:17:09 -06:00
|
|
|
#ifndef __ASM_EARLY_PRINTK_H__
|
|
|
|
#define __ASM_EARLY_PRINTK_H__
|
|
|
|
|
2007-10-09 03:24:49 -06:00
|
|
|
#ifdef CONFIG_EARLY_PRINTK
|
2009-07-07 14:17:09 -06:00
|
|
|
/* For those that don't include it already */
|
|
|
|
#include <linux/console.h>
|
|
|
|
|
2007-10-09 03:24:49 -06:00
|
|
|
extern int setup_early_printk(char *);
|
2009-07-06 08:53:19 -06:00
|
|
|
extern void enable_shadow_console(void);
|
2009-07-07 14:17:09 -06:00
|
|
|
extern int shadow_console_enabled(void);
|
|
|
|
extern void mark_shadow_error(void);
|
|
|
|
extern void early_shadow_reg(unsigned long reg, unsigned int n);
|
|
|
|
extern void early_shadow_write(struct console *con, const char *s,
|
|
|
|
unsigned int n) __attribute__((nonnull(2)));
|
|
|
|
#define early_shadow_puts(str) early_shadow_write(NULL, str, strlen(str))
|
|
|
|
#define early_shadow_stamp() \
|
|
|
|
do { \
|
|
|
|
early_shadow_puts(__FILE__ " : " __stringify(__LINE__) " ["); \
|
|
|
|
early_shadow_puts(__func__); \
|
|
|
|
early_shadow_puts("]\n"); \
|
|
|
|
} while (0)
|
2007-10-09 03:24:49 -06:00
|
|
|
#else
|
|
|
|
#define setup_early_printk(fmt) do { } while (0)
|
2009-07-06 08:53:19 -06:00
|
|
|
#define enable_shadow_console(fmt) do { } while (0)
|
2009-07-07 14:17:09 -06:00
|
|
|
#define early_shadow_stamp() do { } while (0)
|
2007-10-09 03:24:49 -06:00
|
|
|
#endif /* CONFIG_EARLY_PRINTK */
|
2009-07-07 14:17:09 -06:00
|
|
|
|
|
|
|
#endif /* __ASM_EARLY_PRINTK_H__ */
|