xf86GetResourcesImplicitly()

Tiago Vignatti vignatti at c3sl.ufpr.br
Mon Feb 25 13:25:21 PST 2008


Hi Bart,


Bart Trojanowski escreveu:
> While reading hw/xfree86/common/xf86Bus.c from the master branch on 
> .../git/xorg/xserver, I got a bit confused...
> 
>     static resList
>     xf86GetResourcesImplicitly(int entityIndex)
>     {
>         if (entityIndex >= xf86NumEntities) return NULL;
>         
>         switch (xf86Entities[entityIndex]->bus.type) {
>         case BUS_ISA:
>         case BUS_NONE:
>         case BUS_SBUS:
>             return NULL;
>         case BUS_PCI:
>             return NULL;
>         case BUS_last:
>             return NULL;
>         }
>         return NULL;
>     }
> 
> Does this do anything?  What am I missing?

No.

This is also some dead code due pci rework. I'm attempting to clean a 
lot of things concerning this in my search why the secondary card isn't 
working in that branch. Probably soon this code will be killed :)


Thanks,

-- 
Tiago Vignatti
C3SL - Centro de Computação Científica e Software Livre
www.c3sl.ufpr.br



More information about the xorg mailing list