summaryrefslogtreecommitdiff
path: root/sys/arch/atari
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-11-16 14:25:50 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-11-16 14:25:50 +0000
commit15a31cb6cc419e15252db4c6a3d3d1003b2f4ffa (patch)
tree68d67fd5a1d783cd9ed86b9b19dc1ee96900013b /sys/arch/atari
parent357779167c451dab1d400d93f7bbe476323fdab5 (diff)
Make sure ser02 will be connected to the 8530 when being opened; from netbsd
Diffstat (limited to 'sys/arch/atari')
-rw-r--r--sys/arch/atari/dev/zs.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/arch/atari/dev/zs.c b/sys/arch/atari/dev/zs.c
index d4bd7d4014a..96c8ae02cb0 100644
--- a/sys/arch/atari/dev/zs.c
+++ b/sys/arch/atari/dev/zs.c
@@ -1,4 +1,4 @@
-/* $NetBSD: zs.c,v 1.9 1995/09/23 20:29:17 leo Exp $ */
+/* $NetBSD: zs.c,v 1.9.2.1 1995/11/15 21:39:45 leo Exp $ */
/*
* Copyright (c) 1995 L. Weppelman (Atari modifications)
@@ -69,6 +69,7 @@
#include <machine/iomap.h>
#include <machine/scu.h>
#include <machine/mfp.h>
+#include <machine/video.h>
#include <dev/ic/z8530reg.h>
#include <atari/dev/zsvar.h>
@@ -306,6 +307,16 @@ struct proc *p;
if(zs >= zscd.cd_ndevs || (zi = zscd.cd_devs[zs]) == NULL)
return (ENXIO);
cs = &zi->zi_cs[unit & 1];
+
+ /*
+ * When port A (ser02) is selected on the TT, make sure
+ * the port is enabled.
+ */
+ if((machineid & ATARI_TT) && !(unit & 1)) {
+ SOUND->sd_selr = YM_IOA;
+ SOUND->sd_wdat = SOUND->sd_rdat | PA_SER2;
+ }
+
tp = cs->cs_ttyp;
if(tp == NULL) {
cs->cs_ttyp = tp = ttymalloc();