cn_tab no longer exists, use cnadd() to add a console device. Note that
this may result in duplicate console output in some cases.
This commit is contained in:
parent
f95cdc1b96
commit
86a48bed45
@ -266,10 +266,10 @@ CONS_DRIVER(prom, NULL, NULL, NULL, promcngetc, promcncheckc, promcnputc, NULL);
|
||||
void
|
||||
promcnattach(int alpha_console)
|
||||
{
|
||||
cn_tab = &prom_consdev;
|
||||
prom_consdev.cn_pri = CN_NORMAL;
|
||||
prom_consdev.cn_dev = makedev(CDEV_MAJOR, 0);
|
||||
make_dev(&prom_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "promcons");
|
||||
cnadd(&prom_consdev);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -231,8 +231,8 @@ zs_cnattach(vm_offset_t base, vm_offset_t offset)
|
||||
|
||||
zs_consdev.cn_dev = makedev(CDEV_MAJOR, 0);
|
||||
zs_consdev.cn_pri = CN_NORMAL;
|
||||
cn_tab = &zs_consdev;
|
||||
make_dev(&zs_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600, "zs0");
|
||||
cnadd(&zs_consdev);
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
@ -2840,7 +2840,7 @@ siocnattach(port, speed)
|
||||
siocnopen(&sp, siocniobase, comdefaultrate);
|
||||
splx(s);
|
||||
|
||||
cn_tab = &sio_consdev;
|
||||
cnadd(&sio_consdev);
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
@ -1407,7 +1407,7 @@ sccnattach(void)
|
||||
sc_console_unit = unit;
|
||||
sc_console = SC_STAT(sc_get_softc(unit, SC_KERNEL_CONSOLE)->dev[0]);
|
||||
consdev.cn_dev = makedev(CDEV_MAJOR, 0);
|
||||
cn_tab = &consdev;
|
||||
cnadd(&consdev);
|
||||
}
|
||||
|
||||
#endif /* __alpha__ */
|
||||
|
@ -4466,7 +4466,7 @@ siocnattach(port, speed)
|
||||
siocnopen(&sp, siocniobase, comdefaultrate);
|
||||
splx(s);
|
||||
|
||||
cn_tab = &sio_consdev;
|
||||
cnadd(&sio_consdev);
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
@ -4466,7 +4466,7 @@ siocnattach(port, speed)
|
||||
siocnopen(&sp, siocniobase, comdefaultrate);
|
||||
splx(s);
|
||||
|
||||
cn_tab = &sio_consdev;
|
||||
cnadd(&sio_consdev);
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
@ -1411,7 +1411,7 @@ sccnattach(void)
|
||||
sc_console_unit = unit;
|
||||
sc_console = SC_STAT(sc_get_softc(unit, SC_KERNEL_CONSOLE)->dev[0]);
|
||||
consdev.cn_dev = makedev(CDEV_MAJOR, 0);
|
||||
cn_tab = &consdev;
|
||||
cnadd(&consdev);
|
||||
}
|
||||
|
||||
#endif /* __alpha__ */
|
||||
|
Loading…
Reference in New Issue
Block a user