Subject: Winbond WS83627THF on certain motherboard
To: None <tech-kern@netbsd.org>
From: Dennis den Brok <d.den.brok@uni-bonn.de>
List: tech-kern
Date: 03/27/2007 13:17:23
------------kfo8Q45Jisx2dbonRZRAZl
Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15
Content-Transfer-Encoding: 7bit

Hi,

(This is using NetBSD 4.0_BETA2)
I'm trying to make use of an on-board WS83627THF. However, it's not  
detected at any of the ports conf/GENERIC says it's usually located at.  
Upon asking the motherboard vendor, I got as a reply:

The Base address for the Winbond WS83627THF on the 986LCD-M/mITX board is:
#define Iport 0x2e
#define Dport 0x2f

These don't only look suspicously low, they also don't work when used on  
the corresponding config line. I reckon the problem lies in the probe  
already as the kernel doesn't print anything lm(4)-related, and thus  
probably it's I misinterpreted the vendor's reply. Can anyone help on  
this? Please find attached dmesg output and the kernel config file I used.  
TIA.

-- 
Dennis den Brok
------------kfo8Q45Jisx2dbonRZRAZl
Content-Disposition: attachment; filename=IKO.txt
Content-Type: text/plain; name=IKO.txt
Content-Transfer-Encoding: Quoted-Printable

# $NetBSD: IKO,v 3 2007/03/23 02:02:00 ddb Exp $

include 	"arch/i386/conf/std.i386"

options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary

ident 		"IKO-$Revision: 3 $"

options 	MEMORY_DISK_HOOKS
options 	MEMORY_DISK_ROOT_SIZE=3D65536
options 	MEMORY_DISK_SERVER=3D0

maxusers	32		# estimated number of users

options 	I686_CPU

makeoptions	CPUFLAGS=3D"-march=3Di486 -mtune=3Dpentiumpro" # Assume at l=
east 486,

#options 	VM86		# virtual 8086 emulation
options 	USER_LDT	# user-settable LDT; used by WINE

options 	MTRR		# memory-type range register syscall support

options 	INSECURE	# disable kernel security levels - X needs this

options 	RTC_OFFSET=3D-60	# hardware clock is this many mins. west of GM=
T
options 	NTP		# NTP phase/frequency locked loop

options 	SYSVMSG		# System V-like message queues
options 	SYSVSEM		# System V-like semaphores
options 	SYSVSHM		# System V-like memory sharing
options 	P1003_1B_SEMAPHORE	# p1003.1b semaphore support

#options 	LKM		# loadable kernel modules

options 	COMPAT_LINUX	# binary compatibility with Linux
options 	COMPAT_BSDPTY	# /dev/[pt]ty?? ptys.

file-system 	FFS		# UFS
file-system     MFS             # memory file system
file-system     CD9660          # ISO 9660 + Rock Ridge file system
file-system     MSDOSFS         # MS-DOS file system
file-system     KERNFS          # /kern
file-system     NULLFS          # loopback file system
file-system     PROCFS          # /proc
file-system     UNION           # union file system
file-system	TMPFS		# Efficient memory file-system

options 	QUOTA		# UFS quotas
options 	SOFTDEP		# FFS soft updates support.
options 	FFS_NO_SNAPSHOT	# No FFS snapshot support

options 	INET		# IP + ICMP + TCP + UDP
options 	INET6		# IPV6

#options 	ACPIVERBOSE	# verbose ACPI device autoconfig messages
#options 	USBVERBOSE	# verbose USB device autoconfig messages

