On Thu, Oct 27, 2005 at 10:48:21AM +0200, Attilio Fiandrotti wrote:
> Ville Syrjälä wrote:
> >
> >I need to see /proc/bus/pci/devices.
> >
> 
> here it is.. :)
> 
> debian:~# cat /proc/bus/pci/devices
> 0110    102b051a        15      fdfec000        fe000008        fe800000 
>        00000000        00000000        00000000    fdff0000 00004000 
>      00800000        00800000        00000000        00000000 
> 00000000        00010000        matroxfb

That looks fine.

Try the attached patch. It will just print some messages so at least we 
can see what the code is doing...

-- 
Ville Syrjälä
[EMAIL PROTECTED]
http://www.sci.fi/~syrjala/
Index: matrox.c
===================================================================
RCS file: /cvs/directfb/DirectFB/gfxdrivers/matrox/matrox.c,v
retrieving revision 1.87
diff -u -r1.87 matrox.c
--- matrox.c    26 Oct 2005 07:33:08 -0000      1.87
+++ matrox.c    28 Oct 2005 10:18:00 -0000
@@ -1735,6 +1735,9 @@
                       bus, &devfn, &vendor, &device, &addr0, &addr1 ) != 6)
                continue;
 
+          D_ERROR( "pci device: %02x %02x %04x %04x %08lx %08lx\n",
+                   *bus, devfn, vendor, device, addr0, addr1 );
+
           if (vendor != PCI_VENDOR_ID_MATROX)
                continue;
 
@@ -1744,6 +1747,9 @@
           addr0 &= ~0xFUL;
           addr1 &= ~0xFUL;
 
+          D_ERROR( "matrox device: %02x %02x %02x %04x %04x %08lx %08lx\n",
+                   *bus, *slot, *func, vendor, device, addr0, addr1 );
+
           switch (device) {
           case PCI_DEVICE_ID_MATROX_G550_AGP:
           case PCI_DEVICE_ID_MATROX_G400_AGP:
@@ -1769,12 +1775,16 @@
           case PCI_DEVICE_ID_MATROX_1064SG_AGP:
                if ((pci_config_in32( *bus, *slot, *func, 0x08 ) & 0xFF) >= 
0x02) {
                     /* Mystique 220 (1164SG) */
+                    D_ERROR( "myst220: %08lx %08lx %08lx\n",
+                             addr0, addr1, mdev->fb.physical );
                     if (addr0 == mdev->fb.physical) {
                          fclose( file );
                          return DFB_OK;
                     }
                } else {
                     /* Mystique (1064SG) */
+                    D_ERROR( "myst: %08lx %08lx %08lx\n",
+                             addr0, addr1, mdev->fb.physical );
                     if (addr1 == mdev->fb.physical) {
                          fclose( file );
                          return DFB_OK;
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to