uart_dev_s3c2410.c (260889) | uart_dev_s3c2410.c (272103) |
---|---|
1/* 2 * Copyright (c) 2003 Marcel Moolenaar 3 * Copyright (c) 2007-2009 Andrew Turner 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 2003 Marcel Moolenaar 3 * Copyright (c) 2007-2009 Andrew Turner 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/sys/arm/s3c2xx0/uart_dev_s3c2410.c 260889 2014-01-19 19:36:11Z imp $"); | 29__FBSDID("$FreeBSD: head/sys/arm/samsung/s3c2xx0/uart_dev_s3c2410.c 272103 2014-09-25 11:38:26Z gavin $"); |
30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/bus.h> 34#include <sys/conf.h> 35#include <sys/cons.h> 36#include <sys/tty.h> 37#include <sys/rman.h> 38#include <machine/bus.h> 39#include <machine/intr.h> 40 41#include <dev/uart/uart.h> 42#include <dev/uart/uart_cpu.h> 43#include <dev/uart/uart_bus.h> | 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/bus.h> 34#include <sys/conf.h> 35#include <sys/cons.h> 36#include <sys/tty.h> 37#include <sys/rman.h> 38#include <machine/bus.h> 39#include <machine/intr.h> 40 41#include <dev/uart/uart.h> 42#include <dev/uart/uart_cpu.h> 43#include <dev/uart/uart_bus.h> |
44#include 45#include 46#include 47#include | 44#include <arm/samsung/s3c2xx0/s3c2440reg.h> 45#include <arm/samsung/s3c2xx0/uart_dev_s3c2410.h> 46#include <arm/samsung/s3c2xx0/s3c2xx0reg.h> 47#include <arm/samsung/s3c2xx0/s3c2xx0var.h> |
48#include "uart_if.h" 49 50/* Finds the subirq from the parent */ 51#define get_sub_irq(parent, offset) \ 52 ((parent == S3C24X0_INT_UART0) ? S3C24X0_SUBIRQ_MIN + offset : \ 53 ((parent == S3C24X0_INT_UART1) ? S3C24X0_SUBIRQ_MIN + 3 + offset : \ 54 S3C24X0_SUBIRQ_MIN + 6 + offset)) 55#define RX_OFF 0 --- 350 unchanged lines hidden --- | 48#include "uart_if.h" 49 50/* Finds the subirq from the parent */ 51#define get_sub_irq(parent, offset) \ 52 ((parent == S3C24X0_INT_UART0) ? S3C24X0_SUBIRQ_MIN + offset : \ 53 ((parent == S3C24X0_INT_UART1) ? S3C24X0_SUBIRQ_MIN + 3 + offset : \ 54 S3C24X0_SUBIRQ_MIN + 6 + offset)) 55#define RX_OFF 0 --- 350 unchanged lines hidden --- |