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>&nbsp;i am=20
also interested in seeing a am7930 audio driver for =
NetBSD/Alpha.<BR>&nbsp;I=20
don't know if someone has tested your work <BR>&nbsp;( <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>&nbsp;on Alpha.<BR>&nbsp;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>&nbsp;</DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT =
size=3D2>&nbsp;I installed=20
your changes on NetBSD/Alpha 1.4.2_ALPHA since<BR>&nbsp;a bug in 1.4.1 =
prevents=20
it to be installed on a DEC3000/600.<BR>&nbsp;First i can't find the =
file=20
'sys/dev/tc/files.tc [changed]'<BR>&nbsp;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>&nbsp;</DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT size=3D2>*** =

files.tc&nbsp;&nbsp;&nbsp; Fri Jan&nbsp; 7 17:50:31 2000<BR>---=20
files.tc.1.4.2_ALPHA&nbsp;&nbsp; Sun Jun 27 19:55:34=20
1999&nbsp;&nbsp;&nbsp;&nbsp; <BR>***************<BR>*** 25,33 =
****<BR>&nbsp;=20
file&nbsp;=20
dev/tc/if_le_tc.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;=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>&nbsp;</DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT =
size=3D2>&nbsp; # ioasic=20
audio<BR>! device&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bba: am7930, =

audio<BR>! attach bba at ioasic with bba<BR>! file&nbsp;=20
dev/tc/bba.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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>&nbsp;</DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT =
size=3D2><BR>&nbsp; # DEC=20
DEFTA TC FDDI Controller<BR>--- 25,32 ----<BR>&nbsp; file&nbsp;=20
dev/tc/if_le_tc.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;=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>&nbsp;</DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT =
size=3D2>&nbsp; # ioasic=20
audio<BR>! attach audioamd at ioasic with am7930_ioasic<BR>! file&nbsp;=20
dev/tc/am7930_ioasic.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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>&nbsp;</DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT =
size=3D2><BR>&nbsp; # 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>&nbsp;</DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT =
size=3D2>&nbsp;This and=20
changing the line from 'bba0&nbsp;&nbsp;&nbsp; at ioasic0 offset ?'=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;=20
to&nbsp;&nbsp; 'bba0&nbsp;&nbsp;&nbsp; at ioasic? offset ?' <BR>&nbsp;in =
the=20
kernel config file let me successfully run the <BR>&nbsp;'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>&nbsp;</DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT =
size=3D2>&nbsp;Next there=20
were some compilation errors and warnings with 'bba.c'.<BR>&nbsp;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>&nbsp;</DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT =
size=3D2>&nbsp;I also=20
think that the definitions in 'arch/alpha/tc/ioasicreg.h'<BR>&nbsp;are =
not=20
correct ( according to the DEC3000 System Reference Manual,<BR>&nbsp;<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>&nbsp;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>&nbsp;</DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT size=3D2>*** =
ioasicreg.h=20
Fri Jan&nbsp; 7 17:57:31 2000<BR>---=20
ioasicreg.h.1.4.2_ALPHA&nbsp;&nbsp;&nbsp;&nbsp; Sat Aug 30 10:41:36=20
1997<BR>***************<BR>*** 147,155 ****<BR>&nbsp;=20
#define&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
IOASIC_INTR_R2_HALF_PAGE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
0x02000000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* rz */<BR>&nbsp;=20
#define&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
IOASIC_INTR_R2_DMA_OVRUN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
0x01000000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* rz */<BR>&nbsp;=20
#define&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
IOASIC_INTR_FLOPPY_DMA_E&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
0x00800000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* rz */<BR>!=20
#define&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
IOASIC_INTR_ISDN_TXLOAD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
0x00400000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* rz */<BR>!=20
#define&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
IOASIC_INTR_ISDN_RXLOAD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
0x00200000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* rz */<BR>!=20
#define&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
IOASIC_INTR_ISDN_OVRUN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
0x00100000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* rz */<BR>&nbsp;=20
#define&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
IOASIC_INTR_SCSI_PTR_LOAD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
0x00080000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* rz */<BR>&nbsp;=20
#define&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
IOASIC_INTR_SCSI_OVRUN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
0x00040000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* rz */<BR>&nbsp;=20
#define&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
IOASIC_INTR_SCSI_READ_E&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
0x00020000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* rz */<BR>--- 147,155 =
----<BR>&nbsp;=20
#define&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
IOASIC_INTR_R2_HALF_PAGE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
0x02000000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* rz */<BR>&nbsp;=20
#define&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
IOASIC_INTR_R2_DMA_OVRUN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
0x01000000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* rz */<BR>&nbsp;=20
#define&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
IOASIC_INTR_FLOPPY_DMA_E&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
0x00800000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* rz */<BR>!=20
#define&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
IOASIC_INTR_ISDN_PTR_LOAD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
0x00400000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* rz */<BR>!=20
#define&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
IOASIC_INTR_ISDN_OVRUN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
0x00200000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* rz */<BR>!=20
#define&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
IOASIC_INTR_ISDN_READ_E&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
0x00100000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* rz */<BR>&nbsp;=20
#define&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
IOASIC_INTR_SCSI_PTR_LOAD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
0x00080000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* rz */<BR>&nbsp;=20
#define&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
IOASIC_INTR_SCSI_OVRUN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
0x00040000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* rz */<BR>&nbsp;=20
#define&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
IOASIC_INTR_SCSI_READ_E&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
0x00020000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* 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>&nbsp;</DIV>
<DIV><FONT color=3D#000000><FONT face=3D"Courier New"><FONT =
size=3D2>&nbsp;So far all=20
compiles (few warnings) but autoconfig won't detect<BR>&nbsp;the new =
driver=20
'AMD79c30 at ioasic0 offset 0x240000 not configured'.<BR>&nbsp;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>&nbsp;</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>&nbsp;</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--