Plan 9 from Bell Labs’s /usr/web/sources/extra/9hist/pc/audio.h

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


## diffname pc/audio.h 1995/0119
## diff -e /dev/null /n/fornaxdump/1995/0119/sys/src/brazil/pc/audio.h
0a
enum
{
	Bufsize		= 16*1024,	/* 92 ms each */
	Nbuf		= 16,		/* 1.5 seconds total */
	Dma		= 6,
	Irq		= 7,

	DMA2_WRMASK	= 0xd4,
	DMA2_WRMODE	= 0xd6,
	DMA2_CLRBP	= 0xd8,

	DMA6_ADDRESS	= 0xc8,
	DMA6_COUNT	= 0xca,
	DMA6_LPAGE	= 0x89,
	DMA6_HPAGE	= 0x489,

	Dspport		= 0x220,

	PORT_RESET	= Dspport + 0x6,
	PORT_READ	= Dspport + 0xA,
	PORT_WRITE	= Dspport + 0xC,
	PORT_WSTATUS	= Dspport + 0xC,
	PORT_RSTATUS	= Dspport + 0xE,

	PORT_MIXER_ADDR	= Dspport + 0x4,
	PORT_MIXER_DATA	= Dspport + 0x5,

	PORT_CLRI8	= Dspport + 0xE,
	PORT_CLRI16	= Dspport + 0xF,
	PORT_CLRI401	= Dspport + 0x100,
};

#define	seteisadma(a, b)	;
#define	CACHELINESZ		8
#define UNCACHED(type, v)	(type*)((ulong)(v))
.
## diffname pc/audio.h 1995/0211
## diff -e /n/fornaxdump/1995/0119/sys/src/brazil/pc/audio.h /n/fornaxdump/1995/0211/sys/src/brazil/pc/audio.h
33,34c
#define seteisadma(a, b)	;
#define CACHELINESZ		8
.
## diffname pc/audio.h 1995/0214
## diff -e /n/fornaxdump/1995/0211/sys/src/brazil/pc/audio.h /n/fornaxdump/1995/0214/sys/src/brazil/pc/audio.h
6,30c
	SBswab		= 0,
.
## diffname pc/audio.h 1997/0327
## diff -e /n/fornaxdump/1995/0214/sys/src/brazil/pc/audio.h /n/emeliedump/1997/0327/sys/src/brazil/pc/audio.h
11a

#define Int0vec			VectorPIC
#define setvec(v, f, a)		intrenable(v, f, a, BUSUNKNOWN)
.
## diffname pc/audio.h 1997/0404
## diff -e /n/emeliedump/1997/0327/sys/src/brazil/pc/audio.h /n/emeliedump/1997/0404/sys/src/brazil/pc/audio.h
9c
#define seteisadma(a, b)	dmainit(a);
.
## diffname pc/audio.h 1998/0910
## diff -e /n/emeliedump/1997/0404/sys/src/brazil/pc/audio.h /n/emeliedump/1998/0910/sys/src/brazil/pc/audio.h
13c
#define Int0vec
.
## diffname pc/audio.h 1999/0403
## diff -e /n/emeliedump/1998/0910/sys/src/brazil/pc/audio.h /n/emeliedump/1999/0403/sys/src/brazil/pc/audio.h
9c
#define seteisadma(a, b)	dmainit(a, Bufsize);
.
## diffname pc/audio.h 1999/0504
## diff -e /n/emeliedump/1999/0403/sys/src/brazil/pc/audio.h /n/emeliedump/1999/0504/sys/src/brazil/pc/audio.h
5a
	IrqAUDIO	= 7,
.
## diffname pc/audio.h 1999/0819
## diff -e /n/emeliedump/1999/0504/sys/src/brazil/pc/audio.h /n/emeliedump/1999/0819/sys/src/brazil/pc/audio.h
15c
#define setvec(v, f, a)		intrenable(v, f, a, BUSUNKNOWN, "audio")
.
## diffname pc/audio.h 2001/1016
## diff -e /n/emeliedump/1999/0819/sys/src/brazil/pc/audio.h /n/emeliedump/2001/1016/sys/src/9/pc/audio.h
7c
	SBswab	= 0,
.
3,4c
	Bufsize		= 4*1024,	/* 23.22 ms each */
	Nbuf		= 32,		/* .74 seconds total */
.
## diffname pc/audio.h 2001/1018
## diff -e /n/emeliedump/2001/1016/sys/src/9/pc/audio.h /n/emeliedump/2001/1018/sys/src/9/pc/audio.h
3,4c
	Bufsize		= 1024,	/* 5.8 ms each */
	Nbuf		= 128,		/* .74 seconds total */
.
## diffname pc/audio.h 2001/1019
## diff -e /n/emeliedump/2001/1018/sys/src/9/pc/audio.h /n/emeliedump/2001/1019/sys/src/9/pc/audio.h
3,4c
	Bufsize	= 1024,	/* 5.8 ms each, must be power of two */
	Nbuf		= 128,	/* .74 seconds total */
.

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].