Deleted Added
full compact
exynos_uart.c (277132) exynos_uart.c (279724)
1/*
2 * Copyright (c) 2003 Marcel Moolenaar
3 * Copyright (c) 2007-2009 Andrew Turner
4 * Copyright (c) 2013 Ruslan Bukin <br@bsdpad.com>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 13 unchanged lines hidden (view full) ---

22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2003 Marcel Moolenaar
3 * Copyright (c) 2007-2009 Andrew Turner
4 * Copyright (c) 2013 Ruslan Bukin <br@bsdpad.com>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 13 unchanged lines hidden (view full) ---

22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/arm/samsung/exynos/exynos_uart.c 277132 2015-01-13 15:04:28Z br $");
30__FBSDID("$FreeBSD: head/sys/arm/samsung/exynos/exynos_uart.c 279724 2015-03-07 15:24:15Z ian $");
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/bus.h>
35#include <sys/conf.h>
36#include <sys/cons.h>
37#include <sys/tty.h>
38#include <sys/rman.h>
39#include <machine/bus.h>
40#include <machine/intr.h>
41
42#include <dev/uart/uart.h>
43#include <dev/uart/uart_cpu.h>
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/bus.h>
35#include <sys/conf.h>
36#include <sys/cons.h>
37#include <sys/tty.h>
38#include <sys/rman.h>
39#include <machine/bus.h>
40#include <machine/intr.h>
41
42#include <dev/uart/uart.h>
43#include <dev/uart/uart_cpu.h>
44#include <dev/uart/uart_cpu_fdt.h>
44#include <dev/uart/uart_bus.h>
45
46#include <arm/samsung/exynos/exynos_uart.h>
47
48#include "uart_if.h"
49
50#define DEF_CLK 100000000
51

--- 315 unchanged lines hidden (view full) ---

367
368static int
369exynos4210_bus_ioctl(struct uart_softc *sc, int request, intptr_t data)
370{
371
372 return (EINVAL);
373}
374
45#include <dev/uart/uart_bus.h>
46
47#include <arm/samsung/exynos/exynos_uart.h>
48
49#include "uart_if.h"
50
51#define DEF_CLK 100000000
52

--- 315 unchanged lines hidden (view full) ---

368
369static int
370exynos4210_bus_ioctl(struct uart_softc *sc, int request, intptr_t data)
371{
372
373 return (EINVAL);
374}
375
375struct uart_class uart_exynos4210_class = {
376static struct uart_class uart_exynos4210_class = {
376 "exynos4210 class",
377 exynos4210_methods,
378 1,
379 .uc_ops = &uart_exynos4210_ops,
380 .uc_range = 8,
381 .uc_rclk = 0,
382};
377 "exynos4210 class",
378 exynos4210_methods,
379 1,
380 .uc_ops = &uart_exynos4210_ops,
381 .uc_range = 8,
382 .uc_rclk = 0,
383};
384
385static struct ofw_compat_data compat_data[] = {
386 {"exynos", (uintptr_t)&uart_exynos4210_class},
387 {NULL, (uintptr_t)NULL},
388};
389UART_FDT_CLASS_AND_DEVICE(compat_data);