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:
jlemon 2001-10-24 18:30:05 +00:00
parent f95cdc1b96
commit 86a48bed45
7 changed files with 7 additions and 7 deletions

View File

@ -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);
}
/*

View File

@ -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);
}

View File

@ -2840,7 +2840,7 @@ siocnattach(port, speed)
siocnopen(&sp, siocniobase, comdefaultrate);
splx(s);
cn_tab = &sio_consdev;
cnadd(&sio_consdev);
return (0);
}

View File

@ -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__ */

View File

@ -4466,7 +4466,7 @@ siocnattach(port, speed)
siocnopen(&sp, siocniobase, comdefaultrate);
splx(s);
cn_tab = &sio_consdev;
cnadd(&sio_consdev);
return (0);
}

View File

@ -4466,7 +4466,7 @@ siocnattach(port, speed)
siocnopen(&sp, siocniobase, comdefaultrate);
splx(s);
cn_tab = &sio_consdev;
cnadd(&sio_consdev);
return (0);
}

View File

@ -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__ */