1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

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.
This commit is contained in:
Robert Watson 2002-05-20 05:04:41 +00:00
parent d4c2c31303
commit 12f2edc7d5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=96969
2 changed files with 12 additions and 0 deletions

View File

@ -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) {

View File

@ -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) {