Deleted Added
full compact
ofw_console.c (120542) ofw_console.c (120544)
1/*
2 * Copyright (C) 2001 Benno Rice.
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 * 1. Redistributions of source code must retain the above copyright

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

19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
20 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
21 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
22 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
23 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#include <sys/cdefs.h>
1/*
2 * Copyright (C) 2001 Benno Rice.
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 * 1. Redistributions of source code must retain the above copyright

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

19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
20 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
21 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
22 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
23 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#include <sys/cdefs.h>
27__FBSDID("$FreeBSD: head/sys/dev/ofw/ofw_console.c 120542 2003-09-28 05:38:37Z jake $");
27__FBSDID("$FreeBSD: head/sys/dev/ofw/ofw_console.c 120544 2003-09-28 06:51:47Z jake $");
28
29#include <sys/cdefs.h>
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/dev/ofw/ofw_console.c 120542 2003-09-28 05:38:37Z jake $");
30__FBSDID("$FreeBSD: head/sys/dev/ofw/ofw_console.c 120544 2003-09-28 06:51:47Z jake $");
31
32#include "opt_ddb.h"
33#include "opt_comconsole.h"
34
35#include <sys/param.h>
36#include <sys/kernel.h>
37#include <sys/systm.h>
38#include <sys/types.h>

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

89
90static void
91cn_drvinit(void *unused)
92{
93 phandle_t options;
94 char output[32];
95 dev_t dev;
96
31
32#include "opt_ddb.h"
33#include "opt_comconsole.h"
34
35#include <sys/param.h>
36#include <sys/kernel.h>
37#include <sys/systm.h>
38#include <sys/types.h>

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

89
90static void
91cn_drvinit(void *unused)
92{
93 phandle_t options;
94 char output[32];
95 dev_t dev;
96
97 if (ofw_consdev.cn_pri != CN_DEAD) {
97 if (ofw_consdev.cn_pri != CN_DEAD &&
98 ofw_consdev.cn_name[0] != '\0') {
98 if ((options = OF_finddevice("/options")) == -1 ||
99 OF_getprop(options, "output-device", output,
100 sizeof(output)) == -1)
101 return;
102 dev = make_dev(&ofw_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "%s",
103 output);
104 make_dev_alias(dev, "ofwcons");
105 }

--- 236 unchanged lines hidden ---
99 if ((options = OF_finddevice("/options")) == -1 ||
100 OF_getprop(options, "output-device", output,
101 sizeof(output)) == -1)
102 return;
103 dev = make_dev(&ofw_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "%s",
104 output);
105 make_dev_alias(dev, "ofwcons");
106 }

--- 236 unchanged lines hidden ---