#define pr_fmt(fmt) …
#include <linux/console.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/serial_core.h>
#include <linux/sizes.h>
#include <linux/of.h>
#include <linux/of_fdt.h>
#include <linux/acpi.h>
#ifdef CONFIG_FIX_EARLYCON_MEM
#include <asm/fixmap.h>
#endif
#include <asm/serial.h>
static struct console early_con = …;
static struct earlycon_device early_console_dev = …;
static void __iomem * __init earlycon_map(resource_size_t paddr, size_t size)
{ … }
static void __init earlycon_init(struct earlycon_device *device,
const char *name)
{ … }
static void __init earlycon_print_info(struct earlycon_device *device)
{ … }
static int __init parse_options(struct earlycon_device *device, char *options)
{ … }
static int __init register_earlycon(char *buf, const struct earlycon_id *match)
{ … }
int __init setup_earlycon(char *buf)
{ … }
bool earlycon_acpi_spcr_enable __initdata;
static int __init param_setup_earlycon(char *buf)
{ … }
early_param(…);
#ifdef CONFIG_OF_EARLY_FLATTREE
int __init of_setup_earlycon(const struct earlycon_id *match,
unsigned long node,
const char *options)
{ … }
#endif