patch-2.4.0-test2 linux/drivers/isdn/eicon/eicon_pci.c
Next file: linux/drivers/isdn/hisax/avm_pci.c
Previous file: linux/drivers/isdn/avmb1/t1pci.c
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Mon Jun 19 17:59:40 2000
- Orig file:
v2.4.0-test1/linux/drivers/isdn/eicon/eicon_pci.c
- Orig date:
Wed Feb 16 17:03:52 2000
diff -u --recursive --new-file v2.4.0-test1/linux/drivers/isdn/eicon/eicon_pci.c linux/drivers/isdn/eicon/eicon_pci.c
@@ -148,6 +148,8 @@
}
}
+ pci_enable_device(pdev); /* XXX handle error return */
+
pci_akt = 0;
switch(pci_type)
{
@@ -156,8 +158,8 @@
aparms->type = EICON_CTYPE_MAESTRA;
aparms->irq = pdev->irq;
- preg = pdev->resource[ 2].start & 0xfffffffc;
- pcfg = pdev->resource[ 1].start & 0xffffff80;
+ preg = pci_resource_start(pdev, 2);
+ pcfg = pci_resource_start(pdev, 1);
#ifdef EICON_PCI_DEBUG
printk(KERN_DEBUG "eicon_pci: irq=%d\n", aparms->irq);
@@ -178,9 +180,9 @@
printk(KERN_INFO "Eicon: DIVA Server PRI/PCI detected !\n");
aparms->type = EICON_CTYPE_MAESTRAP; /*includes 9M,30M*/
aparms->irq = pdev->irq;
- pram = pdev->resource[ 0].start & 0xfffff000;
- preg = pdev->resource[ 2].start & 0xfffff000;
- pcfg = pdev->resource[ 4].start & 0xfffff000;
+ pram = pci_resource_start(pdev, 0);
+ preg = pci_resource_start(pdev, 2);
+ pcfg = pci_resource_start(pdev, 4);
#ifdef EICON_PCI_DEBUG
printk(KERN_DEBUG "eicon_pci: irq=%d\n", aparms->irq);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)