options 	WSEMUL_VT100		# VT100 / VT220 emulation
options 	WS_DEFAULT_FG=3DWSCOL_WHITE
options 	WS_DEFAULT_BG=3DWSCOL_BLUE
options 	WS_KERNEL_FG=3DWSCOL_WHITE
options 	WS_KERNEL_BG=3DWSCOL_BLUE
options 	WS_KERNEL_COLATTR=3D"WSATTR_HILIT"
options 	WSDISPLAY_COMPAT_PCVT		# emulate some ioctls
options 	WSDISPLAY_COMPAT_SYSCONS	# emulate some ioctls
options 	WSDISPLAY_COMPAT_USL		# VT handling
options 	WSDISPLAY_COMPAT_RAWKBD		# can get raw scancodes
options 	PCKBD_CNATTACH_MAY_FAIL
options 	WSDISPLAY_SCROLLSUPPORT

config		netbsd	root on wd0a type ffs

mainbus0 at root

cpu* at mainbus?
ioapic* at mainbus?

options 	ACPI_SCANPCI	# find PCI roots using ACPI

acpi0 		at mainbus0
apm* 		at acpi?

acpibut* 	at acpi?		# ACPI Button
acpitz* 	at acpi?
attimer*	at acpi?		# AT Timer
npx*		at acpi?		# Math coprocessor
pcppi*		at acpi?                # AT-style speaker sound

pci*	at mainbus? bus ?
pci*	at ppb? bus ?

ichlpcib* at pci? dev ? function ?     # Intel ICH PCI-ISA w/ watchdog a=
nd
pchb*	at pci? dev ? function ?	# PCI-Host bridges
pcib*	at pci? dev ? function ?	# PCI-ISA bridges
ppb*	at pci? dev ? function ?	# PCI-PCI bridges
agp* 	at pchb?

isa0	at ichlpcib?
isa0	at pcib?
npx0	at isa? port 0xf0 irq 13	# x86 math coprocessor

pckbc0		at isa?			# pc keyboard controller
pckbd*		at pckbc?		# PC keyboard
pms*		at pckbc?		# PS/2 mouse for wsmouse
vga*		at pci? dev ? function ?
wsdisplay*	at vga? console ?
wskbd*		at pckbd? console ?
wsmouse*	at pms? mux 0

#com0	at isa? port 0x3f8 irq 4	# Standard PC serial ports
#com1	at isa? port 0x2f8 irq 3
#com2	at isa? port 0x3e8 irq 5
#com3	at isa? port 0x2e8 irq 9

#lpt0	at isa? port 0x378 irq 7	# standard PC parallel ports

lm0 	at isa? port 0x2e              # other common: 0x280, 0x310
lm1 	at isa? port 0x2f              # other common: 0x280, 0x310
lm2 	at isa? port 0x2e0              # other common: 0x280, 0x310
lm3 	at isa? port 0x2f0              # other common: 0x280, 0x310

sd*	at scsibus? target ? lun ?	# SCSI disk drives
cd*	at scsibus? target ? lun ?	# SCSI CD-ROM drives

piixide* 	at pci? dev ? function ?	# Intel IDE controllers
atabus* at ata?

wd*	at atabus? drive ? flags 0x0000

cd*	at atapibus? drive ? flags 0x0000	# ATAPI CD-ROM drives
sd*	at atapibus? drive ? flags 0x0000	# ATAPI disk drives

re*	at pci? dev ? function ?	# Realtek 8139C+/8169/8169S/8110S
rgephy* at mii? phy ?			# Realtek 8169S/8110S internal PHYs

ehci*	at pci?	dev ? function ?	# Enhanced Host Controller
uhci*	at pci?	dev ? function ?	# Universal Host Controller (Intel)

usb*	at ehci?
usb*	at uhci?

uhub*	at usb?
uhub*	at uhub? port ? configuration ? interface ?

uhidev*	at uhub? port ? configuration ? interface ?
ums*	at uhidev? reportid ?
wsmouse* at ums? mux 0

ukbd*	at uhidev? reportid ?
wskbd*	at ukbd? console ? mux 1

#ulpt*	at uhub? port ? configuration ? interface ?

umass*	at uhub? port ? configuration ? interface ?
wd*	at umass?

