summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/pcvt
diff options
context:
space:
mode:
authoryokota <yokota@FreeBSD.org>1999-10-06 13:01:12 +0000
committeryokota <yokota@FreeBSD.org>1999-10-06 13:01:12 +0000
commitcf60da86f22ac56e217c712f8eeaae3b1bc2d033 (patch)
tree82a91977c8f8ffb10bb1c6de8ce7e8784af15028 /sys/i386/isa/pcvt
parent4d084d0fc60643dedb70beff2726fe8d9b3f467a (diff)
downloadFreeBSD-src-cf60da86f22ac56e217c712f8eeaae3b1bc2d033.zip
FreeBSD-src-cf60da86f22ac56e217c712f8eeaae3b1bc2d033.tar.gz
- Remove cdevsw_add().
- Call ttyregister() and make_dev() to register virtual terminals. - Set nottystop to tp->t_stop.
Diffstat (limited to 'sys/i386/isa/pcvt')
-rw-r--r--sys/i386/isa/pcvt/pcvt_drv.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/i386/isa/pcvt/pcvt_drv.c b/sys/i386/isa/pcvt/pcvt_drv.c
index 1d3936d..bee9220 100644
--- a/sys/i386/isa/pcvt/pcvt_drv.c
+++ b/sys/i386/isa/pcvt/pcvt_drv.c
@@ -355,15 +355,15 @@ pcattach(struct isa_device *dev)
#if !PCVT_NETBSD && !(PCVT_FREEBSD > 110 && PCVT_FREEBSD < 200)
for(i = 0; i < totalscreens; i++)
+ {
+ ttyregister(&pccons[i]);
vs[i].vs_tty = &pccons[i];
+ make_dev(&pc_cdevsw, i, UID_ROOT, GID_WHEEL, 0600, "ttyv%r", i);
+ }
#endif /* !PCVT_NETBSD && !(PCVT_FREEBSD > 110 && PCVT_FREEBSD < 200) */
async_update(UPDATE_START); /* start asynchronous updates */
-#if PCVT_FREEBSD > 205
- cdevsw_add(&pc_cdevsw);
-#endif /* PCVT_FREEBSD > 205 */
-
#if PCVT_NETBSD > 9
vthand.ih_fun = pcrint;
@@ -473,6 +473,7 @@ pcopen(Dev_t dev, int flag, int mode, struct proc *p)
tp->t_oproc = pcstart;
tp->t_param = pcparam;
+ tp->t_stop = nottystop;
tp->t_dev = dev;
if ((tp->t_state & TS_ISOPEN) == 0)
OpenPOWER on IntegriCloud