summaryrefslogtreecommitdiffstats
path: root/sys/dev/si
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1995-12-14 14:29:10 +0000
committerpeter <peter@FreeBSD.org>1995-12-14 14:29:10 +0000
commita3e20fdde1a1cb4b7bc34a22a5877858744589a1 (patch)
treeba6f4f5e0e2f6c93ee892f3bb72573ccae845d08 /sys/dev/si
parent13e9bc1430ceeff368f609e7859b917f6d1ebfcf (diff)
downloadFreeBSD-src-a3e20fdde1a1cb4b7bc34a22a5877858744589a1.zip
FreeBSD-src-a3e20fdde1a1cb4b7bc34a22a5877858744589a1.tar.gz
Update the skeleton DEVFS code to match reality a little closer.. :-)
Diffstat (limited to 'sys/dev/si')
-rw-r--r--sys/dev/si/si.c31
1 files changed, 11 insertions, 20 deletions
diff --git a/sys/dev/si/si.c b/sys/dev/si/si.c
index 979352c..e2daa06 100644
--- a/sys/dev/si/si.c
+++ b/sys/dev/si/si.c
@@ -30,7 +30,7 @@
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
* NO EVENT SHALL THE AUTHORS BE LIABLE.
*
- * $Id: si.c,v 1.27 1995/12/10 20:34:30 bde Exp $
+ * $Id: si.c,v 1.28 1995/12/10 20:54:35 bde Exp $
*/
#ifndef lint
@@ -163,11 +163,9 @@ struct si_softc {
#ifdef DEVFS
struct {
void *ttyd;
+ void *cuaa;
void *ttyl;
void *ttyi;
- void *cuaa;
- void *cual;
- void *cuai;
} devfs_token[32]; /* what is the max per card? */
#endif
};
@@ -695,31 +693,24 @@ mem_fail:
#ifdef DEVFS
/* path name devsw minor type uid gid perm*/
for ( x = 0; x < nport; x++ ) {
- sprintf(name,"tty%c%c",devchar[unit],portchar[x + 1]);
+ sprintf(name,"ttyA%02d", x + 1);
sc->devfs_token[x].ttyd = devfs_add_devsw(
"/", name, &si_cdevsw, unit,
DV_CHR, 0, 0, 0600);
- sprintf(name,"ttyi%c%c",devchar[unit],portchar[x + 1]);
- sc->devfs_token[x].ttyi = devfs_add_devsw(
- "/", name, &si_cdevsw, unit + 32,
- DV_CHR, 0, 0, 0600);
- sprintf(name,"ttyl%c%c",devchar[unit],portchar[x + 1]);
- sc->devfs_token[x].ttyl = devfs_add_devsw(
- "/", name, &si_cdevsw, unit + 64,
- DV_CHR, 0, 0, 0600);
- sprintf(name,"cua%c%c",devchar[unit],portchar[x + 1]);
+ sprintf(name,"cuaA%02d", x + 1);
sc->devfs_token[x].cuaa = devfs_add_devsw(
"/", name, &si_cdevsw, unit + 128,
DV_CHR, 0, 0, 0600);
- sprintf(name,"cuai%c%c",devchar[unit],portchar[x + 1]);
- sc->devfs_token[x].cuai = devfs_add_devsw(
- "/", name, &si_cdevsw, unit + 160,
+ sprintf(name,"ttyiA%02d", x + 1);
+ sc->devfs_token[x].ttyi = devfs_add_devsw(
+ "/", name, &si_cdevsw, unit + 0x10000,
DV_CHR, 0, 0, 0600);
- sprintf(name,"cual%c%c",devchar[unit],portchar[x + 1]);
- sc->devfs_token[x].cual = devfs_add_devsw(
- "/", name, &si_cdevsw, unit + 192,
+ sprintf(name,"ttylA%02d", x + 1);
+ sc->devfs_token[x].ttyl = devfs_add_devsw(
+ "/", name, &si_cdevsw, unit + 0x20000,
DV_CHR, 0, 0, 0600);
}
+ /* XXX: no global yet */
#endif
return (1);
}
OpenPOWER on IntegriCloud