19 #include <linux/module.h>
20 #include <linux/pci.h>
25 MODULE_PARM_DESC(ids,
"Initial PCI IDs to add to the stub driver, format is "
26 "\"vendor:device[:subvendor[:subdevice[:class[:class_mask]]]]\""
27 " and multiple comma separated entries can be specified");
38 .probe = pci_stub_probe,
41 static int __init pci_stub_init(
void)
46 rc = pci_register_driver(&stub_driver);
56 while ((
id =
strsep(&p,
","))) {
64 fields =
sscanf(
id,
"%x:%x:%x:%x:%x:%x",
65 &vendor, &device, &subvendor, &subdevice,
70 "pci-stub: invalid id string \"%s\"\n",
id);
75 "pci-stub: add %04X:%04X sub=%04X:%04X cls=%08X/%08X\n",
76 vendor, device, subvendor, subdevice,
class, class_mask);
79 subvendor, subdevice,
class, class_mask, 0);
82 "pci-stub: failed to add dynamic id (%d)\n", rc);
88 static void __exit pci_stub_exit(
void)