Fix support for multiple RocketPort cards in the same machine by including

the RocketPort unit number in the name of the devices.  This means that
unit 0 device names will change from ttyR0 .. ttyRf to ttyR00 .. ttyR0f.

Reviewed by:	phk
This commit is contained in:
John Baldwin 2005-11-08 15:33:39 +00:00
parent 9e581686a3
commit 98e8d0cb32
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=152190

View File

@ -826,7 +826,7 @@ rp_attachcommon(CONTROLLER_T *ctlp, int num_aiops, int num_ports)
rp->rp_cts = (ChanStatus & CTS_ACT) != 0;
line = (unit << 5) | (aiop << 3) | chan;
rp_table(line) = rp;
ttycreate(tp, TS_CALLOUT, "R%r", port);
ttycreate(tp, TS_CALLOUT, "R%r%r", unit, port);
}
}