12 #include <linux/module.h>
13 #include <linux/kernel.h>
19 #include <linux/pci.h>
28 #undef CONFIG_T1PCI_DEBUG
29 #undef CONFIG_T1PCI_POLLDEBUG
32 static char *
revision =
"$Revision: 1.1.2.2 $";
88 goto err_release_region;
99 printk(
KERN_NOTICE "t1pci: card at 0x%x, but cable not connected or T1 has no power (%d)\n",
121 cinfo->
capi_ctrl.procinfo = t1pci_procinfo;
136 pci_set_drvdata(pdev, card);
155 static void t1pci_remove(
struct pci_dev *pdev)
157 avmcard *card = pci_get_drvdata(pdev);
181 cinfo->
card ? cinfo->
card->port : 0x0,
183 cinfo->
card ? cinfo->
card->membase : 0
206 printk(
KERN_INFO "t1pci: PCI BIOS reports AVM-T1-PCI at i/o %#x, irq %d, mem %#x\n",
209 retval = t1pci_add_card(&
param, dev);
211 printk(
KERN_ERR "t1pci: no AVM-T1-PCI at i/o %#x, irq %d detected, mem %#x\n",
221 .id_table = t1pci_pci_tbl,
222 .probe = t1pci_probe,
223 .remove = t1pci_remove,
231 static int __init t1pci_init(
void)
239 if ((p =
strchr(rev,
'$')) !=
NULL && p > rev)
244 err = pci_register_driver(&t1pci_pci_driver);
253 static void __exit t1pci_exit(
void)