Set si_drv1 to our softc for all the six dev_t's we create for a serial port.

This commit is contained in:
Poul-Henning Kamp 2003-02-02 21:25:22 +00:00
parent f7093daaae
commit 6607b68526
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110249

View file

@ -1103,6 +1103,8 @@ determined_type: ;
com->devs[5] = make_dev(&sio_cdevsw,
minorbase | CALLOUT_MASK | CONTROL_LOCK_STATE,
UID_UUCP, GID_DIALER, 0660, "cuala%r", unit);
for (rid = 0; rid < 6; rid++)
com->devs[rid]->si_drv1 = com;
com->flags = flags;
com->pps.ppscap = PPS_CAPTUREASSERT | PPS_CAPTURECLEAR;
pps_init(&com->pps);