1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Sync with sys/i386/isa/pcaudio.c revision 1.42.

This commit is contained in:
KATO Takenori 1998-07-16 10:25:50 +00:00
parent acb673f70f
commit d4f1ed8581
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37701

View File

@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* *
* $Id: pcaudio.c,v 1.15 1998/04/16 16:33:21 kato Exp $ * $Id: pcaudio.c,v 1.16 1998/06/08 08:55:44 kato Exp $
*/ */
#include "pca.h" #include "pca.h"
@ -122,7 +122,7 @@ static void pca_init __P((void));
static void pca_pause __P((void)); static void pca_pause __P((void));
static __inline void static __inline void
conv(const void *table, void *buff, unsigned long n) conv(const void *table, void *buff, unsigned int n)
{ {
__asm__("1:\tmovb (%2), %3\n" __asm__("1:\tmovb (%2), %3\n"
"\txlatb\n" "\txlatb\n"
@ -131,7 +131,7 @@ conv(const void *table, void *buff, unsigned long n)
"\tdec %1\n" "\tdec %1\n"
"\tjnz 1b\n" "\tjnz 1b\n"
: :
:"b" ((long)table), "c" (n), "D" ((long)buff), "a" ((char)n) :"b" (table), "c" (n), "D" (buff), "a" ((char)n)
:"bx","cx","di","ax"); :"bx","cx","di","ax");
} }
@ -505,7 +505,7 @@ pcaintr(struct clockframe *frame)
"outb %0,$0x42" "outb %0,$0x42"
#endif #endif
: : "a" ((char)pca_status.buffer[pca_status.index]), : : "a" ((char)pca_status.buffer[pca_status.index]),
"b" ((long)volume_table) ); "b" (volume_table) );
enable_intr(); enable_intr();
pca_status.counter += pca_status.scale; pca_status.counter += pca_status.scale;
pca_status.index = (pca_status.counter >> 8); pca_status.index = (pca_status.counter >> 8);