Subject: lc (4) bug?
To: None <tech-net@netbsd.org>
From: Felix Deichmann <f.dei@web.de>
List: tech-net
Date: 07/10/2004 22:15:56
This is a multi-part message in MIME format.
--------------000105040009050609090008
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hi.

I'm using 2 DEC EtherWorks 3 Combo cards (DE205) under 2.0_BETA.
As far as I understand, a line like (e.g. found in GENERIC)

lc0 at isa? port 0x320 iomem ? irq ?

in the kernel configuration file should be enough (to determine the 
missing parameters), as the DE205 features an EEPROM which provides 
those parameters.

Unfortunately, this auto configuration via EEPROM seems broken. The card 
is initialized with iomem 0xe0000-0xe07ff, regardless of the EEPROM's 
actual value. This renders the card unusable, of course.

If I manually set values in the kernel config, like

lc0 at isa? port 0x320 iomem 0xd0000 irq 5

everything works fine.

So my question is: Is the user expected to hardcode all necessary values 
into the kernel config or is this a bug?


The dmesg output of a working configuration is attached.


Regards

Felix

--------------000105040009050609090008
Content-Type: text/plain;
 name="dmesg.boot"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="dmesg.boot"

NetBSD 2.0_BETA (Scenic 4L Configuration) #5: Thu Jun 24 07:46:50 CEST 2004
	root@:/usr/src/sys/arch/i386/compile/SCENIC_4L
total memory = 15996 KB
avail memory = 13080 KB
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel 486DX2 W/B Enhanced (486-class), id 0x470
cpu0: features b<FPU,VME,PSE>
isa0 at mainbus0
lpt0 at isa0 port 0x378-0x37b irq 7
lc0 at isa0 port 0x300-0x31f iomem 0xd0000-0xd07ff irq 5: DE205-AC
lc0: address 08:00:2b:99:24:38, 128KB RAM, 2KB window
lc1 at isa0 port 0x320-0x33f iomem 0xd0800-0xd0fff irq 10: DE205-AC
lc1: address 08:00:2b:9d:09:88, 128KB RAM, 2KB window
com0 at isa0 port 0x3f8-0x3ff irq 4: ns8250 or ns16450, no fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns8250 or ns16450, no fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
wdc0 at isa0 port 0x1f0-0x1f7 irq 14
atabus0 at wdc0 channel 0
vga0 at isa0 port 0x3b0-0x3df iomem 0xa0000-0xbffff
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0: no ISA Plug 'n Play devices found
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
wd0 at atabus0 drive 0: <IBM-DTLA-307030>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 29314 MB, 59560 cyl, 16 head, 63 sec, 512 bytes/sect x 60036480 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
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)
altq: emulate 256000000Hz CPU clock

--------------000105040009050609090008--