Subject: NetBSD am7930 audio
To: port-alpha <port-alpha@netbsd.org>
From: Josef Watzko <josef.watzko@A1Plus.at>
List: port-alpha
Date: 01/08/2000 20:41:04
This is a multi-part message in MIME format.
------=_NextPart_000_0041_01BF5A18.AE90BFA0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
i am also interested in seeing a am7930 audio driver for NetBSD/Alpha.
I don't know if someone has tested your work=20
( http://www.sprc.qut.edu.au/~mcgarry/netbsd/audio.html )
on Alpha.
Here are my experiences so far.
I installed your changes on NetBSD/Alpha 1.4.2_ALPHA since
a bug in 1.4.1 prevents it to be installed on a DEC3000/600.
First i can't find the file 'sys/dev/tc/files.tc [changed]'
in your sources. Will the following be OK ?
*** files.tc Fri Jan 7 17:50:31 2000
--- files.tc.1.4.2_ALPHA Sun Jun 27 19:55:34 1999 =20
***************
*** 25,33 ****
file dev/tc/if_le_tc.c le_tc
# ioasic audio
! device bba: am7930, audio
! attach bba at ioasic with bba
! file dev/tc/bba.c bba
# DEC DEFTA TC FDDI Controller
--- 25,32 ----
file dev/tc/if_le_tc.c le_tc
# ioasic audio
! attach audioamd at ioasic with am7930_ioasic
! file dev/tc/am7930_ioasic.c am7930_ioasic
# DEC DEFTA TC FDDI Controller
---
This and changing the line from 'bba0 at ioasic0 offset ?'=20
to 'bba0 at ioasic? offset ?'=20
in the kernel config file let me successfully run the=20
'config' and 'make depend' phase.
Next there were some compilation errors and warnings with 'bba.c'.
Most of them are caused by functions specific to the pmax-port.
I also think that the definitions in 'arch/alpha/tc/ioasicreg.h'
are not correct ( according to the DEC3000 System Reference Manual,
ftp://ftp.netbsd.org/pub/NetBSD/misc/dec-docs/ek-d3sys-pm.ps.gz )
Here my changes:
*** ioasicreg.h Fri Jan 7 17:57:31 2000
--- ioasicreg.h.1.4.2_ALPHA Sat Aug 30 10:41:36 1997
***************
*** 147,155 ****
#define IOASIC_INTR_R2_HALF_PAGE 0x02000000 /* rz */
#define IOASIC_INTR_R2_DMA_OVRUN 0x01000000 /* rz */
#define IOASIC_INTR_FLOPPY_DMA_E 0x00800000 /* rz */
! #define IOASIC_INTR_ISDN_TXLOAD 0x00400000 /* rz */
! #define IOASIC_INTR_ISDN_RXLOAD 0x00200000 /* rz */
! #define IOASIC_INTR_ISDN_OVRUN 0x00100000 /* rz */
#define IOASIC_INTR_SCSI_PTR_LOAD 0x00080000 /* rz */
#define IOASIC_INTR_SCSI_OVRUN 0x00040000 /* rz */
#define IOASIC_INTR_SCSI_READ_E 0x00020000 /* rz */
--- 147,155 ----
#define IOASIC_INTR_R2_HALF_PAGE 0x02000000 /* rz */
#define IOASIC_INTR_R2_DMA_OVRUN 0x01000000 /* rz */
#define IOASIC_INTR_FLOPPY_DMA_E 0x00800000 /* rz */
! #define IOASIC_INTR_ISDN_PTR_LOAD 0x00400000 /* rz */
! #define IOASIC_INTR_ISDN_OVRUN 0x00200000 /* rz */
! #define IOASIC_INTR_ISDN_READ_E 0x00100000 /* rz */
#define IOASIC_INTR_SCSI_PTR_LOAD 0x00080000 /* rz */
#define IOASIC_INTR_SCSI_OVRUN 0x00040000 /* rz */
#define IOASIC_INTR_SCSI_READ_E 0x00020000 /* rz */
So far all compiles (few warnings) but autoconfig won't detect
the new driver 'AMD79c30 at ioasic0 offset 0x240000 not configured'.
If someone else has done more work, let me know.
Many thanks to Gregory, hoping that this project is ongoing.=20
Josef=09
=09
------=_NextPart_000_0041_01BF5A18.AE90BFA0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.2106.6"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT =
size=3D2>Hi,<BR> i am=20
also interested in seeing a am7930 audio driver for =
NetBSD/Alpha.<BR> I=20
don't know if someone has tested your work <BR> ( <A=20
href=3D"http://www.sprc.qut.edu.au/~mcgarry/netbsd/audio.html">http://www=
.sprc.qut.edu.au/~mcgarry/netbsd/audio.html</A>=20
)<BR> on Alpha.<BR> Here are my experiences so=20
far.</FONT></FONT></FONT><FONT size=3D2><FONT=20
face=3D"Courier New"></FONT></FONT></DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT=20
size=3D2></FONT></FONT></FONT><FONT size=3D2><FONT=20
face=3D"Courier New"></FONT></FONT> </DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT =
size=3D2> I installed=20
your changes on NetBSD/Alpha 1.4.2_ALPHA since<BR> a bug in 1.4.1 =
prevents=20
it to be installed on a DEC3000/600.<BR> First i can't find the =
file=20
'sys/dev/tc/files.tc [changed]'<BR> in your sources. Will the =
following be=20
OK ?</FONT></FONT></FONT><FONT size=3D2><FONT=20
face=3D"Courier New"></FONT></FONT></DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT=20
size=3D2></FONT></FONT></FONT><FONT size=3D2><FONT=20
face=3D"Courier New"></FONT></FONT> </DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT size=3D2>*** =
files.tc Fri Jan 7 17:50:31 2000<BR>---=20
files.tc.1.4.2_ALPHA Sun Jun 27 19:55:34=20
1999 <BR>***************<BR>*** 25,33 =
****<BR> =20
file =20
dev/tc/if_le_tc.c &n=
bsp; =20
le_tc</FONT></FONT></FONT><FONT size=3D2><FONT=20
face=3D"Courier New"></FONT></FONT></DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT=20
size=3D2></FONT></FONT></FONT><FONT size=3D2><FONT=20
face=3D"Courier New"></FONT></FONT> </DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT =
size=3D2> # ioasic=20
audio<BR>! device bba: am7930, =
audio<BR>! attach bba at ioasic with bba<BR>! file =20
dev/tc/bba.c &=
nbsp; =20
bba</FONT></FONT></FONT><FONT size=3D2><FONT=20
face=3D"Courier New"></FONT></FONT></DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT=20
size=3D2></FONT></FONT></FONT><FONT size=3D2><FONT=20
face=3D"Courier New"></FONT></FONT> </DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT =
size=3D2><BR> # DEC=20
DEFTA TC FDDI Controller<BR>--- 25,32 ----<BR> file =20
dev/tc/if_le_tc.c &n=
bsp; =20
le_tc</FONT></FONT></FONT><FONT size=3D2><FONT=20
face=3D"Courier New"></FONT></FONT></DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT=20
size=3D2></FONT></FONT></FONT><FONT size=3D2><FONT=20
face=3D"Courier New"></FONT></FONT> </DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT =
size=3D2> # ioasic=20
audio<BR>! attach audioamd at ioasic with am7930_ioasic<BR>! file =20
dev/tc/am7930_ioasic.c &nb=
sp;=20
am7930_ioasic</FONT></FONT></FONT><FONT size=3D2><FONT=20
face=3D"Courier New"></FONT></FONT></DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT=20
size=3D2></FONT></FONT></FONT><FONT size=3D2><FONT=20
face=3D"Courier New"></FONT></FONT> </DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT =
size=3D2><BR> # DEC=20
DEFTA TC FDDI Controller<BR>---</FONT></FONT></FONT><FONT size=3D2><FONT =
face=3D"Courier New"></FONT></FONT></DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT=20
size=3D2></FONT></FONT></FONT><FONT size=3D2><FONT=20
face=3D"Courier New"></FONT></FONT> </DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT =
size=3D2> This and=20
changing the line from 'bba0 at ioasic0 offset ?'=20
<BR> &nb=
sp; &nbs=
p; =20
to 'bba0 at ioasic? offset ?' <BR> in =
the=20
kernel config file let me successfully run the <BR> 'config' and =
'make=20
depend' phase.</FONT></FONT></FONT><FONT size=3D2><FONT=20
face=3D"Courier New"></FONT></FONT></DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT=20
size=3D2></FONT></FONT></FONT><FONT size=3D2><FONT=20
face=3D"Courier New"></FONT></FONT> </DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT =
size=3D2> Next there=20
were some compilation errors and warnings with 'bba.c'.<BR> Most of =
them=20
are caused by functions specific to the =
pmax-port.</FONT></FONT></FONT><FONT=20
size=3D2><FONT face=3D"Courier New"></FONT></FONT></DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT=20
size=3D2></FONT></FONT></FONT><FONT size=3D2><FONT=20
face=3D"Courier New"></FONT></FONT> </DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT =
size=3D2> I also=20
think that the definitions in 'arch/alpha/tc/ioasicreg.h'<BR> are =
not=20
correct ( according to the DEC3000 System Reference Manual,<BR> <A=20
href=3D"ftp://ftp.netbsd.org/pub/NetBSD/misc/dec-docs/ek-d3sys-pm.ps.gz">=
ftp://ftp.netbsd.org/pub/NetBSD/misc/dec-docs/ek-d3sys-pm.ps.gz</A>=20
)<BR> Here my changes:</FONT></FONT></FONT><FONT size=3D2><FONT=20
face=3D"Courier New"></FONT></FONT></DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT=20
size=3D2></FONT></FONT></FONT><FONT size=3D2><FONT=20
face=3D"Courier New"></FONT></FONT> </DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT size=3D2>*** =
ioasicreg.h=20
Fri Jan 7 17:57:31 2000<BR>---=20
ioasicreg.h.1.4.2_ALPHA Sat Aug 30 10:41:36=20
1997<BR>***************<BR>*** 147,155 ****<BR> =20
#define =20
IOASIC_INTR_R2_HALF_PAGE =20
0x02000000 /* rz */<BR> =20
#define =20
IOASIC_INTR_R2_DMA_OVRUN =20
0x01000000 /* rz */<BR> =20
#define =20
IOASIC_INTR_FLOPPY_DMA_E =20
0x00800000 /* rz */<BR>!=20
#define =20
IOASIC_INTR_ISDN_TXLOAD =20
0x00400000 /* rz */<BR>!=20
#define =20
IOASIC_INTR_ISDN_RXLOAD =20
0x00200000 /* rz */<BR>!=20
#define =20
IOASIC_INTR_ISDN_OVRUN &nb=
sp;=20
0x00100000 /* rz */<BR> =20
#define =20
IOASIC_INTR_SCSI_PTR_LOAD =20
0x00080000 /* rz */<BR> =20
#define =20
IOASIC_INTR_SCSI_OVRUN &nb=
sp;=20
0x00040000 /* rz */<BR> =20
#define =20
IOASIC_INTR_SCSI_READ_E =20
0x00020000 /* rz */<BR>--- 147,155 =
----<BR> =20
#define =20
IOASIC_INTR_R2_HALF_PAGE =20
0x02000000 /* rz */<BR> =20
#define =20
IOASIC_INTR_R2_DMA_OVRUN =20
0x01000000 /* rz */<BR> =20
#define =20
IOASIC_INTR_FLOPPY_DMA_E =20
0x00800000 /* rz */<BR>!=20
#define =20
IOASIC_INTR_ISDN_PTR_LOAD =20
0x00400000 /* rz */<BR>!=20
#define =20
IOASIC_INTR_ISDN_OVRUN &nb=
sp;=20
0x00200000 /* rz */<BR>!=20
#define =20
IOASIC_INTR_ISDN_READ_E =20
0x00100000 /* rz */<BR> =20
#define =20
IOASIC_INTR_SCSI_PTR_LOAD =20
0x00080000 /* rz */<BR> =20
#define =20
IOASIC_INTR_SCSI_OVRUN &nb=
sp;=20
0x00040000 /* rz */<BR> =20
#define =20
IOASIC_INTR_SCSI_READ_E =20
0x00020000 /* rz =
*/</FONT></FONT></FONT><FONT=20
size=3D2><FONT face=3D"Courier New"></FONT></FONT></DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT=20
size=3D2></FONT></FONT></FONT><FONT size=3D2><FONT=20
face=3D"Courier New"></FONT></FONT> </DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT =
size=3D2> So far all=20
compiles (few warnings) but autoconfig won't detect<BR> the new =
driver=20
'AMD79c30 at ioasic0 offset 0x240000 not configured'.<BR> If =
someone else=20
has done more work, let me know.</FONT></FONT></FONT><FONT =
size=3D2><FONT=20
face=3D"Courier New"></FONT></FONT></DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT=20
size=3D2></FONT></FONT></FONT><FONT size=3D2><FONT=20
face=3D"Courier New"></FONT></FONT> </DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT =
size=3D2>Many thanks to=20
Gregory, hoping that this project is ongoing. </FONT></FONT></FONT><FONT =
size=3D2><FONT face=3D"Courier New"></FONT></FONT></DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT=20
size=3D2></FONT></FONT></FONT><FONT size=3D2><FONT=20
face=3D"Courier New"></FONT></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2><FONT face=3D"Courier New"=20
size=3D2>Josef <BR></FONT> </FONT></DIV></BODY></HTML>
------=_NextPart_000_0041_01BF5A18.AE90BFA0--