lkml.org 
[lkml]   [2006]   [Jul]   [5]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateWed, 05 Jul 2006 00:38:27 -0400
FromBrice Goglin <>
SubjectRe: [patch 3/7] Check root chipset no_msi flag instead of all parent busses flags
Grant Grundler wrote:
> I still don't want the generic PCI code to assume a "root"
> PCI Host bus controller was found after that loop.

If I am not mistaken, we can use the following code to check whether we
found a root chipset:
        unsigned cap;
        u16 val;
        u8 ext_type;
        cap = pci_find_capability(pdev, PCI_CAP_ID_EXP);
        if (cap) {
                pci_read_config_word(pdev, cap + PCI_CAP_FLAGS, &val);
                ext_type = (val & PCI_EXP_FLAGS_TYPE) >> 4;
                if (ext_type == PCI_EXP_TYPE_ROOT_PORT)
                        <check no_msi flag>
        }
Brice

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-07-05 04:41    [from the cache]
©2003-2008