FreeBSD Bugzilla – Attachment 9782 Details for
Bug 19890
Stallion serial driver support missing [patch]
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.63 KB, created by
Hans Huebner
on 2000-07-13 16:00:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Hans Huebner
Created:
2000-07-13 16:00:01 UTC
Size:
2.63 KB
patch
obsolete
>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]; >+ } > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 19890
: 9782