Subject: Forward: Re: CS4236B?
To: C Kane <ckane@best.com>
From: None <Havard.Eidnes@runit.sintef.no>
List: port-i386
Date: 12/23/1998 20:08:38
----Next_Part(Wed_Dec_23_20:07:34_1998)--
Content-Type: Text/Plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

> There are some messages to port-i386 around July where some folks
> were trying to get the CS4236 audio chip to work in NetBSD.

I made some noises at that time, and got a few replies from Lennart
about the problem.  From what I remember, the cs4236 chip is in some
"funny, intermediate" state when NetBSD starts running.

Lennart came up with something he referred to "too ugly to commit",
which was doing an inb(0x534) at the appropriate slot in the isapnp
code to have the chip decide which emulation it should provide.

> Was that ever successful?

After recently passing on the old message from Lennart, John Kohl
sent me the attached message, which I'm sure he'll forgive me for
forwarding.  I've not gotten around to trying this out on my office
machine (a Dell PC).

Note that the patch in the attached message is still a gross hack,
and this problem will hopefully be solved in some less intrusive
manner in the not too distant future.

> This is from dmesg on NetBSD-1.3I/i386:
>
> isapnp0: read port 0x203
> wss1 at isapnp0 port 0x534/4,0x388/4,0x220/16 irq 5 drq 1,0
> wss1: ad1848_probe failed
> isapnp0: <IBM Audio Feature, CSC000F, , UNUSED> not configured
> isapnp0: <IBM Audio Feature, CSC0010, , CTRL> port 0x110/8 not configured

That's what I got too when I tried to configure the wss isapnp
device.  At the moment I'm pretending that I have an ISA sb card in
my office machine (which is now some 900 kms away from me), and with
that at least playback works as it should.

> Also, what does it mean when it says:
> Intel 82371SB IDE Interface (PIIX3) (IDE mass storage, interface 0x80) at pci0 dev 1 function 1 not configured

In general the "not configured" means that there is no corresponding
driver in the kernel you are running.  In some cases (as here),
there is configuration data on hardware which can be read (e.g. PCI
vendor and product IDs), and the kernel is translating that for you
into textual information.

In this particular instance it means that you did not have the
pciide devices enabled in your kernel configuration file.  If you
want to be able to make use of the bus-master DMA properties of your
PCI IDE hardware (significantly reducing CPU overhead in I/O
operations), you need to use the pciide devices.  I don't remember
offhand if the above hardware supports bus-master DMA, although I
suspect it does.


Regards,

- H=E5vard

----Next_Part(Wed_Dec_23_20:07:34_1998)--
Content-Type: Message/Rfc822
Content-Transfer-Encoding: 7bit

Delivery-Date: Sat, 12 Dec 1998 16:18:10 +0100
	by vader.runit.sintef.no (8.8.8/8.8.8) with ESMTP id QAA04846
	for <he@vader.runit.sintef.no>; Sat, 12 Dec 1998 16:18:09 +0100 (MET)
	by ravn.runit.sintef.no (8.8.7/8.8.7) with ESMTP id QAA26181
	for <he@ravn.runit.sintef.no>; Sat, 12 Dec 1998 16:18:08 +0100 (MET)
	by halvan.trd.sintef.no (8.8.5/8.8.5) with ESMTP id QAA08262
	for <Havard.Eidnes@runit.sintef.no>; Sat, 12 Dec 1998 16:17:57 +0100 (MET)
	by kolvir.arlington.ma.us (8.8.8/JTK19980409) id KAA07260;
	Sat, 12 Dec 1998 10:17:53 -0500 (EST)
Date: Sat, 12 Dec 1998 10:17:53 -0500 (EST)
Message-Id: <199812121517.KAA07260@kolvir.arlington.ma.us>
From: John Kohl <jtk@kolvir.arlington.ma.us>
To: Havard.Eidnes@runit.sintef.no
In-reply-to: <199812041330.OAA23364@vader.runit.sintef.no>
	(Havard.Eidnes@runit.sintef.no)
Subject: Re: CS4236B?

I got my sound card working in wss mode (works better, too).

Here's my first patch.  I'm trying to refine it a bit...

Index: isapnp_machdep.c
===================================================================
RCS file: /u3/cvsroot/src/sys/arch/i386/isa/isapnp_machdep.c,v
retrieving revision 1.1.1.6
diff -c -r1.1.1.6 isapnp_machdep.c
*** isapnp_machdep.c	1998/09/07 02:20:27	1.1.1.6
--- isapnp_machdep.c	1998/12/12 05:11:02
***************
*** 78,83 ****
--- 78,84 ----
  
  	sc->sc_addr_ioh = ISAPNP_ADDR;
  	sc->sc_wrdata_ioh = ISAPNP_WRDATA;
+ 	(void) inb(0x534);		/* XXX Lennart */
  	return (0);
  }
  

-- 
==John Kohl <jtk@kolvir.arlington.ma.us>, <john_kohl@alum.mit.edu>
Write a poem, share your heart!
Home page: <URL:http://people.ne.mediaone.net/jtk/>
Note new home zip code as of July 1, 1998: 02476


----Next_Part(Wed_Dec_23_20:07:34_1998)----