Date: Thu, 13 Jul 2000 15:53:55 +0200 From: Hans Huebner <hans@klosterfrau.leveld.de> To: FreeBSD-gnats-submit@freebsd.org Subject: i386/19890: Stallion serial driver support missing [patch] Message-ID: <E13CjR5-0000rS-00@klosterfrau.leveld.de>
next in thread | raw e-mail | index | archive | help
>Number: 19890
>Category: i386
>Synopsis: Stallion serial driver support missing [patch]
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Jul 13 08:00:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Hans Huebner
>Release: FreeBSD 4.0-STABLE i386
>Organization:
>Environment:
4.0-STABLE with Stallion EasyConnection PCI
>Description:
MAKEDEV does not support creating device entries for the card. DEVFS
support is missing.
>How-To-Repeat:
Install Stallion EasyConnection PCI and try to use it with 4.0-STABLE
>Fix:
Index: etc/MAKEDEV
===================================================================
RCS file: /usr/cvs/src/etc/MAKEDEV,v
retrieving revision 1.243.2.7
diff -u -r1.243.2.7 MAKEDEV
--- etc/MAKEDEV 2000/06/11 07:04:36 1.243.2.7
+++ etc/MAKEDEV 2000/07/13 13:46:55
@@ -1050,6 +1050,26 @@
mknod ttym$unit c 63 $m
;;
+# Stallion 'stl' driver
+
+cue?)
+ umask 7
+ unit=`expr $i : 'cue[a-z]*\(.\)$'`
+ m=`ttyminor $unit`
+ mknod cue$unit c 72 `expr $m + 128` uucp:dialer
+ mknod cule$unit c 72 `expr $m + 64 + 128` uucp:dialer
+ mknod cuie$unit c 72 `expr $m + 32 + 128` uucp:dialer
+ umask 77
+ ;;
+
+ttyE?)
+ unit=`expr $i : 'ttyE[a-z]*\(.\)$'`
+ m=`ttyminor $unit`
+ mknod ttyE$unit c 72 $m
+ mknod ttylE$unit c 72 `expr $m + 64`
+ mknod ttyiE$unit c 72 `expr $m + 32`
+ ;;
+
# Specialix SI/XIO.
# Note: these are 'base 1' to match the numbers on the panels, and to match
# the manual that comes with the system.
Index: sys/i386/isa/stallion.c
===================================================================
RCS file: /usr/cvs/src/sys/i386/isa/stallion.c,v
retrieving revision 1.39
diff -u -r1.39 stallion.c
--- sys/i386/isa/stallion.c 1999/09/28 11:45:27 1.39
+++ sys/i386/isa/stallion.c 2000/07/13 08:44:21
@@ -1,5 +1,7 @@
/*****************************************************************************/
+/* #define DEBUG 1 */
+
/*
* stallion.c -- stallion multiport serial driver.
*
@@ -2850,7 +2852,7 @@
static int stl_brdinit(stlbrd_t *brdp)
{
stlpanel_t *panelp;
- int i, j, k;
+ int i, j, k, u;
#if DEBUG
printf("stl_brdinit(brdp=%x): unit=%d type=%d io1=%x io2=%x irq=%d\n",
@@ -2883,12 +2885,37 @@
return(ENODEV);
}
- for (i = 0, k = 0; (i < STL_MAXPANELS); i++) {
+ for (i = 0, k = 0, u = 0; (i < STL_MAXPANELS); i++) {
panelp = brdp->panels[i];
if (panelp != (stlpanel_t *) NULL) {
stl_initports(brdp, panelp);
- for (j = 0; (j < panelp->nrports); j++)
+ for (j = 0; (j < panelp->nrports); j++, u++) {
+ make_dev(&stl_cdevsw,
+ u,
+ UID_ROOT, GID_WHEEL, 0600,
+ "ttyE%r", u);
+ make_dev(&stl_cdevsw,
+ u | STL_CTRLINIT,
+ UID_ROOT, GID_WHEEL, 0600,
+ "ttyiE%r", u);
+ make_dev(&stl_cdevsw,
+ u | STL_CTRLLOCK,
+ UID_ROOT, GID_WHEEL, 0600,
+ "ttylE%r", u);
+ make_dev(&stl_cdevsw,
+ u | STL_CALLOUTDEV,
+ UID_UUCP, GID_DIALER, 0660,
+ "cue%r", u);
+ make_dev(&stl_cdevsw,
+ u | STL_CALLOUTDEV | STL_CTRLINIT,
+ UID_UUCP, GID_DIALER, 0660,
+ "cuie%r", u);
+ make_dev(&stl_cdevsw,
+ u | STL_CALLOUTDEV | STL_CTRLLOCK,
+ UID_UUCP, GID_DIALER, 0660,
+ "cule%r", u);
brdp->ports[k++] = panelp->ports[j];
+ }
}
}
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E13CjR5-0000rS-00>
