Deleted Added
full compact
uart_cpu_sparc64.c (122466) uart_cpu_sparc64.c (127215)
1/*
1/*
2 * Copyright (c) 2003 Marcel Moolenaar
2 * Copyright (c) 2003, 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 *
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.

--- 9 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>
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 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.

--- 9 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_cpu_sparc64.c 122466 2003-11-11 06:52:04Z jake $");
28__FBSDID("$FreeBSD: head/sys/dev/uart/uart_cpu_sparc64.c 127215 2004-03-20 02:14:02Z marcel $");
29
30#include <sys/param.h>
31#include <sys/systm.h>
32
33#include <machine/bus.h>
34#include <machine/bus_private.h>
35
36#include <dev/ofw/openfirm.h>
37#include <machine/ofw_machdep.h>
38
39#include <dev/uart/uart.h>
40#include <dev/uart/uart_cpu.h>
41
29
30#include <sys/param.h>
31#include <sys/systm.h>
32
33#include <machine/bus.h>
34#include <machine/bus_private.h>
35
36#include <dev/ofw/openfirm.h>
37#include <machine/ofw_machdep.h>
38
39#include <dev/uart/uart.h>
40#include <dev/uart/uart_cpu.h>
41
42bus_space_tag_t uart_bus_space_io;
43bus_space_tag_t uart_bus_space_mem;
44
42static phandle_t uart_cpu_getdev_keyboard(phandle_t root);
43
44static struct bus_space_tag bst_store[3];
45
46static int
47uart_cpu_channel(char *dev)
48{
49 char alias[64];

--- 136 unchanged lines hidden ---
45static phandle_t uart_cpu_getdev_keyboard(phandle_t root);
46
47static struct bus_space_tag bst_store[3];
48
49static int
50uart_cpu_channel(char *dev)
51{
52 char alias[64];

--- 136 unchanged lines hidden ---