/* * Blackfin On-Chip Serial Driver * * Copyright 2006-2011 Analog Devices Inc. * * Enter bugs at http://blackfin.uclinux.org/ * * Licensed under the GPL-2 or later. */#if defined(CONFIG_SERIAL_BFIN_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)#define SUPPORT_SYSRQ#endif#define DRIVER_NAME "bfin-uart"#define pr_fmt(fmt) DRIVER_NAME ": " fmt#include<linux/module.h>#include<linux/ioport.h>#include<linux/gfp.h>#include<linux/io.h>#include<linux/init.h>#include<linux/console.h>#include<linux/sysrq.h>#include<linux/platform_device.h>#include<linux/tty.h>#include<linux/tty_flip.h>#include<linux/serial_core.h>#include<linux/gpio.h>#include<linux/irq.h>#include<linux/kgdb.h>#include<linux/slab.h>#include<linux/dma-mapping.h>#include<asm/portmux.h>#include<asm/cacheflush.h>#include<asm/dma.h>#include