uaudio*	at uhub? port ? configuration ?
#umidi* at uhub? port ? configuration ?

ugen*	at uhub? port ?
options UGEN_BULK_RA_WB

#fwohci*	at pci? dev ? function ?	# IEEE1394 Open Host Controller

#ieee1394if* at fwohci?
#fwip*	at ieee1394if?			# IP over IEEE1394
#sbp*	at ieee1394if? euihi ? euilo ?	# SCSI over IEEE1394

azalia*	at pci? dev ? function ?	# High Definition Audio
audio*	at audiobus?

#pseudo-device 	crypto		# /dev/crypto device

#pseudo-device	cgd		4	# cryptographic disk devices
#pseudo-device	fss		4	# file system snapshot device

pseudo-device	md		1	# memory disk device (ramdisk)

pseudo-device	vnd			# disk-like interface to files
#options 	VND_COMPRESSION		# compressed vnd(4)

pseudo-device	bpfilter		# Berkeley packet filter
pseudo-device	loop			# network loopback
pseudo-device	ppp			# Point-to-Point Protocol

pseudo-device	pty			# pseudo-terminals
pseudo-device	sequencer	1	# MIDI sequencer
pseudo-device	rnd			# /dev/random and in-kernel generator
pseudo-device	ksyms			# /dev/ksyms

pseudo-device	wsmux			# mouse & keyboard multiplexor
pseudo-device	wsfont


umass0 		at uhub? port ? configuration ? interface ? vendor 0x0457 produ=
ct 0x0151
scsibus0 	at umass0
sd0 		at scsibus0 target ? lun ?
umass1 		at uhub? port ? configuration ? interface ? vendor 0x067b produ=
ct 0x3507
scsibus1 	at umass1
sd1 		at scsibus1 target ? lun ?

umass* 		at uhub? port ? configuration ? interface ?
atapibus* 	at umass?
scsibus* 	at umass?

------------kfo8Q45Jisx2dbonRZRAZl
Content-Disposition: attachment; filename=dmesg.txt
Content-Type: text/plain; name=dmesg.txt
Content-Transfer-Encoding: Quoted-Printable

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005=
, 2006
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 4.0_BETA2 (IKO-$Revision: 3 $) #11: Fri Mar 23 03:16:50 CET 2007
	root@:/usr/obj/sys/arch/i386/compile/IKO
total memory =3D 1015 MB
avail memory =3D 963 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
BIOS32 rev. 0 found at 0xf0010
mainbus0 (root)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel Pentium M (Yonah) (686-class), 1066.76 MHz, id 0x6e8
cpu0: features afe9fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR=
>
cpu0: features afe9fbff<PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX>
cpu0: features afe9fbff<FXSR,SSE,SSE2,SS,TM,SBF>
cpu0: features2 c109<SSE3,MONITOR,TM2,xTPR>
cpu0: "Intel(R) Celeron(R) M CPU        423  @ 1.06GHz"
cpu0: I-cache 32 KB 64B/line 8-way, D-cache 32 KB 64B/line 8-way
cpu0: using thermal monitor 1
cpu0: calibrating local timer
cpu0: apic clock running at 133 MHz
ioapic0 at mainbus0 apid 1 (I/O APIC)
ioapic0: pa 0xfec00000, version 20, 24 pins
acpi0 at mainbus0: Advanced Configuration and Power Interface
acpi0: using Intel ACPI CA subsystem version 20060217
acpi0: X/RSDT: OemId <A M I ,OEMXSDT ,11000601>, AslId <MSFT,00000097>
ACPI Warning (utinit-0165): Invalid FADT value PM2_CNT_LEN=3D0 at offset=
 5A FADT=3D0xc3519900 [20060217]
