kern_cons.c (36735) | kern_cons.c (38485) |
---|---|
1/* 2 * Copyright (c) 1988 University of Utah. 3 * Copyright (c) 1991 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * the Systems Programming Group of the University of Utah Computer 8 * Science Department. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * from: @(#)cons.c 7.2 (Berkeley) 5/9/91 | 1/* 2 * Copyright (c) 1988 University of Utah. 3 * Copyright (c) 1991 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * the Systems Programming Group of the University of Utah Computer 8 * Science Department. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * from: @(#)cons.c 7.2 (Berkeley) 5/9/91 |
39 * $Id: cons.c,v 1.57 1998/03/28 10:32:56 bde Exp $ | 39 * $Id: cons.c,v 1.58 1998/06/07 17:09:58 dfr Exp $ |
40 */ 41 42#include "opt_devfs.h" 43 44#include <sys/param.h> 45#ifdef DEVFS 46#include <sys/devfsext.h> 47#endif /*DEVFS*/ --- 28 unchanged lines hidden (view full) --- 76 77static d_open_t cnopen; 78static d_close_t cnclose; 79static d_read_t cnread; 80static d_write_t cnwrite; 81static d_ioctl_t cnioctl; 82static d_poll_t cnpoll; 83 | 40 */ 41 42#include "opt_devfs.h" 43 44#include <sys/param.h> 45#ifdef DEVFS 46#include <sys/devfsext.h> 47#endif /*DEVFS*/ --- 28 unchanged lines hidden (view full) --- 76 77static d_open_t cnopen; 78static d_close_t cnclose; 79static d_read_t cnread; 80static d_write_t cnwrite; 81static d_ioctl_t cnioctl; 82static d_poll_t cnpoll; 83 |
84#define CDEV_MAJOR 0 85static struct cdevsw cn_cdevsw = 86 { cnopen, cnclose, cnread, cnwrite, /*0*/ 87 cnioctl, nullstop, nullreset, nodevtotty,/* console */ 88 cnpoll, nommap, NULL, "console", NULL, -1 }; | 84#define CDEV_MAJOR 0 85static struct cdevsw cn_cdevsw = { 86 cnopen, cnclose, cnread, cnwrite, 87 cnioctl, nullstop, nullreset, nodevtotty, 88 cnpoll, nommap, NULL, "console", 89 NULL, -1, nodump, nopsize, 90 D_TTY, 91}; |
89 90static dev_t cn_dev_t; /* seems to be never really used */ 91SYSCTL_OPAQUE(_machdep, CPU_CONSDEV, consdev, CTLTYPE_OPAQUE|CTLFLAG_RD, 92 &cn_dev_t, sizeof cn_dev_t, "T,dev_t", ""); 93 94static int cn_mute; 95 96int cons_unavail = 0; /* XXX: --- 350 unchanged lines hidden --- | 92 93static dev_t cn_dev_t; /* seems to be never really used */ 94SYSCTL_OPAQUE(_machdep, CPU_CONSDEV, consdev, CTLTYPE_OPAQUE|CTLFLAG_RD, 95 &cn_dev_t, sizeof cn_dev_t, "T,dev_t", ""); 96 97static int cn_mute; 98 99int cons_unavail = 0; /* XXX: --- 350 unchanged lines hidden --- |