ofw_console.c (111194) | ofw_console.c (111815) |
---|---|
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 --- 11 unchanged lines hidden (view full) --- 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#ifndef lint 27static const char rcsid[] = | 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 --- 11 unchanged lines hidden (view full) --- 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#ifndef lint 27static const char rcsid[] = |
28 "$FreeBSD: head/sys/dev/ofw/ofw_console.c 111194 2003-02-20 20:54:45Z phk $"; | 28 "$FreeBSD: head/sys/dev/ofw/ofw_console.c 111815 2003-03-03 12:15:54Z phk $"; |
29#endif /* not lint */ 30 31#include "opt_ddb.h" 32#include "opt_comconsole.h" 33 34#include <sys/param.h> 35#include <sys/kernel.h> 36#include <sys/systm.h> --- 11 unchanged lines hidden (view full) --- 48 49static d_open_t ofw_dev_open; 50static d_close_t ofw_dev_close; 51static d_ioctl_t ofw_dev_ioctl; 52 53#define CDEV_MAJOR 97 54 55static struct cdevsw ofw_cdevsw = { | 29#endif /* not lint */ 30 31#include "opt_ddb.h" 32#include "opt_comconsole.h" 33 34#include <sys/param.h> 35#include <sys/kernel.h> 36#include <sys/systm.h> --- 11 unchanged lines hidden (view full) --- 48 49static d_open_t ofw_dev_open; 50static d_close_t ofw_dev_close; 51static d_ioctl_t ofw_dev_ioctl; 52 53#define CDEV_MAJOR 97 54 55static struct cdevsw ofw_cdevsw = { |
56 /* open */ ofw_dev_open, 57 /* close */ ofw_dev_close, 58 /* read */ ttyread, 59 /* write */ ttywrite, 60 /* ioctl */ ofw_dev_ioctl, 61 /* poll */ ttypoll, 62 /* mmap */ nommap, 63 /* strategy */ nostrategy, 64 /* name */ "ofw", 65 /* major */ CDEV_MAJOR, 66 /* dump */ nodump, 67 /* psize */ nopsize, 68 /* flags */ 0, | 56 .d_open = ofw_dev_open, 57 .d_close = ofw_dev_close, 58 .d_read = ttyread, 59 .d_write = ttywrite, 60 .d_ioctl = ofw_dev_ioctl, 61 .d_poll = ttypoll, 62 .d_name = "ofw", 63 .d_maj = CDEV_MAJOR, |
69}; 70 71static struct tty *ofw_tp = NULL; 72static int polltime; 73static struct callout_handle ofw_timeouthandle 74 = CALLOUT_HANDLE_INITIALIZER(&ofw_timeouthandle); 75 76#if defined(DDB) && defined(ALT_BREAK_TO_DEBUGGER) --- 268 unchanged lines hidden --- | 64}; 65 66static struct tty *ofw_tp = NULL; 67static int polltime; 68static struct callout_handle ofw_timeouthandle 69 = CALLOUT_HANDLE_INITIALIZER(&ofw_timeouthandle); 70 71#if defined(DDB) && defined(ALT_BREAK_TO_DEBUGGER) --- 268 unchanged lines hidden --- |