Subject: isapnp confusion (?)
To: None <port-i386@NetBSD.ORG>
From: None <Havard.Eidnes@runit.sintef.no>
List: port-i386
Date: 07/18/1998 20:54:27
----Next_Part(Sat_Jul_18_20:53:36_1998)--
Content-Type: Text/Plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,

I'm trying to get the before-mentioned CS4236B to work as a
wss/ISAPnP device, as NetBSD-current has an isapnp frontend for
the wss devices.  I'm not having much success so far with my
fiddling, but at least I've found DEBUG_ISAPNP and enabled it.
What I find strange is the printout from isapnp_print_config() in
the autoconf messages attached below.  In particular, I find it
strange that the "I/O register window size" as printed under the
"Register configuration" heading apparently has been set to 0 (!)
instead of the expected 4/4/16, but two lines further down it
prints

wss0 at isapnp0 port 0x534/4,0x388/4,0x220/16 irq 5 drq 1,0

which looks just fine.  The fact that the ad1848 probe fails is
what I'm really looking at, but without assurance that the isapnp
stuff looks sane it's sort of not much point in trying further on
this part.  (In particular the 0x1 read return from 0x534 looks
fishy...)

Can someone more familiar with ISAPnP in general and the isapnp
code in NetBSD in particular please tell me whether the I/O
region printout under "Register configuration" is sane or is a
symptom that the ISAPnP configuration downloaded to the device
may be wrong?  Further hints as to what could be wrong would be
much appreciated.

The kernel source code this is compiled from was SUPed a couple
of days ago.


Regards,

- H=E5vard

----Next_Part(Sat_Jul_18_20:53:36_1998)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

NetBSD 1.3F (LN) #17: Sat Jul 18 20:38:22 MEST 1998
    he@ln.runit.sintef.no:/usr/src/sys/arch/i386/compile/LN
