From 12f2edc7d5e6a7c7c75b8f4b2c3f36cfe4158ab2 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Mon, 20 May 2002 05:04:41 +0000 Subject: Bump the rc driver a little bit closer to the 21st century: use make_dev() to create device nodes for each of the serial port channels (ttym%d and cuam%d respectively, as borrowed from MAKEDEV). This allows the rc driver to work in 5.0. I've tested it with only one card, but will try sticking in a second card tomorrow and see what happens. --- sys/dev/rc/rc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/dev') diff --git a/sys/dev/rc/rc.c b/sys/dev/rc/rc.c index 291c0e20f63d..1e3f410c90a1 100644 --- a/sys/dev/rc/rc.c +++ b/sys/dev/rc/rc.c @@ -264,6 +264,12 @@ rcattach(dvp) tp->t_lflag = tp->t_iflag = tp->t_oflag = 0; tp->t_cflag = TTYDEF_CFLAG; tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED; + make_dev(&rc_cdevsw, chan + CD180_NCHAN * rcb->rcb_unit, + UID_ROOT, GID_WHEEL, 0600, "ttym%d", chan + CD180_NCHAN * + rcb->rcb_unit); + make_dev(&rc_cdevsw, chan + CD180_NCHAN * rcb->rcb_unit + 128, + UID_UUCP, GID_DIALER, 0660, "cuam%d", chan + CD180_NCHAN * + rcb->rcb_unit + 128); } rcb->rcb_probed = RC_ATTACHED; if (!rc_started) { -- cgit v1.3