uart_subr.c (228468) | uart_subr.c (239278) |
---|---|
1/*- 2 * Copyright (c) 2004 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) 2004 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_subr.c 228468 2011-12-13 13:32:56Z ed $"); | 28__FBSDID("$FreeBSD: head/sys/dev/uart/uart_subr.c 239278 2012-08-15 05:37:10Z gonzo $"); |
29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/bus.h> 33 34#include <machine/bus.h> 35#include <machine/vmparam.h> 36 --- 10 unchanged lines hidden (view full) --- 47#define UART_TAG_RS 7 48#define UART_TAG_SB 8 49#define UART_TAG_XO 9 50 51static struct uart_class *uart_classes[] = { 52 &uart_ns8250_class, 53 &uart_sab82532_class, 54 &uart_z8530_class, | 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/bus.h> 33 34#include <machine/bus.h> 35#include <machine/vmparam.h> 36 --- 10 unchanged lines hidden (view full) --- 47#define UART_TAG_RS 7 48#define UART_TAG_SB 8 49#define UART_TAG_XO 9 50 51static struct uart_class *uart_classes[] = { 52 &uart_ns8250_class, 53 &uart_sab82532_class, 54 &uart_z8530_class, |
55 &uart_lpc_class, |
|
55}; 56static size_t uart_nclasses = sizeof(uart_classes) / sizeof(uart_classes[0]); 57 58static bus_addr_t 59uart_parse_addr(const char **p) 60{ 61 return (strtoul(*p, (char**)(uintptr_t)p, 0)); 62} --- 244 unchanged lines hidden --- | 56}; 57static size_t uart_nclasses = sizeof(uart_classes) / sizeof(uart_classes[0]); 58 59static bus_addr_t 60uart_parse_addr(const char **p) 61{ 62 return (strtoul(*p, (char**)(uintptr_t)p, 0)); 63} --- 244 unchanged lines hidden --- |