X-Git-Url: http://git.onelab.eu/?p=pypcilib.git;a=blobdiff_plain;f=pypcimap.py;h=50bb9b1d54abf197e99a80a6c2f6b26a160e786d;hp=ba7f9f642ccfa88751db7c540184026df7a4d4b0;hb=bd7cbfc3f9233750f92cef2ebd9ba65bd0d788d0;hpb=8738cfc42d5a41ff341c0672b5cb3deeea2887ed diff --git a/pypcimap.py b/pypcimap.py index ba7f9f6..50bb9b1 100644 --- a/pypcimap.py +++ b/pypcimap.py @@ -37,7 +37,7 @@ import os import re # These are modules which are only returned if no other driver is available -greylist = ["ata_generic", "eepro100"] +greylist = ["ata_generic", "eepro100", "8139cp", "e1000"] class PCIMap: """Encapsulates modules.pcimap""" @@ -48,10 +48,10 @@ class PCIMap: """Returns a list of candidate modules for the PCI device specified in tuple""" ret = [] for i in self.list: - if ((i[1] == tuple[0] or i[1] == 0xffffffff) and - (i[2] == tuple[1] or i[2] == 0xffffffff) and - (i[3] == tuple[2] or i[3] == 0xffffffff) and - (i[4] == tuple[3] or i[4] == 0xffffffff) and + if ((i[1] == tuple[0] or i[1] == 0xffffffffL) and + (i[2] == tuple[1] or i[2] == 0xffffffffL) and + (i[3] == tuple[2] or i[3] == 0xffffffffL) and + (i[4] == tuple[3] or i[4] == 0xffffffffL) and (i[5] == (tuple[4] & i[6]))): ret.append(i[0]) for i in greylist: