26 #include <linux/pci.h>
33 static void stmmac_default_data(
void)
75 pr_err(
"%s : ERROR: failed to enable %s device\n", __func__,
80 pr_err(
"%s: ERROR: failed to get PCI region\n", __func__);
82 goto err_out_req_reg_failed;
86 for (i = 0; i <= 5; i++) {
89 addr = pci_iomap(pdev, i, 0);
91 pr_err(
"%s: ERROR: cannot map register memory, aborting",
94 goto err_out_map_failed;
100 stmmac_default_data();
104 pr_err(
"%s: main driver probe failed", __func__);
107 priv->
dev->irq = pdev->
irq;
110 pci_set_drvdata(pdev, priv->
dev);
112 pr_debug(
"STMMAC platform driver registration completed");
120 err_out_req_reg_failed:
140 pci_set_drvdata(pdev,
NULL);
159 static int stmmac_pci_resume(
struct pci_dev *pdev)
161 struct net_device *ndev = pci_get_drvdata(pdev);
170 #define STMMAC_VENDOR_ID 0x700
171 #define STMMAC_DEVICE_ID 0x1108
183 .id_table = stmmac_id_table,
184 .probe = stmmac_pci_probe,
187 .suspend = stmmac_pci_suspend,
188 .resume = stmmac_pci_resume,