cpu0: family 5 model 4 step 3
cpu0: Intel Pentium/MMX (586-class)
real mem  = 66715648
avail mem = 60366848
using 840 buffers containing 3440640 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o enabled, memory enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82439HX System Controller (TXC) (rev. 0x03)
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371SB PCI-to-ISA Bridge (PIIX3) (rev. 0x01)
Intel 82371SB IDE Interface (PIIX3) (IDE mass storage, interface 0x80) at pci0 dev 7 function 1 not configured
ppb0 at pci0 dev 15 function 0: Digital Equipment DECchip 21152 PCI-PCI Bridge (rev. 0x02)
pci1 at ppb0 bus 1
pci1: i/o enabled, memory enabled
ep1 at pci1 dev 10 function 0: 3Com 3C900 Ethernet
ep1: MAC address 00:60:08:70:40:54
ep1: 8KB word-wide FIFO, 3:5 Rx:Tx split, utp/aui/bnc default utp, autoselect
ep1: interrupting at irq 11
ahc0 at pci1 dev 11 function 0
ahc0: interrupting at irq 10
ahc0: aic7880 Wide Channel, SCSI Id=7, 16 SCBs
scsibus0 at ahc0 channel 0: 16 targets
ahc0: target 0 using 16Bit transfers
ahc0: target 0 synchronous at 10.0MHz, offset = 0x8
sd0 at scsibus0 targ 0 lun 0: <WDIGTL, WDE4360-1807A3, 1.80> SCSI2 0/direct fixed
sd0: 4095MB, 5720 cyl, 8 head, 183 sec, 512 bytes/sect x 8388314 sectors
S3 Trio32/64 (VGA display, revision 0x54) at pci0 dev 16 function 0 not configured
ep2 at pci0 dev 17 function 0: 3Com 3C905 Ethernet
ep2: MAC address 00:c0:4f:a7:54:3a
ep2: 8KB word-wide FIFO, 3:5 Rx:Tx split, mii default mii, autoselect
ep2: interrupting at irq 11
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
lpt0 at isa0 port 0x378-0x37b irq 7
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
atapibus0 at wdc0
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0-0xff: using exception 16
pc0 at isa0 port 0x60-0x6f irq 1: color
pms0 at pc0 irq 12
pc0: console
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
(isapnp probe): Trying port 203
isapnp0 at isa0 port 0x279isapnp0: Trying port 203
: read port 0x203
PnP version 1.0, Vendor version 0.1
ANSI Ident: CS4236
Logical device id CSC0000
ANSI Ident: WSS/SB
>>> Start dependent function config: preferred
DRQ's supported: 1 3 Width: 8-bit Speed: compat Attributes: incr 8 
DRQ's supported: 0 1 3 Width: 8-bit Speed: compat Attributes: incr 8 
IRQ's supported: 5 7 9 E+
4 IO Ports: 16 address bits, alignment 212 min 0x534, max 0x608
4 IO Ports: 16 address bits, alignment 8 min 0x388, max 0x388
16 IO Ports: 16 address bits, alignment 32 min 0x220, max 0x240
>>> Start dependent function config: acceptable
DRQ's supported: 0 1 3 Width: 8-bit Speed: compat Attributes: incr 8 
IRQ's supported: 5 7 9 11 12 15 E+
4 IO Ports: 16 address bits, alignment 4 min 0x534, max 0xffc
4 IO Ports: 16 address bits, alignment 8 min 0x388, max 0x3f0
16 IO Ports: 16 address bits, alignment 16 min 0x220, max 0x260
<<End dependent functions
Logical device id CSC000F
ANSI Ident: Game
>>> Start dependent function config: preferred
8 IO Ports: 16 address bits, alignment 8 min 0x3a0, max 0x3f8
<<End dependent functions
Logical device id CSC0010
ANSI Ident: Ctrl
8 IO Ports: 16 address bits, alignment 8 min 0xf00, max 0xfe8
Logical device id CSC0003
ANSI Ident: MPU
>>> Start dependent function config: preferred
2 IO Ports: 16 address bits, alignment 8 min 0x330, max 0x3f0
<<End dependent functions
Selecting attachments
Found <CS4236, CSC0000, , WSS/SB> config: preferred
4 IO Ports: 16 address bits, alignment 212 min 0x534, max 0x608
4 IO Ports: 16 address bits, alignment 8 min 0x388, max 0x388
16 IO Ports: 16 address bits, alignment 32 min 0x220, max 0x240
IRQ's supported: 5 7 9 E+
DRQ's supported: 1 3 Width: 8-bit Speed: compat Attributes: incr 8 
DRQ's supported: 0 1 3 Width: 8-bit Speed: compat Attributes: incr 8 
Register configuration:
io[0]: 0x534/0
io[1]: 0x388/0
io[2]: 0x220/0
irq[0]: 5
drq[0]: 1
drq[1]: 0
isapnp0: configuring <CS4236, CSC0000, , WSS/SB>
wss0 at isapnp0 port 0x534/4,0x388/4,0x220/16 irq 5 drq 1,0
Found <CS4236, CSC0000, , WSS/SB> config: preferred
4 IO Ports: 16 address bits, alignment 212 min 0x534, max 0x608
4 IO Ports: 16 address bits, alignment 8 min 0x388, max 0x388
16 IO Ports: 16 address bits, alignment 32 min 0x220, max 0x240
IRQ's supported: 5 7 9 E+
DRQ's supported: 1 3 Width: 8-bit Speed: compat Attributes: incr 8 
DRQ's supported: 0 1 3 Width: 8-bit Speed: compat Attributes: incr 8 
bus read from 0x534
bus read from 0x534
ad_detect_A1 initialized after 1 iterations (iaddr=0x1)
bus write 0x40 to 0x534
bus write 0xaa to 0x535
(40->aa) bus write 0x41 to 0x534
bus write 0x45 to 0x535
(41->45) bus write 0x40 to 0x534
bus read from 0x535
(40<-40) ad_detect_B (40/ff)
wss0: ad1848_probe failed
Found <CS4236, CSC000F, , Game> config: preferred
8 IO Ports: 16 address bits, alignment 8 min 0x3a0, max 0x3f8
Register configuration:
io[0]: 0x3a0/0
isapnp0: configuring <CS4236, CSC000F, , Game>
isapnp0: <CS4236, CSC000F, , Game> port 0x3a0/8 not configured
Found <CS4236, CSC0010, , Ctrl> config: acceptable
8 IO Ports: 16 address bits, alignment 8 min 0xf00, max 0xfe8
Register configuration:
io[0]: 0xf00/0
isapnp0: configuring <CS4236, CSC0010, , Ctrl>
isapnp0: <CS4236, CSC0010, , Ctrl> port 0xf00/8 not configured
Found <CS4236, CSC0003, , MPU> config: preferred
2 IO Ports: 16 address bits, alignment 8 min 0x330, max 0x3f0
Register configuration:
io[0]: 0x330/0
isapnp0: configuring <CS4236, CSC0003, , MPU>
isapnp0: <CS4236, CSC0003, , MPU> port 0x330/2 not configured
biomask 4440 netmask 4c40 ttymask 5cc2
WARNING: old BSD partition ID!
boot device: sd0
root on sd0a dumps on sd0b
WARNING: old BSD partition ID!

----Next_Part(Sat_Jul_18_20:53:36_1998)----