ofw_console.c (174898) | ofw_console.c (177253) |
---|---|
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 174898 2007-12-25 17:52:02Z rwatson $"); | 27__FBSDID("$FreeBSD: head/sys/dev/ofw/ofw_console.c 177253 2008-03-16 10:58:09Z rwatson $"); |
28 29#include "opt_comconsole.h" 30#include "opt_ofw.h" 31 32#include <sys/param.h> 33#include <sys/kdb.h> 34#include <sys/kernel.h> 35#include <sys/priv.h> --- 64 unchanged lines hidden (view full) --- 100 * XXX: devices on platforms where the sab driver works. 101 */ 102 dev = make_dev(&ofw_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "%s", 103 output); 104 make_dev_alias(dev, "ofwcons"); 105 } 106} 107 | 28 29#include "opt_comconsole.h" 30#include "opt_ofw.h" 31 32#include <sys/param.h> 33#include <sys/kdb.h> 34#include <sys/kernel.h> 35#include <sys/priv.h> --- 64 unchanged lines hidden (view full) --- 100 * XXX: devices on platforms where the sab driver works. 101 */ 102 dev = make_dev(&ofw_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "%s", 103 output); 104 make_dev_alias(dev, "ofwcons"); 105 } 106} 107 |
108SYSINIT(cndev, SI_SUB_CONFIGURE, SI_ORDER_MIDDLE, cn_drvinit, NULL) | 108SYSINIT(cndev, SI_SUB_CONFIGURE, SI_ORDER_MIDDLE, cn_drvinit, NULL); |
109 110static int stdin; 111static int stdout; 112 113static int 114ofw_dev_open(struct cdev *dev, int flag, int mode, struct thread *td) 115{ 116 struct tty *tp; --- 189 unchanged lines hidden --- | 109 110static int stdin; 111static int stdout; 112 113static int 114ofw_dev_open(struct cdev *dev, int flag, int mode, struct thread *td) 115{ 116 struct tty *tp; --- 189 unchanged lines hidden --- |