Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Mar 1997 14:00:39 +0000
From:      eTienne de bruin <et@oskar.nanoteq.co.za>
To:        smpatel@freebsd.org
Cc:        hackers@freebsd.org
Subject:   PlugNplay SoundCard
Message-ID:  <199703041400.OAA00322@pc_et.nanoteq.co.za>

next in thread | raw e-mail | index | archive | help
Greets,

I am using Sujal's pnp patch to try and get my soundcard going.
It's a Pro-Multimedia SB Compat Plug and Play.

I have the card programmed to IRQ 9 and PORT 240.  But it still
won't work... I will give u all the details in the hope that u
can tell me where the problem is:

1. Output of pnpinfo
2. Kernel config file
3. dmesg

PS: Apologies for the long e-mail.

eT

Output of pnpinfo:

Checking for Plug-n-Play devices...
Trying Read_Port at 203
Card assigned CSN #1
Board Vendor ID: OPT0931
Board Serial Number: 08000000
PnP Version: 1.0
Vendor Version: 0
Device Description: OPTi Audio 16
Logical Device ID: PNP0600 (0006d041)
Vendor register funcs 00
Device Description: CD
Start Dependent Function
Device decodes the full 16-bit ISA address
I/O Range maximum address: 0x376
I/O Range maximum address: 0x3f6
I/O alignment for minimum: 16
I/O length: 2
Device decodes the full 16-bit ISA address
I/O Range maximum address: 0x170
I/O Range maximum address: 0x3f0
I/O alignment for minimum: 16
I/O length: 8
IRQ: 15 
Start Dependent Function
Device decodes the full 16-bit ISA address
I/O Range maximum address: 0x376
I/O Range maximum address: 0x3f6
I/O alignment for minimum: 16
I/O length: 2
Device decodes the full 16-bit ISA address
I/O Range maximum address: 0x170
I/O Range maximum address: 0x3f0
I/O alignment for minimum: 16
I/O length: 8
IRQ: 5 7 8 9 10 11 15 
End Dependent Function
Logical Device ID: OPT9310 (1093143e)
Vendor register funcs 00
Device Description: OPTiAudio 16
Start Dependent Function
Device decodes the full 16-bit ISA address
I/O Range maximum address: 0x534
I/O Range maximum address: 0x534
I/O alignment for minimum: 16
I/O length: 4
Device decodes the full 16-bit ISA address
I/O Range maximum address: 0x388
I/O Range maximum address: 0x388
I/O alignment for minimum: 16
I/O length: 4
Device decodes the full 16-bit ISA address
I/O Range maximum address: 0x220
I/O Range maximum address: 0x220
I/O alignment for minimum: 16
I/O length: 16
Device decodes the full 16-bit ISA address
I/O Range maximum address: 0xe0c
I/O Range maximum address: 0xffc
I/O alignment for minimum: 16
I/O length: 4
IRQ: 5 7 8 9 10 11 
DMA: 0 1 3 
DMA: 8-bit only
DMA: Device is not a bus master
DMA: May not execute in count by byte mode
DMA: May not execute in count by word mode
DMA: Compatibility mode
DMA: 0 1 3 
DMA: 8-bit only
DMA: Device is not a bus master
DMA: May not execute in count by byte mode
DMA: May not execute in count by word mode
DMA: Compatibility mode
Start Dependent Function
Device decodes the full 16-bit ISA address
I/O Range maximum address: 0x534
I/O Range maximum address: 0xff0
I/O alignment for minimum: 4
I/O length: 4
Device decodes the full 16-bit ISA address
I/O Range maximum address: 0x380
I/O Range maximum address: 0x3f0
I/O alignment for minimum: 16
I/O length: 12
Device decodes the full 16-bit ISA address
I/O Range maximum address: 0x220
I/O Range maximum address: 0x3e0
I/O alignment for minimum: 32
I/O length: 16
Device decodes the full 16-bit ISA address
I/O Range maximum address: 0xe0c
I/O Range maximum address: 0xffc
I/O alignment for minimum: 16
I/O length: 4
IRQ: 3 4 5 7 8 9 10 11 15 
DMA: 0 1 3 5 6 
DMA: 8-bit only
DMA: Device is not a bus master
DMA: May not execute in count by byte mode
DMA: May not execute in count by word mode
DMA: Compatibility mode
DMA: 0 1 3 5 6 
DMA: 8-bit only
DMA: Device is not a bus master
DMA: May not execute in count by byte mode
DMA: May not execute in count by word mode
DMA: Compatibility mode
End Dependent Function
Logical Device ID: PNPb02f (2fb0d041)
Vendor register funcs 00
Device Description: Game Port
Device decodes the full 16-bit ISA address
I/O Range maximum address: 0x201
I/O Range maximum address: 0x3f1
I/O alignment for minimum: 16
I/O length: 1
Logical Device ID: OPT0002 (0200143e)
Vendor register funcs 00
Device Description: MPU401
Device decodes the full 16-bit ISA address
I/O Range maximum address: 0x300
I/O Range maximum address: 0x360
I/O alignment for minimum: 16
I/O length: 2
IRQ: 5 7 8 9 10 11 
Logical Device ID: PNP0500 (0005d041)
Vendor register funcs 00
Device Description: Modem
Start Dependent Function
Device decodes the full 16-bit ISA address
I/O Range maximum address: 0x2e8
I/O Range maximum address: 0x2f8
I/O alignment for minimum: 16
I/O length: 8
IRQ: 3 4 5 7 8 9 10 11 
Start Dependent Function
Device decodes the full 16-bit ISA address
I/O Range maximum address: 0x3e8
I/O Range maximum address: 0x3f8
I/O alignment for minimum: 16
I/O length: 8
IRQ: 3 4 5 7 8 9 10 11 
Start Dependent Function
Device decodes the full 16-bit ISA address
I/O Range maximum address: 0x100
I/O Range maximum address: 0x3f0
I/O alignment for minimum: 16
I/O length: 8
IRQ: 3 4 5 7 8 9 10 11 
End Dependent Function
Logical Device ID: OPT9315 (1593143e)
Vendor register funcs 00
Device Description: OPT931
Start Dependent Function
Start Dependent Function
IRQ: 5 10 11 
End Dependent Function
End Tag

