--- //depot/vendor/freebsd/src/sys/dev/si/si.c 2005/10/16 20:25:27 +++ //depot/user/jhb/acpipci/dev/si/si.c 2006/01/06 18:17:24 @@ -541,7 +567,8 @@ pp->sp_pend = IDLE_CLOSE; pp->sp_state = 0; /* internal flag */ #ifdef SI_DEBUG - sprintf(pp->sp_name, "si%r%r", unit, x); + sprintf(pp->sp_name, "si%r%r", unit, + (int)(pp - sc->sc_ports)); #endif tp = pp->sp_tty = ttyalloc(); tp->t_sc = pp; @@ -552,7 +579,8 @@ tp->t_oproc = si_start; tp->t_param = siparam; tp->t_stop = si_stop; - ttycreate(tp, TS_CALLOUT, "A%r%r", unit, x); + ttycreate(tp, TS_CALLOUT, "A%r%r", unit, + (int)(pp - sc->sc_ports)); } try_next2: if (modp->sm_next == 0) { @@ -576,7 +604,9 @@ done_chartimes = 1; } - make_dev(&si_Scdevsw, 0, 0, 0, 0600, "si_control"); + if (unit == 0) + make_dev(&si_Scdevsw, 0, UID_ROOT, GID_WHEEL, 0600, + "si_control"); return (0); }