Switch to using sys/dev/cons.? instead of old hp-derived generic console.
This commit is contained in:
parent
687c7563fe
commit
3266a82b9f
@ -65,7 +65,7 @@
|
||||
*/
|
||||
/*-
|
||||
* from: @(#)conf.c 7.9 (Berkeley) 5/28/91
|
||||
* $Id: conf.c,v 1.6 1994/07/08 07:57:50 lkestel Exp $
|
||||
* $Id: conf.c,v 1.7 1994/07/09 06:36:13 briggs Exp $
|
||||
*/
|
||||
/*
|
||||
ALICE
|
||||
@ -84,6 +84,7 @@
|
||||
#include <sys/tty.h>
|
||||
#include <sys/conf.h>
|
||||
#include <sys/vnode.h>
|
||||
#include <dev/cons.h>
|
||||
|
||||
int rawread __P((dev_t, struct uio *, int));
|
||||
int rawwrite __P((dev_t, struct uio *, int));
|
||||
@ -97,7 +98,7 @@ int ttselect __P((dev_t, int, struct proc *));
|
||||
int n __P((dev_t, int, caddr_t, int, struct proc *))
|
||||
|
||||
/* bdevsw-specific types */
|
||||
#define dev_type_dump(n) int n __P((dev_t))
|
||||
#define dev_type_dump(n) int n ()
|
||||
#define dev_type_size(n) int n __P((dev_t))
|
||||
|
||||
#define dev_decl(n,t) __CONCAT(dev_type_,t)(__CONCAT(n,t))
|
||||
@ -451,3 +452,11 @@ chrtoblk(dev)
|
||||
return NODEV;
|
||||
return (makedev(blkmaj, minor(dev)));
|
||||
}
|
||||
|
||||
int itecnprobe(), itecninit(), itecngetc(), itecnputc();
|
||||
int sercnprobe(), sercninit(), sercngetc(), sercnputc();
|
||||
|
||||
struct consdev constab[] = {
|
||||
{ itecnprobe, itecninit, itecngetc, itecnputc },
|
||||
{ 0 },
|
||||
};
|
||||
|
@ -72,7 +72,7 @@
|
||||
* from: Utah $Hdr: machdep.c 1.63 91/04/24$
|
||||
*
|
||||
* from: @(#)machdep.c 7.16 (Berkeley) 6/3/91
|
||||
* $Id: machdep.c,v 1.19 1994/07/08 07:57:53 lkestel Exp $
|
||||
* $Id: machdep.c,v 1.20 1994/07/09 06:36:11 briggs Exp $
|
||||
*/
|
||||
|
||||
#include <param.h>
|
||||
@ -118,6 +118,8 @@
|
||||
#include <vm/vm_kern.h>
|
||||
#include <vm/vm_page.h>
|
||||
|
||||
#include <dev/cons.h>
|
||||
|
||||
#include "via.h"
|
||||
|
||||
/* The following is used externally (sysctl_hw) */
|
||||
@ -2451,14 +2453,12 @@ cpu_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
|
||||
|
||||
switch (name[0]) {
|
||||
case CPU_CONSDEV:
|
||||
/*
|
||||
if (cn_tab != NULL)
|
||||
consdev = cn_tab->cn_dev;
|
||||
else
|
||||
consdev = NODEV;
|
||||
return (sysctl_rdstruct(oldp, oldlenp, newp, &consdev,
|
||||
sizeof consdev));
|
||||
*/
|
||||
default:
|
||||
return (EOPNOTSUPP);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user