syscons.c (12724) | syscons.c (12731) |
---|---|
1/*- 2 * Copyright (c) 1992-1995 S�ren Schmidt 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 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 1992-1995 S�ren Schmidt 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 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * |
28 * $Id: syscons.c,v 1.135 1995/12/08 11:15:28 julian Exp $ | 28 * $Id: syscons.c,v 1.136 1995/12/10 13:39:18 phk Exp $ |
29 */ 30 31#include "sc.h" 32#include "apm.h" 33#if NSC > 0 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/conf.h> --- 116 unchanged lines hidden (view full) --- 153 + (offset)) % (scp->history_size))) 154 155struct isa_driver scdriver = { 156 scprobe, scattach, "sc", 1 157}; 158 159static d_open_t scopen; 160static d_close_t scclose; | 29 */ 30 31#include "sc.h" 32#include "apm.h" 33#if NSC > 0 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/conf.h> --- 116 unchanged lines hidden (view full) --- 153 + (offset)) % (scp->history_size))) 154 155struct isa_driver scdriver = { 156 scprobe, scattach, "sc", 1 157}; 158 159static d_open_t scopen; 160static d_close_t scclose; |
161static d_rdwr_t scread; 162static d_rdwr_t scwrite; | 161static d_read_t scread; 162static d_write_t scwrite; |
163static d_ioctl_t scioctl; | 163static d_ioctl_t scioctl; |
164static d_ttycv_t scdevtotty; | 164static d_devtotty_t scdevtotty; |
165static d_mmap_t scmmap; 166 167static struct cdevsw scdevsw = { 168 scopen, scclose, scread, scwrite, 169 scioctl, nullstop, noreset, scdevtotty, 170 ttselect, scmmap, nostrategy, "sc", NULL, -1 }; 171 172/* --- 3022 unchanged lines hidden --- | 165static d_mmap_t scmmap; 166 167static struct cdevsw scdevsw = { 168 scopen, scclose, scread, scwrite, 169 scioctl, nullstop, noreset, scdevtotty, 170 ttselect, scmmap, nostrategy, "sc", NULL, -1 }; 171 172/* --- 3022 unchanged lines hidden --- |