acpi0: SCI interrupting at int 9
acpi0: fixed-feature power button present
timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
ACPI-Fast 24-bit timer
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
PNP0A08 at acpi0 not configured
PNP0C01 at acpi0 not configured
PNP0000 at acpi0 not configured
PNP0200 at acpi0 not configured
attimer0 at acpi0 (PNP0100): AT Timer
attimer0: io 0x40-0x43 irq 0
PNP0B00 at acpi0 not configured
pcppi0 at acpi0 (PNP0800)
pcppi0: io 0x61
npx1 at acpi0 (PNP0C04)
npx1: io 0xf0-0xff irq 13
npx1: reported by CPUID; using exception 16
PNP0C02 at acpi0 not configured
PNP0C02 at acpi0 not configured
INT0800 at acpi0 not configured
PNP0C02 at acpi0 not configured
PNP0C02 at acpi0 not configured
PNP0C02 at acpi0 not configured
acpibut0 at acpi0 (PNP0C0E): ACPI Sleep Button
PNP0C01 at acpi0 not configured
acpibut1 at acpi0 (PNP0C0C-170): ACPI Power Button
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
apm0 at acpi0: Power Management spec V1.2
pcppi0: attached to attimer0
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x8086 product 0x27a0 (rev. 0x03)
agp0 at pchb0: detected 7932k stolen memory
agp0: aperture at 0xe0000000, size 0x10000000
vga0 at pci0 dev 2 function 0: vendor 0x8086 product 0x27a2 (rev. 0x03)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
vendor 0x8086 product 0x27a6 (miscellaneous display, revision 0x03) at p=
ci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0: Generic High Definition Audio Control=
ler
azalia0: interrupting at ioapic0 pin 16 (irq 11)
azalia0: host: 0x8086/0x27d8 (rev. 1)
azalia0: host: High Definition Audio rev. 1.0
uhci0 at pci0 dev 29 function 0: vendor 0x8086 product 0x27c8 (rev. 0x01=
)
uhci0: interrupting at ioapic0 pin 23 (irq 5)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1: vendor 0x8086 product 0x27c9 (rev. 0x01=
)
uhci1: interrupting at ioapic0 pin 19 (irq 15)
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2: vendor 0x8086 product 0x27ca (rev. 0x01=
)
uhci2: interrupting at ioapic0 pin 18 (irq 10)
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3: vendor 0x8086 product 0x27cb (rev. 0x01=
)
uhci3: interrupting at ioapic0 pin 16 (irq 11)
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7: vendor 0x8086 product 0x27cc (rev. 0x01=
)
ehci0: interrupting at ioapic0 pin 23 (irq 5)
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: vendor 0x8086 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
ppb0 at pci0 dev 30 function 0: vendor 0x8086 product 0x244e (rev. 0xe1)=

pci1 at ppb0 bus 2
pci1: no spaces enabled!
pcib0 at pci0 dev 31 function 0
pcib0: vendor 0x8086 product 0x27b8 (rev. 0x01)
piixide0 at pci0 dev 31 function 1
piixide0: Intel 82801GB/GR IDE Controller (ICH7) (rev. 0x01)
piixide0: bus-master DMA support present
piixide0: primary channel configured to compatibility mode
piixide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
atabus0 at piixide0 channel 0
piixide0: secondary channel configured to compatibility mode
piixide0: secondary channel ignored (disabled)
vendor 0x8086 product 0x27da (SMBus serial bus, revision 0x01) at pci0 d=
ev 31 function 3 not configured
isa0 at pcib0
pckbc0 at isa0 port 0x60-0x64
pci2 at mainbus0 bus 1
pci2: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
re0 at pci2 dev 0 function 0pci_mem_find: void region
: RealTek 8168B/8111B PCIe Gigabit Ethernet (rev. 0x01)
re0: interrupting at ioapic0 pin 18 (irq 10)
re0: Ethernet address 00:e0:f4:16:cc:e2
re0: using 256 tx descriptors
rgephy0 at re0 phy 7: RTL8169S/8110S 1000BASE-T media interface, rev. 2
rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000=
baseT-FDX, auto
ioapic0: enabling
timecounter: Timecounter "TSC" frequency 1066786480 Hz quality 800
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
azalia0: codec[2]: Realtek ALC882 (rev. 1.1)
azalia0: codec[2]: High Definition Audio rev. 1.0
azalia0: playback: max channels=3D8, encodings=3D1<PCM>
azalia0: playback: PCM formats=3De0560<24bit,20bit,16bit,192kHz,96kHz,48=
kHz,44.1kHz>
azalia0: recording: max channels=3D6, encodings=3D1<PCM>
azalia0: recording: PCM formats=3D60160<20bit,16bit,96kHz,48kHz,44.1kHz>=

