From 7d4f5cd15ea5cbc7fac8b3b192be5940271b6be5 Mon Sep 17 00:00:00 2001
From: jhb <jhb@FreeBSD.org>
Date: Tue, 8 Nov 2005 15:33:39 +0000
Subject: 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(-)

(limited to 'sys/dev/rp')

diff --git a/sys/dev/rp/rp.c b/sys/dev/rp/rp.c
index f140edd..04ce4c6 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);
 		}
 	}
 
-- 
cgit v1.1