My Kernel Config file:

#
# GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks
#
#	$Id: GENERIC,v 1.46.2.18 1996/07/16 08:53:04 davidg Exp $
#

machine		"i386"
cpu		"I386_CPU"
cpu		"I486_CPU"
cpu		"I586_CPU"
ident		GENERIC
maxusers	10

options		MATH_EMULATE		#Support for x87 emulation
options		INET			#InterNETworking
options		FFS			#Berkeley Fast Filesystem
options		NFS			#Network Filesystem
options		MSDOSFS			#MSDOS Filesystem
options		"CD9660"		#ISO 9660 Filesystem
options		PROCFS			#Process filesystem
options		"COMPAT_43"		#Compatible with BSD 4.3
options		"SCSI_DELAY=15"		#Be pessimistic about Joe SCSI device
options		BOUNCE_BUFFERS		#include support for DMA bounce buffers
options		UCONSOLE		#Allow users to grab the console

options		SYSVSHM
options		SYSVSEM
options		SYSVMSG

config		kernel	root on wd0 

controller	isa0
controller	eisa0
controller	pci0

controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk		fd0	at fdc0 drive 0
disk		fd1	at fdc0 drive 1
tape		ft0	at fdc0 drive 2

controller	wdc0	at isa? port "IO_WD1" bio irq 14 vector wdintr
disk		wd0	at wdc0 drive 0
disk		wd1	at wdc0 drive 1

