summaryrefslogtreecommitdiffstats
path: root/sys/i4b
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i4b')
-rw-r--r--sys/i4b/driver/i4b_tel.c23
1 files changed, 18 insertions, 5 deletions
diff --git a/sys/i4b/driver/i4b_tel.c b/sys/i4b/driver/i4b_tel.c
index 5e5c9c2..3d577c3 100644
--- a/sys/i4b/driver/i4b_tel.c
+++ b/sys/i4b/driver/i4b_tel.c
@@ -29,7 +29,7 @@
*
* $FreeBSD$
*
- * last edit-date: [Fri Jul 9 08:35:30 1999]
+ * last edit-date: [Sat Aug 28 22:28:25 1999]
*
*---------------------------------------------------------------------------*/
@@ -297,11 +297,24 @@ i4btelattach()
tel_sc[i][j].audiofmt = CVT_NONE;
tel_sc[i][j].rcvttab = 0;
tel_sc[i][j].wcvttab = 0;
- tel_sc[i][j].result = 0;
- tel_init_linktab(i);
- make_dev(&i4btel_cdevsw, i,
- UID_ROOT, GID_WHEEL, 0600, "i4btel%d", i);
+ tel_sc[i][j].result = 0;
+
+ switch(j)
+ {
+ case FUNCTEL: /* normal i4btel device */
+ make_dev(&i4btel_cdevsw, i,
+ UID_ROOT, GID_WHEEL,
+ 0600, "i4btel%d", i);
+ break;
+
+ case FUNCDIAL: /* i4bteld dialout device */
+ make_dev(&i4btel_cdevsw, i+(1<<UNITBITS),
+ UID_ROOT, GID_WHEEL,
+ 0600, "i4bteld%d", i);
+ break;
+ }
}
+ tel_init_linktab(i);
}
}
OpenPOWER on IntegriCloud