uart_dev_lpc.c (279724) | uart_dev_lpc.c (281438) |
---|---|
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 * --- 11 unchanged lines hidden (view full) --- 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 27#include <sys/cdefs.h> | 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 * --- 11 unchanged lines hidden (view full) --- 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 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/dev/uart/uart_dev_lpc.c 279724 2015-03-07 15:24:15Z ian $"); | 28__FBSDID("$FreeBSD: head/sys/dev/uart/uart_dev_lpc.c 281438 2015-04-11 17:16:23Z andrew $"); |
29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/bus.h> 33#include <sys/conf.h> 34#include <machine/bus.h> 35#include <machine/fdt.h> 36 --- 386 unchanged lines hidden (view full) --- 423}; 424 425static struct uart_class uart_lpc_class = { 426 "lpc_ns8250", 427 lpc_ns8250_methods, 428 sizeof(struct lpc_ns8250_softc), 429 .uc_ops = &uart_lpc_ns8250_ops, 430 .uc_range = 8, | 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/bus.h> 33#include <sys/conf.h> 34#include <machine/bus.h> 35#include <machine/fdt.h> 36 --- 386 unchanged lines hidden (view full) --- 423}; 424 425static struct uart_class uart_lpc_class = { 426 "lpc_ns8250", 427 lpc_ns8250_methods, 428 sizeof(struct lpc_ns8250_softc), 429 .uc_ops = &uart_lpc_ns8250_ops, 430 .uc_range = 8, |
431 .uc_rclk = DEFAULT_RCLK | 431 .uc_rclk = DEFAULT_RCLK, 432 .uc_rshift = 0 |
432}; 433 434static struct ofw_compat_data compat_data[] = { 435 {"lpc,uart", (uintptr_t)&uart_lpc_class}, 436 {NULL, (uintptr_t)NULL}, 437}; 438UART_FDT_CLASS_AND_DEVICE(compat_data); 439 --- 495 unchanged lines hidden --- | 433}; 434 435static struct ofw_compat_data compat_data[] = { 436 {"lpc,uart", (uintptr_t)&uart_lpc_class}, 437 {NULL, (uintptr_t)NULL}, 438}; 439UART_FDT_CLASS_AND_DEVICE(compat_data); 440 --- 495 unchanged lines hidden --- |