audio0 at azalia0: full duplex, independent
md0: internal 32768 KB image area
umass0 at uhub4 port 1 configuration 1 interface 0
umass0: vendor 0x0457 USB Mass Storage Device, rev 2.00/1.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <TinyDisk, 2006-07-14, 0.00> disk remova=
ble
sd0: 2000 MB, 500 cyl, 8 head, 32 sec, 512 bytes/sect x 4096000 sectors
wd0 at atabus0 drive 0: <SanDisk SDCFX-1024>
wd0: drive supports 4-sector PIO transfers, LBA addressing
wd0: 977 MB, 1986 cyl, 16 head, 63 sec, 512 bytes/sect x 2001888 sectors=

wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2
wd0(piixide0:0:0): using PIO mode 4, DMA mode 2 (using DMA)
uhub5 at uhub4 port 6
uhub5: vendor 0x05e3 USB2.0 Hub, class 9/0, rev 2.00/5.07, addr 3
uhub5: single transaction translator
uhub5: 4 ports with 4 removable, self powered
uaudio0 at uhub1 port 1 configuration 1 interface 0: vendor 0x0ccd USB A=
udio, rev 1.10/1.00, addr 2
uaudio0: audio rev 1.00
audio1 at uaudio0: full duplex, independent
uhidev0 at uhub1 port 1 configuration 1 interface 3
uhidev0: vendor 0x0ccd USB Audio, rev 1.10/1.00, addr 2, iclass 3/0
uhid at uhidev0 not configured
uhidev1 at uhub5 port 1 configuration 1 interface 0
uhidev1: Logitech USB-PS/2 Optical Mouse, rev 2.00/20.00, addr 4, iclass=
 3/1
ums0 at uhidev1: 3 buttons and Z dir.
wsmouse0 at ums0 mux 0
uhidev2 at uhub5 port 2 configuration 1 interface 0
uhidev2: NOVATEK USB Keyboard, rev 1.10/1.12, addr 5, iclass 3/1
ukbd0 at uhidev2
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev3 at uhub5 port 2 configuration 1 interface 1
uhidev3: NOVATEK USB Keyboard, rev 1.10/1.12, addr 5, iclass 3/0
uhidev3: 4 report ids
uhid at uhidev3 reportid 2 not configured
uhid at uhidev3 reportid 3 not configured
uhid at uhidev3 reportid 4 not configured
ugen0 at uhub5 port 3
ugen0: Canon CanoScan, rev 2.00/3.06, addr 6
boot device: wd0
root on wd0a dumps on wd0b
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
umass1 at uhub4 port 5 configuration 1 interface 0
umass1: Prolific Technology Inc. Mass Storage Device, rev 2.00/1.00, add=
r 7
umass1: using SCSI over Bulk-Only
scsibus1 at umass1: 2 targets, 1 lun per target
sd1 at scsibus1 target 0 lun 0: <ST380011, A, 3.06> disk fixed
sd1: fabricating a geometry
sd1: 76319 MB, 76319 cyl, 64 head, 32 sec, 512 bytes/sect x 156301489 se=
ctors
sd1: fabricating a geometry

------------kfo8Q45Jisx2dbonRZRAZl--