From 15a31cb6cc419e15252db4c6a3d3d1003b2f4ffa Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 16 Nov 1995 14:25:50 +0000 Subject: 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(-) (limited to 'sys/arch') 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(); -- cgit v1.2.3