Subject: audioamd.c question
To: None <port-sparc@netbsd.org>
From: Blaz Antonic <blaz.antonic@siol.net>
List: port-sparc
Date: 02/13/2004 22:18:16
Hello,

Could somebody please explain why audioamd.c uses hardware and software
interrupt handler ? I'm not familiar with Sparc architecture but i
presume the AUDIO_SET_SWINTR invokes software interrupt.

This only happens at two points in that entire source and it's in
hardware interrupt handler (which is triggered when data needs to be
sent to/from 79c30 chip). Why is separate _software_ interrupt required
? Why doesn't interrupt handler just call the am7930swintr() function
directly, without nesting (does nesting happen there at all ?)
interrupts or even simpler, why isn't that code included in the body of
HW interrupt handler ? 

What are the priorities of interrupts on Sparc anyway ? Do HW interrupts
take precedence over user-settable software interrupts like x86 ?

Blaz Antonic