kern_cons.c (10537) | kern_cons.c (10653) |
---|---|
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.30 1995/06/26 07:39:49 bde Exp $ | 39 * $Id: cons.c,v 1.31 1995/09/03 05:43:01 julian Exp $ |
40 */ 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/conf.h> 45#include <sys/proc.h> 46#include <sys/tty.h> 47 --- 27 unchanged lines hidden (view full) --- 75static d_open_t *cn_phys_open; /* physical device open function */ 76static struct consdev *cn_tab; /* physical console device info */ 77static struct tty *cn_tp; /* physical console tty struct */ 78 79#ifdef DEVFS 80#include <sys/devfsext.h> 81#include "sys/kernel.h" 82 | 40 */ 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/conf.h> 45#include <sys/proc.h> 46#include <sys/tty.h> 47 --- 27 unchanged lines hidden (view full) --- 75static d_open_t *cn_phys_open; /* physical device open function */ 76static struct consdev *cn_tab; /* physical console device info */ 77static struct tty *cn_tp; /* physical console tty struct */ 78 79#ifdef DEVFS 80#include <sys/devfsext.h> 81#include "sys/kernel.h" 82 |
83void cndev_init(caddr_t data) /* data not used */ | 83void cndev_init(void *data) /* data not used */ |
84{ 85 void * x; 86/* path name devsw minor type uid gid perm*/ 87 x=dev_add("/misc", "console", cnopen, 0, DV_CHR, 0, 0, 0640); 88} 89SYSINIT(cndev,SI_SUB_DEVFS, SI_ORDER_ANY, cndev_init, NULL) 90#endif /*DEVFS*/ 91 --- 210 unchanged lines hidden --- | 84{ 85 void * x; 86/* path name devsw minor type uid gid perm*/ 87 x=dev_add("/misc", "console", cnopen, 0, DV_CHR, 0, 0, 0640); 88} 89SYSINIT(cndev,SI_SUB_DEVFS, SI_ORDER_ANY, cndev_init, NULL) 90#endif /*DEVFS*/ 91 --- 210 unchanged lines hidden --- |