29 #include <linux/module.h>
31 #include <linux/kernel.h>
32 #include <linux/types.h>
34 #include <linux/errno.h>
35 #include <linux/netdevice.h>
38 #include <linux/pci.h>
45 #define VERSION "arcnet: COM20020 PCI support\n"
67 struct arcnet_local *
lp;
78 lp = netdev_priv(dev);
80 pci_set_drvdata(pdev, dev);
83 if (pdev->
vendor==0x10B5) {
84 BUGMSG(D_NORMAL,
"SOHARD\n");
88 BUGMSG(D_NORMAL,
"Contemporary Controls\n");
93 BUGMSG(
D_INIT,
"IO region %xh-%xh already allocated.\n",
107 lp->card_name =
"PCI COM20020";
108 lp->card_flags =
id->driver_data;
109 lp->backplane = backplane;
110 lp->clockp = clockp & 7;
111 lp->clockm = clockm & 3;
116 BUGMSG(D_NORMAL,
"IO address %Xh was reported by PCI BIOS, "
117 "but seems empty!\n", ioaddr);
140 struct net_device *dev = pci_get_drvdata(pdev);
168 { 0x10B5, 0x9030, 0x10B5, 0x2978, 0, 0, ARC_CAN_10MBIT },
169 { 0x10B5, 0x9050, 0x10B5, 0x2273, 0, 0, ARC_CAN_10MBIT },
177 static struct pci_driver com20020pci_driver = {
179 .id_table = com20020pci_id_table,
180 .probe = com20020pci_probe,
184 static int __init com20020pci_init(
void)
187 return pci_register_driver(&com20020pci_driver);
190 static
void __exit com20020pci_cleanup(
void)