From 98e8d0cb32e2d4f085b469daf28473a5ad5c459f Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 8 Nov 2005 15:33:39 +0000 Subject: [PATCH] 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 --- sys/dev/rp/rp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/rp/rp.c b/sys/dev/rp/rp.c index f140edd92003..04ce4c69a355 100644 --- a/sys/dev/rp/rp.c +++ b/sys/dev/rp/rp.c @@ -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); } }