Port-i386 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: tlp0: unable to map device registers



On Thu, Sep 18, 2008 at 05:52:31PM -0400, Emery Clark wrote:
> Quentin hi,
> 
> I do not understand what you mean? Could you please explain this a
> little more. I am very interested.

I mean try the following path:

Index: if_tlp_pci.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pci/if_tlp_pci.c,v
retrieving revision 1.106
diff -u -r1.106 if_tlp_pci.c
--- if_tlp_pci.c        8 Jun 2008 18:18:34 -0000       1.106
+++ if_tlp_pci.c        18 Sep 2008 22:01:32 -0000
@@ -525,6 +525,10 @@
                return;
        }
 
+       pci_conf_write(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG,
+           pci_conf_read(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG) |
+           PCI_COMMAND_IO_ENABLE | PCI_COMMAND_MEM_ENABLE);
+
        /*
         * Map the device.
         */

-- 
Quentin Garnier - cube%cubidou.net@localhost - cube%NetBSD.org@localhost
"See the look on my face from staying too long in one place
[...] every time the morning breaks I know I'm closer to falling"
KT Tunstall, Saving My Face, Drastic Fantastic, 2007.

Attachment: pgpnPAOYCqWh6.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index