summaryrefslogtreecommitdiffstats
path: root/sys/dev/cy
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-08-20 05:21:50 +0000
committerbde <bde@FreeBSD.org>1998-08-20 05:21:50 +0000
commit6c1df374e4b440140263cd224b16945de1a2bc0b (patch)
tree30bc4c3605033fd445095074a0ddfe2908d13ca6 /sys/dev/cy
parentcdfa36e28bd3772297a1ac77d9d83ed427a536c7 (diff)
downloadFreeBSD-src-6c1df374e4b440140263cd224b16945de1a2bc0b.zip
FreeBSD-src-6c1df374e4b440140263cd224b16945de1a2bc0b.tar.gz
Fixed devfs initialization which I broke in the previous commit.
Fixed an old name and disorder in the sio dictionary.
Diffstat (limited to 'sys/dev/cy')
-rw-r--r--sys/dev/cy/cy.c20
-rw-r--r--sys/dev/cy/cy_isa.c20
2 files changed, 20 insertions, 20 deletions
diff --git a/sys/dev/cy/cy.c b/sys/dev/cy/cy.c
index 545a372..d10b911 100644
--- a/sys/dev/cy/cy.c
+++ b/sys/dev/cy/cy.c
@@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: cy.c,v 1.68 1998/08/13 19:03:22 bde Exp $
+ * $Id: cy.c,v 1.69 1998/08/19 04:17:38 bde Exp $
*/
#include "opt_compat.h"
@@ -120,7 +120,6 @@
#define comhardclose cyhardclose
#define commctl cymctl
#define comparam cyparam
-#define siopoll_registered cypoll_registered
#define comspeed cyspeed
#define comstart cystart
#define comwakeup cywakeup
@@ -131,9 +130,9 @@
#define siodevtotty cydevtotty
#define siodriver cydriver
#define siodtrwakeup cydtrwakeup
-#define sioioctl cyioctl
#define siointr cyintr
#define siointr1 cyintr1
+#define sioioctl cyioctl
#define sioopen cyopen
#define siopoll cypoll
#define sioprobe cyprobe
@@ -141,9 +140,10 @@
#define siosettimeout cysettimeout
#define siostop cystop
#define siowrite cywrite
+#define sio_registered cy_registered
#define sio_timeout cy_timeout
-#define sio_timeouts_until_log cy_timeouts_until_log
#define sio_timeout_handle cy_timeout_handle
+#define sio_timeouts_until_log cy_timeouts_until_log
#define sio_tty cy_tty
#define CY_MAX_PORTS (CD1400_NO_OF_CHANNELS * CY_MAX_CD1400s)
@@ -603,6 +603,12 @@ cyattach_common(cy_iobase, cy_align)
com_addr(unit) = com;
splx(s);
+ if (!sio_registered) {
+ dev = makedev(CDEV_MAJOR, 0);
+ cdevsw_add(&dev, &sio_cdevsw, NULL);
+ register_swi(SWI_TTY, siopoll);
+ sio_registered = TRUE;
+ }
#ifdef DEVFS
com->devfs_token_ttyd = devfs_add_devswf(&sio_cdevsw,
unit, DV_CHR,
@@ -631,12 +637,6 @@ cyattach_common(cy_iobase, cy_align)
#endif
}
}
- if (!sio_registered) {
- dev = makedev(CDEV_MAJOR, 0);
- cdevsw_add(&dev, &sio_cdevsw, NULL);
- register_swi(SWI_TTY, siopoll);
- sio_registered = TRUE;
- }
/* ensure an edge for the next interrupt */
cd_outb(cy_iobase, CY_CLEAR_INTR, cy_align, 0);
diff --git a/sys/dev/cy/cy_isa.c b/sys/dev/cy/cy_isa.c
index 545a372..d10b911 100644
--- a/sys/dev/cy/cy_isa.c
+++ b/sys/dev/cy/cy_isa.c
@@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: cy.c,v 1.68 1998/08/13 19:03:22 bde Exp $
+ * $Id: cy.c,v 1.69 1998/08/19 04:17:38 bde Exp $
*/
#include "opt_compat.h"
@@ -120,7 +120,6 @@
#define comhardclose cyhardclose
#define commctl cymctl
#define comparam cyparam
-#define siopoll_registered cypoll_registered
#define comspeed cyspeed
#define comstart cystart
#define comwakeup cywakeup
@@ -131,9 +130,9 @@
#define siodevtotty cydevtotty
#define siodriver cydriver
#define siodtrwakeup cydtrwakeup
-#define sioioctl cyioctl
#define siointr cyintr
#define siointr1 cyintr1
+#define sioioctl cyioctl
#define sioopen cyopen
#define siopoll cypoll
#define sioprobe cyprobe
@@ -141,9 +140,10 @@
#define siosettimeout cysettimeout
#define siostop cystop
#define siowrite cywrite
+#define sio_registered cy_registered
#define sio_timeout cy_timeout
-#define sio_timeouts_until_log cy_timeouts_until_log
#define sio_timeout_handle cy_timeout_handle
+#define sio_timeouts_until_log cy_timeouts_until_log
#define sio_tty cy_tty
#define CY_MAX_PORTS (CD1400_NO_OF_CHANNELS * CY_MAX_CD1400s)
@@ -603,6 +603,12 @@ cyattach_common(cy_iobase, cy_align)
com_addr(unit) = com;
splx(s);
+ if (!sio_registered) {
+ dev = makedev(CDEV_MAJOR, 0);
+ cdevsw_add(&dev, &sio_cdevsw, NULL);
+ register_swi(SWI_TTY, siopoll);
+ sio_registered = TRUE;
+ }
#ifdef DEVFS
com->devfs_token_ttyd = devfs_add_devswf(&sio_cdevsw,
unit, DV_CHR,
@@ -631,12 +637,6 @@ cyattach_common(cy_iobase, cy_align)
#endif
}
}
- if (!sio_registered) {
- dev = makedev(CDEV_MAJOR, 0);
- cdevsw_add(&dev, &sio_cdevsw, NULL);
- register_swi(SWI_TTY, siopoll);
- sio_registered = TRUE;
- }
/* ensure an edge for the next interrupt */
cd_outb(cy_iobase, CY_CLEAR_INTR, cy_align, 0);
OpenPOWER on IntegriCloud