controller	wdc1	at isa? port "IO_WD2" bio irq 15 vector wdintr
disk		wd2	at wdc1 drive 0
disk		wd3	at wdc1 drive 1

controller	pnp0

options "SBC_IRQ=9"           #PAS-16. Must match irq on sb0 line.
controller	snd0
device sb0      at isa? port 0x240 irq 9 conflicts drq 1 vector sbintr
#device sbxvi0   at isa? drq 5
#device sbmidi0  at isa? port 0x330

options         ATAPI   #Enable ATAPI support for IDE bus
device          wcd0    #IDE CD-ROM

controller	ncr0
controller	ahb0
controller	ahc0

controller	bt0	at isa? port "IO_BT0" bio irq ? vector bt_isa_intr
controller	uha0	at isa? port "IO_UHA0" bio irq ? drq 5 vector uhaintr
controller	aha0	at isa? port "IO_AHA0" bio irq ? drq 5 vector ahaintr
controller	aic0    at isa? port 0x340 bio irq 11 vector aicintr
controller	nca0	at isa? port 0x1f88 bio irq 10 vector ncaintr
controller	nca1	at isa? port 0x350 bio irq 5 vector ncaintr
controller	sea0	at isa? bio irq 5 iomem 0xc8000 iosiz 0x2000 vector seaintr

controller	scbus0

device		sd0

device		st0

device		cd0	#Only need one of these, the code dynamically grows

device		wt0	at isa? port 0x300 bio irq 5 drq 1 vector wtintr
device		mcd0	at isa? port 0x300 bio irq 10 vector mcdintr

controller	matcd0	at isa? port 0x230 bio

device		scd0	at isa? port 0x230 bio

# syscons is the default console driver, resembling an SCO console
device		sc0	at isa? port "IO_KBD" tty irq 1 vector scintr
# Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver
#device		vt0	at isa? port "IO_KBD" tty irq 1 vector pcrint
#options		"PCVT_FREEBSD=210"	# pcvt running on FreeBSD 2.1
#options		XSERVER			# include code for XFree86
# If you have a ThinkPAD, uncomment this along with the rest of the PCVT lines
#options		PCVT_SCANSET=2		# IBM keyboards are non-std

# Mandatory, don't remove
device		npx0	at isa? port "IO_NPX" irq 13 vector npxintr

#
# Laptop support (see LINT for more options)
#
#device		apm0    at isa?		# Advanced Power Management
#options		APM_BROKEN_STATCLOCK	# Workaround some buggy APM BIOS

device		sio0	at isa? port "IO_COM1" tty irq 4 vector siointr
device		sio1	at isa? port "IO_COM2" tty irq 3 vector siointr
device		sio2	at isa? disable port "IO_COM3" tty irq 5 vector siointr
device		sio3	at isa? disable port "IO_COM4" tty irq 9 vector siointr

device		lpt0	at isa? port? tty irq 7 vector lptintr
device		lpt1	at isa? port? tty
device		mse0	at isa? port 0x23c tty irq 5 vector mseintr
device		psm0	at isa? disable port "IO_KBD" conflicts tty irq 12 vector psmintr

# Order is important here due to intrusive probes, do *not* alphabetize
# this list of network interfaces until the probes have been fixed.
# Right now it appears that the ie0 must be probed before ep0. See
# revision 1.20 of this file.
device de0
device fxp0
device vx0
device ed0 at isa? port 0x300 net irq  11 iomem 0xd8000 vector edintr
#device ed1 at isa? port 0x300 net irq  5 iomem 0xd8000 vector edintr
device ie0 at isa? port 0x360 net irq  7 iomem 0xd0000 vector ieintr
device ep0 at isa? port 0x300 net irq 10 vector epintr
device ix0 at isa? port 0x300 net irq 10 iomem 0xd0000 iosiz 32768 vector 
ixintr
device le0 at isa? port 0x300 net irq 5 iomem 0xd0000 vector le_intr
device lnc0 at isa? port 0x280 net irq 10 drq 0 vector lncintr
device ze0 at isa? port 0x300 net irq 5 iomem 0xd8000 vector zeintr
device zp0 at isa? port 0x300 net irq 10 iomem 0xd8000 vector zpintr

