From 052648671dfaf9cd29ee99b1274d2e29557d83fc Mon Sep 17 00:00:00 2001 From: deraadt Date: Thu, 16 Nov 1995 14:25:49 +0000 Subject: [PATCH] Make sure ser02 will be connected to the 8530 when being opened; from netbsd --- sys/arch/atari/dev/zs.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 #include #include +#include #include #include @@ -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(); -- 2.20.1