12 #include <linux/module.h>
13 #include <linux/kernel.h>
19 #include <linux/pci.h>
30 static char *
revision =
"$Revision: 1.1.2.2 $";
55 cinfo->
card ? cinfo->
card->port : 0x0,
57 cinfo->
card ? cinfo->
card->revision : 0
95 goto err_release_region;
104 goto err_release_region;
114 cinfo->
capi_ctrl.procinfo = b1pci_procinfo;
126 printk(
KERN_INFO "b1pci: AVM B1 PCI V4 at i/o %#x, irq %d, revision %d (no dma)\n",
129 printk(
KERN_INFO "b1pci: AVM B1 PCI at i/o %#x, irq %d, revision %d\n",
133 pci_set_drvdata(pdev, card);
146 static void b1pci_remove(
struct pci_dev *pdev)
148 avmcard *card = pci_get_drvdata(pdev);
161 #ifdef CONFIG_ISDN_DRV_AVMB1_B1PCIV4
164 static char *b1pciv4_procinfo(
struct capi_ctr *ctrl)
173 cinfo->
card ? cinfo->
card->port : 0x0,
175 cinfo->
card ? cinfo->
card->membase : 0,
176 cinfo->
card ? cinfo->
card->revision : 0
222 goto err_release_region;
246 cinfo->
capi_ctrl.driver_name =
"b1pciv4";
253 cinfo->
capi_ctrl.procinfo = b1pciv4_procinfo;
264 printk(
KERN_INFO "b1pci: AVM B1 PCI V4 at i/o %#x, irq %d, mem %#lx, revision %d (dma)\n",
267 pci_set_drvdata(pdev, card);
285 static void b1pciv4_remove(
struct pci_dev *pdev)
287 avmcard *card = pci_get_drvdata(pdev);
315 #ifdef CONFIG_ISDN_DRV_AVMB1_B1PCIV4
321 printk(
KERN_INFO "b1pci: PCI BIOS reports AVM-B1 V4 at i/o %#x, irq %d, mem %#x\n",
323 #ifdef CONFIG_ISDN_DRV_AVMB1_B1PCIV4
324 retval = b1pciv4_probe(&
param, pdev);
326 retval = b1pci_probe(&
param, pdev);
329 printk(
KERN_ERR "b1pci: no AVM-B1 V4 at i/o %#x, irq %d, mem %#x detected\n",
336 printk(
KERN_INFO "b1pci: PCI BIOS reports AVM-B1 at i/o %#x, irq %d\n",
338 retval = b1pci_probe(&
param, pdev);
349 #ifdef CONFIG_ISDN_DRV_AVMB1_B1PCIV4
350 avmcard *card = pci_get_drvdata(pdev);
353 b1pciv4_remove(pdev);
363 .id_table = b1pci_pci_tbl,
364 .probe = b1pci_pci_probe,
372 #ifdef CONFIG_ISDN_DRV_AVMB1_B1PCIV4
379 static int __init b1pci_init(
void)
387 if ((p =
strchr(rev,
'$')) !=
NULL && p > rev)
393 err = pci_register_driver(&b1pci_pci_driver);
397 #ifdef CONFIG_ISDN_DRV_AVMB1_B1PCIV4
406 static void __exit b1pci_exit(
void)
409 #ifdef CONFIG_ISDN_DRV_AVMB1_B1PCIV4