/* Synopsys DesignWare Core Enterprise Ethernet (XLGMAC) Driver * * Copyright (c) 2017 Synopsys, Inc. (www.synopsys.com) * * This program is dual-licensed; you may select either version 2 of * the GNU General Public License ("GPL") or BSD license ("BSD"). * * This Synopsys DWC XLGMAC software driver and associated documentation * (hereinafter the "Software") is an unsupported proprietary work of * Synopsys, Inc. unless otherwise expressly agreed to in writing between * Synopsys and you. The Software IS NOT an item of Licensed Software or a * Licensed Product under any End User Software License Agreement or * Agreement for Licensed Products with Synopsys or any supplement thereto. * Synopsys is a registered trademark of Synopsys, Inc. Other names included * in the SOFTWARE may be the trademarks of their respective owners. */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/pci.h> #include "dwc-xlgmac.h" #include "dwc-xlgmac-reg.h" static int xlgmac_probe(struct pci_dev *pcidev, const struct pci_device_id *id) { … } static void xlgmac_remove(struct pci_dev *pcidev) { … } static const struct pci_device_id xlgmac_pci_tbl[] = …; MODULE_DEVICE_TABLE(pci, xlgmac_pci_tbl); static struct pci_driver xlgmac_pci_driver = …; module_pci_driver(…) …;