0001
0002
0003
0004
0005
0006
0007
0008
0009 #include <linux/module.h>
0010 #include <linux/pci.h>
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020 static const struct pci_device_id pci_pf_stub_whitelist[] = {
0021 { PCI_VDEVICE(AMAZON, 0x0053) },
0022
0023 { 0 }
0024 };
0025 MODULE_DEVICE_TABLE(pci, pci_pf_stub_whitelist);
0026
0027 static int pci_pf_stub_probe(struct pci_dev *dev,
0028 const struct pci_device_id *id)
0029 {
0030 pci_info(dev, "claimed by pci-pf-stub\n");
0031 return 0;
0032 }
0033
0034 static struct pci_driver pf_stub_driver = {
0035 .name = "pci-pf-stub",
0036 .id_table = pci_pf_stub_whitelist,
0037 .probe = pci_pf_stub_probe,
0038 .sriov_configure = pci_sriov_configure_simple,
0039 };
0040 module_pci_driver(pf_stub_driver);
0041
0042 MODULE_LICENSE("GPL");