How to get a device_t
Bernd Walter
ticso at cicely12.cicely.de
Sat Aug 9 14:33:25 PDT 2003
On Sat, Aug 09, 2003 at 01:38:05PM +0200, Bernd Walter wrote:
> After adding you patch and some includes (<machine/pci_cfgreg.h>,
> <dev/pci/pcireg.h>)
>
> [...]
> pci_open(1): mode 1 addr port (0x0cf8) is 0x00000000
> pci_open(1a): mode1res=0x80000000 (0x80000000)
> pci_cfgcheck: device 0 [class=060000] [hdr=00] is there (id=30001022)
> pcibios: BIOS version 2.00
> Doing h0h0magic for AMD Elan sc520
> sysctl machdep.i8254_freq=1189161 returns 0
> Timecounter "ELAN" frequency 8333333 Hz
>
>
> Fatal trap 12: page fault while in kernel mode
> fault virtual address = 0x78363029
> fault code = supervisor read, page not present
> instruction pointer = 0x8:0xc029d05b
> stack pointer = 0x10:0xc03cdcc4
> frame pointer = 0x10:0xc03cdcd4
> code segment = base 0x0, limit 0xfffff, type 0x1b
> = DPL 0, pres 1, def32 1, gran 1
> processor eflags = interrupt enabled, resume, IOPL = 0
> current process = 0 (swapper)
> kernel: type 12 trap, code=0
> Stopped at BUS_ADD_CHILD+0x2b: pushl 0x4(%eax)
> db> trace
The number of arguments to elanbb_identify was wrong.
Now things work better.
I will now split it into elanmmcr and elanbb driver and then publish
the finished work.
--
B.Walter BWCT http://www.bwct.de
ticso at bwct.de info at bwct.de
More information about the freebsd-hackers
mailing list