Deleted Added
full compact
uart.h (279723) uart.h (279724)
1/*-
2 * Copyright (c) 2003 Marcel Moolenaar
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *

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

18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2003 Marcel Moolenaar
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *

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

18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/dev/uart/uart.h 279723 2015-03-07 15:18:57Z ian $
26 * $FreeBSD: head/sys/dev/uart/uart.h 279724 2015-03-07 15:24:15Z ian $
27 */
28
29#ifndef _DEV_UART_H_
30#define _DEV_UART_H_
31
32/*
33 * Bus access structure. This structure holds the minimum information needed
34 * to access the UART. The rclk field, although not important to actually

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

59 bus_space_barrier((bas)->bst, (bas)->bsh, 0, 0, \
60 BUS_SPACE_BARRIER_READ|BUS_SPACE_BARRIER_WRITE)
61
62/*
63 * UART device classes.
64 */
65struct uart_class;
66
27 */
28
29#ifndef _DEV_UART_H_
30#define _DEV_UART_H_
31
32/*
33 * Bus access structure. This structure holds the minimum information needed
34 * to access the UART. The rclk field, although not important to actually

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

59 bus_space_barrier((bas)->bst, (bas)->bsh, 0, 0, \
60 BUS_SPACE_BARRIER_READ|BUS_SPACE_BARRIER_WRITE)
61
62/*
63 * UART device classes.
64 */
65struct uart_class;
66
67extern struct uart_class uart_imx_class __attribute__((weak));
68extern struct uart_class uart_msm_class __attribute__((weak));
69extern struct uart_class uart_ns8250_class __attribute__((weak));
70extern struct uart_class uart_quicc_class __attribute__((weak));
71extern struct uart_class uart_s3c2410_class __attribute__((weak));
72extern struct uart_class uart_sab82532_class __attribute__((weak));
73extern struct uart_class uart_sbbc_class __attribute__((weak));
74extern struct uart_class uart_z8530_class __attribute__((weak));
67extern struct uart_class uart_ns8250_class __attribute__((weak));
68extern struct uart_class uart_quicc_class __attribute__((weak));
69extern struct uart_class uart_s3c2410_class __attribute__((weak));
70extern struct uart_class uart_sab82532_class __attribute__((weak));
71extern struct uart_class uart_sbbc_class __attribute__((weak));
72extern struct uart_class uart_z8530_class __attribute__((weak));
75extern struct uart_class uart_lpc_class __attribute__((weak));
76extern struct uart_class uart_pl011_class __attribute__((weak));
77extern struct uart_class uart_cdnc_class __attribute__((weak));
78extern struct uart_class uart_ti8250_class __attribute__((weak));
79extern struct uart_class uart_vybrid_class __attribute__((weak));
80extern struct uart_class at91_usart_class __attribute__((weak));
81extern struct uart_class uart_exynos4210_class __attribute__((weak));
82
73
83
84#ifdef PC98
85struct uart_class *uart_pc98_getdev(u_long port);
86#endif
87
88/*
89 * Device flags.
90 */
91#define UART_FLAGS_CONSOLE(f) ((f) & 0x10)

--- 16 unchanged lines hidden ---
74#ifdef PC98
75struct uart_class *uart_pc98_getdev(u_long port);
76#endif
77
78/*
79 * Device flags.
80 */
81#define UART_FLAGS_CONSOLE(f) ((f) & 0x10)

--- 16 unchanged lines hidden ---