Deleted Added
full compact
uart_dev_ti8250.c (279724) uart_dev_ti8250.c (281438)
1/*-
2 * Copyright (c) 2013 Ian Lepore
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 *

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

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
27#include "opt_platform.h"
28
29#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2013 Ian Lepore
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 *

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

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
27#include "opt_platform.h"
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/dev/uart/uart_dev_ti8250.c 279724 2015-03-07 15:24:15Z ian $");
30__FBSDID("$FreeBSD: head/sys/dev/uart/uart_dev_ti8250.c 281438 2015-04-11 17:16:23Z andrew $");
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/bus.h>
35#include <sys/conf.h>
36#include <sys/kernel.h>
37#include <sys/sysctl.h>
38#include <machine/bus.h>

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

132};
133
134static struct uart_class uart_ti8250_class = {
135 "ti8250",
136 ti8250_methods,
137 sizeof(struct ti8250_softc),
138 .uc_ops = &uart_ns8250_ops,
139 .uc_range = 0x88,
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/bus.h>
35#include <sys/conf.h>
36#include <sys/kernel.h>
37#include <sys/sysctl.h>
38#include <machine/bus.h>

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

132};
133
134static struct uart_class uart_ti8250_class = {
135 "ti8250",
136 ti8250_methods,
137 sizeof(struct ti8250_softc),
138 .uc_ops = &uart_ns8250_ops,
139 .uc_range = 0x88,
140 .uc_rclk = 48000000
140 .uc_rclk = 48000000,
141 .uc_rshift = 0
141};
142static struct ofw_compat_data compat_data[] = {
143 {"ti,ns16550", (uintptr_t)&uart_ti8250_class},
144 {NULL, (uintptr_t)NULL},
145};
146UART_FDT_CLASS_AND_DEVICE(compat_data);
142};
143static struct ofw_compat_data compat_data[] = {
144 {"ti,ns16550", (uintptr_t)&uart_ti8250_class},
145 {NULL, (uintptr_t)NULL},
146};
147UART_FDT_CLASS_AND_DEVICE(compat_data);