pseudo-device	loop
pseudo-device	ether
pseudo-device	log
pseudo-device	sl	1
# ijppp uses tun instead of ppp device
#pseudo-device	ppp	1
pseudo-device   bpfilter        4       #Berkeley packet filter
pseudo-device	tun	1
pseudo-device	pty	16
pseudo-device	gzip		# Exec gzipped a.out's

dmesg output:

FreeBSD 2.1.5-RELEASE #0: Tue Mar  4 13:01:35  1997
    et@pc_et.nanoteq.co.za:/usr/src/sys/compile/PC_ET
CPU: 120-MHz Pentium 735\\90 or 815\\100 (Pentium-class CPU)
  Origin = "GenuineIntel"  Id = 0x526  Stepping=6
  Features=0x1bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
real memory  = 16777216 (16384K bytes)
avail memory = 14565376 (14224K bytes)
Probing for devices on PCI bus 0:
chip0 <Intel 82439> rev 3 on pci0:0
chip1 <Intel 82371 PCI-ISA bridge> rev 1 on pci0:7:0
chip2 <Intel 82371 Bus-Master IDE controller> rev 0 on pci0:7:1
vga0 <VGA-compatible display device> rev 84 int a irq 12 on pci0:10
Checking for Plug-n-Play devices...
Board Vendor ID: OPT0931     Board Serial Number: 08000000
	Configuring (Logical Device 0)
Probing for devices on the ISA bus:
sc0 at 0x60-0x6f irq 1 on motherboard
sc0: VGA color <16 virtual consoles, flags=0x0>
ed0 at 0x300-0x31f irq 11 on isa
ed0: address 00:80:c8:1e:e9:f6, type NE2000 (16 bit) 
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
sio2: disabled, not probed.
sio3: disabled, not probed.
lpt0 at 0x378-0x37f irq 7 on isa
lpt0: Interrupt-driven port
lp0: TCP/IP capable interface
lpt1 not found at 0xffffffff
mse0 not found at 0x23c
psm0: disabled, not probed.
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: NEC 72065B
fd0: 1.44MB 3.5in
wdc0 at 0x1f0-0x1f7 irq 14 on isa
wdc0: unit 0 (wd0): <Conner Peripherals 1275MB - CFS1276A>
wd0: 1221MB (2501856 sectors), 2482 cyls, 16 heads, 63 S/T, 512 B/S
wdc0: unit 1 (atapi): <ACER CD-787E/SAS/V12A>, removable, intr, iordy
atapi0.1: unknown phase
wdc1 not found at 0x170
bt0 not found at 0x330
uha0 not found at 0x330
aha0 not found at 0x330
aic0 not found at 0x340
nca0 not found at 0x1f88
nca1 not found at 0x350
sea0 not found
wt0 not probed due to I/O address conflict with ed0 at 0x300
mcd0 not probed due to I/O address conflict with ed0 at 0x300
matcdc0 not found at 0x230
scd0 not found at 0x230
ie0 not found at 0x360
ep0 not probed due to I/O address conflict with ed0 at 0x300
ix0 not probed due to I/O address conflict with ed0 at 0x300
le0 not probed due to I/O address conflict with ed0 at 0x300
lnc0 not found at 0x280
ze0 not probed due to I/O address conflict with ed0 at 0x300
zp0 not probed due to I/O address conflict with ed0 at 0x300
sb0 not found at 0x240
npx0 on motherboard
npx0: INT 16 interface

-- 
Etienne de Bruin, Nanoteq (Pty) Ltd, Proudly South African.
Network Security, UNIX, FreeBSD, Sys Admin, Programming, C.
http://www.nanoteq.com/ 





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703041400.OAA00322>