> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Nicolas Souchu
> Sent: Monday, January 22, 2001 10:48 AM
> To: Steve Shoecraft
> Cc: 'John Baldwin'; 'Donald J . Maddox'; [EMAIL PROTECTED]
> Subject: Re: more info about: odd result of pci_read_config
>
>
> On Mon, Jan 22, 2001 at 04:05:31AM -0600, Steve Shoecraft wrote:
> > > My viapm driver is a kmodule. Could it be that
> PCI_READ_CONFIG is not
> > > correctly resolved and returns ENXIO which is 0x6?
> >
> > That's exactly whats going on here.  Have you turned on
> BUS_DEBUG (or mebbe
> > DEBUG_BUS) in /kern/subr_bus.c ?
>
> Not yet. I will then.
>
> >
> > Also, I have a userland app that loads and runs your kernel
> module - it
> > makes it alot easier to debug this kinda stuff.  Even does
> device file I/O.
> > If you want, you can check it out.
>
> Thanks, where?
>

        I've included it as an attachment (very small -- only 14k).

        I forgot to add in the readme file you need to create the test device:

                cd /dev
                mknod test0 c 252 0

        Once you get it running, you can enable the output of the newbus debug code
by editing mod/test_bus.c and setting DEBUG to 1.  You'll have to re-install
testmod before your changes will take effect (the testmod program loads
testmod.ko from /modules).

- Steve

> --
> [EMAIL PROTECTED]
> Alcôve - Open Source Software Engineer - http://www.alcove.fr
>
>
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-hackers" in the body of the message
>

testmod.tgz

Reply via email to