Subject: SparcClassic audio
To: None <port-sparc@NetBSD.ORG>
From: Nick Sayer <nsayer@quack.kfu.com>
List: port-sparc
Date: 10/29/1996 17:03:58
I have hacked amd7930.c so that it works on a SparcClassic.

The following have to be done:

1. change the calls to AUDIO_SET_SWINTR to raise(0,PIL_AUSOFT);

This should really be done as

#ifdef SUN4M
	if (CPUISSUN4M)
		raise(0,PIL_AUSOFT);
	else
#endif
		AUDIO_SET_SWINTR;

or something like that.

2. add this to the kernel config:

audio0 at sbus0 slot ? offset ?
options AUDIO_C_HANDLER

3. apply this:

*** files.sparc-        Tue Oct 29 15:04:47 1996
--- files.sparc Tue Oct 29 14:46:26 1996
***************
*** 19,28 ****
  attach vmes at mainbus
  file  arch/sparc/dev/obio.c           obio | vmel | vmes
  
- device audio
- attach audio at mainbus, obio
- file  arch/sparc/dev/amd7930.c                audio
- 
  device auxreg
  attach auxreg at mainbus, obio
  file  arch/sparc/sparc/auxreg.c
--- 19,24 ----
***************
*** 86,91 ****
--- 82,91 ----
  device ledma {}
  attach ledma at sbus
  file  arch/sparc/dev/dma.c            dma | ledma
+ 
+ device audio
+ attach audio at mainbus, obio, sbus
+ file  arch/sparc/dev/amd7930.c                audio
  
  device esp: scsi
  attach esp at sbus, dma, obio


With all of this done, /dev/audio should work on the Sparc Classic
as well as any other 4m machine that has a 79C30 hanging off the
slavio (that is, an Axil 240 or 255).