64 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
66 #include <linux/module.h>
67 #include <linux/pci.h>
77 #define IWL_PCI_DEVICE(dev, subdev, cfg) \
78 .vendor = PCI_VENDOR_ID_INTEL, .device = (dev), \
79 .subvendor = PCI_ANY_ID, .subdevice = (subdev), \
80 .driver_data = (kernel_ulong_t)&(cfg)
264 #define PCI_CFG_RETRY_TIMEOUT 0x041
273 if (iwl_trans ==
NULL)
276 pci_set_drvdata(pdev, iwl_trans);
280 if (!trans_pcie->
drv)
284 if (iwl_trans_dbgfs_register(iwl_trans, iwl_trans->
dbgfs_dir))
293 pci_set_drvdata(pdev,
NULL);
305 pci_set_drvdata(pdev,
NULL);
308 #ifdef CONFIG_PM_SLEEP
320 return iwl_trans_suspend(iwl_trans);
339 return iwl_trans_resume(iwl_trans);
344 #define IWL_PM_OPS (&iwl_dev_pm_ops)
348 #define IWL_PM_OPS NULL
354 .id_table = iwl_hw_card_ids,
355 .probe = iwl_pci_probe,
363 ret = pci_register_driver(&iwl_pci_driver);
365 pr_err(
"Unable to initialize PCI module\n");