one more thing. instead of comparing against specific 0xffff mask there'd be a bit-and operation:
if ((lspci-device-id & device-mask-from-kernel-pcimap)==lspci-device-id) then module-matched.
one more thing. instead of comparing against specific 0xffff mask there'd be a bit-and operation:
if ((lspci-device-id & device- mask-from- kernel- pcimap) ==lspci- device- id) then module-matched.