Commit e418cea5 authored by Kai Germaschewski's avatar Kai Germaschewski

ISDN/HiSax: Remove superfluous #ifdef CONFIG_PCI

Subdrivers which only drive PCI cards can have the dependency on
CONFIG_PCI moved to Kconfig, removing some ugly #ifdefs.
parent 18e89691
...@@ -109,6 +109,7 @@ config HISAX_16_3 ...@@ -109,6 +109,7 @@ config HISAX_16_3
config HISAX_TELESPCI config HISAX_TELESPCI
bool "Teles PCI" bool "Teles PCI"
depends on PCI
help help
This enables HiSax support for the Teles PCI. This enables HiSax support for the Teles PCI.
See <file:Documentation/isdn/README.HiSax> on how to configure it. See <file:Documentation/isdn/README.HiSax> on how to configure it.
...@@ -235,6 +236,7 @@ config HISAX_MIC ...@@ -235,6 +236,7 @@ config HISAX_MIC
config HISAX_NETJET config HISAX_NETJET
bool "NETjet card" bool "NETjet card"
depends on PCI
help help
This enables HiSax support for the NetJet from Traverse This enables HiSax support for the NetJet from Traverse
Technologies. Technologies.
...@@ -245,6 +247,7 @@ config HISAX_NETJET ...@@ -245,6 +247,7 @@ config HISAX_NETJET
config HISAX_NETJET_U config HISAX_NETJET_U
bool "NETspider U card" bool "NETspider U card"
depends on PCI
help help
This enables HiSax support for the Netspider U interface ISDN card This enables HiSax support for the Netspider U interface ISDN card
from Traverse Technologies. from Traverse Technologies.
...@@ -283,6 +286,7 @@ config HISAX_HSTSAPHIR ...@@ -283,6 +286,7 @@ config HISAX_HSTSAPHIR
config HISAX_BKM_A4T config HISAX_BKM_A4T
bool "Telekom A4T card" bool "Telekom A4T card"
depends on PCI
help help
This enables HiSax support for the Telekom A4T card. This enables HiSax support for the Telekom A4T card.
...@@ -292,6 +296,7 @@ config HISAX_BKM_A4T ...@@ -292,6 +296,7 @@ config HISAX_BKM_A4T
config HISAX_SCT_QUADRO config HISAX_SCT_QUADRO
bool "Scitel Quadro card" bool "Scitel Quadro card"
depends on PCI
help help
This enables HiSax support for the Scitel Quadro card. This enables HiSax support for the Scitel Quadro card.
...@@ -310,6 +315,7 @@ config HISAX_GAZEL ...@@ -310,6 +315,7 @@ config HISAX_GAZEL
config HISAX_HFC_PCI config HISAX_HFC_PCI
bool "HFC PCI-Bus cards" bool "HFC PCI-Bus cards"
depends on PCI
help help
This enables HiSax support for the HFC-S PCI 2BDS0 based cards. This enables HiSax support for the HFC-S PCI 2BDS0 based cards.
...@@ -318,6 +324,7 @@ config HISAX_HFC_PCI ...@@ -318,6 +324,7 @@ config HISAX_HFC_PCI
config HISAX_W6692 config HISAX_W6692
bool "Winbond W6692 based cards" bool "Winbond W6692 based cards"
depends on PCI
help help
This enables HiSax support for Winbond W6692 based PCI ISDN cards. This enables HiSax support for Winbond W6692 based PCI ISDN cards.
...@@ -335,7 +342,7 @@ config HISAX_HFC_SX ...@@ -335,7 +342,7 @@ config HISAX_HFC_SX
config HISAX_ENTERNOW_PCI config HISAX_ENTERNOW_PCI
bool "Formula-n enter:now PCI card (EXPERIMENTAL)" bool "Formula-n enter:now PCI card (EXPERIMENTAL)"
depends on EXPERIMENTAL depends on PCI && EXPERIMENTAL
help help
This enables HiSax support for the Formula-n enter:now PCI This enables HiSax support for the Formula-n enter:now PCI
ISDN card. ISDN card.
...@@ -397,14 +404,14 @@ config HISAX_FRITZ_PCIPNP ...@@ -397,14 +404,14 @@ config HISAX_FRITZ_PCIPNP
config HISAX_FRITZ_CLASSIC config HISAX_FRITZ_CLASSIC
tristate "AVM Fritz!Card classic support (EXPERIMENTAL)" tristate "AVM Fritz!Card classic support (EXPERIMENTAL)"
depends on EXPERIMENTAL depends on ISA && EXPERIMENTAL
help help
This enables the driver for the AVM Fritz!Card classic, formerly This enables the driver for the AVM Fritz!Card classic, formerly
known as AVM A1. known as AVM A1.
config HISAX_HFCPCI config HISAX_HFCPCI
tristate "HFC PCI support (EXPERIMENTAL)" tristate "HFC PCI support (EXPERIMENTAL)"
depends on EXPERIMENTAL depends on PCI && EXPERIMENTAL
help help
This enables the driver for CCD HFC PCI based cards. This enables the driver for CCD HFC PCI based cards.
......
...@@ -662,10 +662,6 @@ setup_avm_pcipnp(struct IsdnCard *card) ...@@ -662,10 +662,6 @@ setup_avm_pcipnp(struct IsdnCard *card)
} }
#endif #endif
#if CONFIG_PCI #if CONFIG_PCI
if (!pci_present()) {
printk(KERN_ERR "FritzPCI: no PCI bus present\n");
return(0);
}
if ((dev_avm = pci_find_device(PCI_VENDOR_ID_AVM, if ((dev_avm = pci_find_device(PCI_VENDOR_ID_AVM,
PCI_DEVICE_ID_AVM_A1, dev_avm))) { PCI_DEVICE_ID_AVM_A1, dev_avm))) {
cs->irq = dev_avm->irq; cs->irq = dev_avm->irq;
...@@ -686,9 +682,6 @@ setup_avm_pcipnp(struct IsdnCard *card) ...@@ -686,9 +682,6 @@ setup_avm_pcipnp(struct IsdnCard *card)
return(0); return(0);
} }
cs->irq_flags |= SA_SHIRQ; cs->irq_flags |= SA_SHIRQ;
#else
printk(KERN_WARNING "FritzPCI: NO_PCI_BIOS\n");
return (0);
#endif /* CONFIG_PCI */ #endif /* CONFIG_PCI */
} }
ready: ready:
......
...@@ -268,8 +268,6 @@ setup_bkm_a4t(struct IsdnCard *card) ...@@ -268,8 +268,6 @@ setup_bkm_a4t(struct IsdnCard *card)
char tmp[64]; char tmp[64];
u_int pci_memaddr = 0, found = 0; u_int pci_memaddr = 0, found = 0;
I20_REGISTER_FILE *pI20_Regs; I20_REGISTER_FILE *pI20_Regs;
#if CONFIG_PCI
#endif
strcpy(tmp, bkm_a4t_revision); strcpy(tmp, bkm_a4t_revision);
printk(KERN_INFO "HiSax: T-Berkom driver Rev. %s\n", HiSax_getrev(tmp)); printk(KERN_INFO "HiSax: T-Berkom driver Rev. %s\n", HiSax_getrev(tmp));
...@@ -278,11 +276,6 @@ setup_bkm_a4t(struct IsdnCard *card) ...@@ -278,11 +276,6 @@ setup_bkm_a4t(struct IsdnCard *card)
} else } else
return (0); return (0);
#if CONFIG_PCI
if (!pci_present()) {
printk(KERN_ERR "bkm_a4t: no PCI bus present\n");
return (0);
}
while ((dev_a4t = pci_find_device(PCI_VENDOR_ID_ZORAN, while ((dev_a4t = pci_find_device(PCI_VENDOR_ID_ZORAN,
PCI_DEVICE_ID_ZORAN_36120, dev_a4t))) { PCI_DEVICE_ID_ZORAN_36120, dev_a4t))) {
u16 sub_sys; u16 sub_sys;
...@@ -307,7 +300,7 @@ setup_bkm_a4t(struct IsdnCard *card) ...@@ -307,7 +300,7 @@ setup_bkm_a4t(struct IsdnCard *card)
printk(KERN_WARNING "HiSax: %s: No IRQ\n", CardType[card->typ]); printk(KERN_WARNING "HiSax: %s: No IRQ\n", CardType[card->typ]);
return (0); return (0);
} }
cs->hw.ax.base = request_mmio(&cs->rs,pci_memaddr, 4096, "Telekom A4T"); cs->hw.ax.base = (unsigned long)request_mmio(&cs->rs,pci_memaddr, 4096, "Telekom A4T");
if (!cs->hw.ax.base) { if (!cs->hw.ax.base) {
printk(KERN_WARNING "HiSax: %s: No Memory base address\n", CardType[card->typ]); printk(KERN_WARNING "HiSax: %s: No Memory base address\n", CardType[card->typ]);
return (0); return (0);
...@@ -325,11 +318,7 @@ setup_bkm_a4t(struct IsdnCard *card) ...@@ -325,11 +318,7 @@ setup_bkm_a4t(struct IsdnCard *card)
cs->hw.ax.jade_adr = cs->hw.ax.base + PO_OFFSET; cs->hw.ax.jade_adr = cs->hw.ax.base + PO_OFFSET;
cs->hw.ax.isac_ale = GCS_1; cs->hw.ax.isac_ale = GCS_1;
cs->hw.ax.jade_ale = GCS_3; cs->hw.ax.jade_ale = GCS_3;
#else
printk(KERN_WARNING "HiSax: %s: NO_PCI_BIOS\n", CardType[card->typ]);
printk(KERN_WARNING "HiSax: %s: unable to configure\n", CardType[card->typ]);
return (0);
#endif /* CONFIG_PCI */
printk(KERN_INFO "HiSax: %s: Card configured at 0x%lX IRQ %d\n", printk(KERN_INFO "HiSax: %s: Card configured at 0x%lX IRQ %d\n",
CardType[card->typ], cs->hw.ax.base, cs->irq); CardType[card->typ], cs->hw.ax.base, cs->irq);
......
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#include <linux/pci.h> #include <linux/pci.h>
#include "bkm_ax.h" #include "bkm_ax.h"
#if CONFIG_PCI
#define ATTEMPT_PCI_REMAPPING /* Required for PLX rev 1 */ #define ATTEMPT_PCI_REMAPPING /* Required for PLX rev 1 */
extern const char *CardType[]; extern const char *CardType[];
...@@ -169,12 +167,9 @@ static u16 sub_vendor_id __initdata = 0; ...@@ -169,12 +167,9 @@ static u16 sub_vendor_id __initdata = 0;
static u16 sub_sys_id __initdata = 0; static u16 sub_sys_id __initdata = 0;
static u8 pci_irq __initdata = 0; static u8 pci_irq __initdata = 0;
#endif /* CONFIG_PCI */
int __init int __init
setup_sct_quadro(struct IsdnCard *card) setup_sct_quadro(struct IsdnCard *card)
{ {
#if CONFIG_PCI
struct IsdnCardState *cs = card->cs; struct IsdnCardState *cs = card->cs;
char tmp[64]; char tmp[64];
u8 pci_rev_id; u8 pci_rev_id;
...@@ -200,10 +195,6 @@ setup_sct_quadro(struct IsdnCard *card) ...@@ -200,10 +195,6 @@ setup_sct_quadro(struct IsdnCard *card)
(sub_vendor_id != PCI_VENDOR_ID_BERKOM))) (sub_vendor_id != PCI_VENDOR_ID_BERKOM)))
return (0); return (0);
if (cs->subtyp == SCT_1) { if (cs->subtyp == SCT_1) {
if (!pci_present()) {
printk(KERN_ERR "bkm_a4t: no PCI bus present\n");
return (0);
}
while ((dev_a8 = pci_find_device(PCI_VENDOR_ID_PLX, while ((dev_a8 = pci_find_device(PCI_VENDOR_ID_PLX,
PCI_DEVICE_ID_PLX_9050, dev_a8))) { PCI_DEVICE_ID_PLX_9050, dev_a8))) {
...@@ -319,9 +310,6 @@ setup_sct_quadro(struct IsdnCard *card) ...@@ -319,9 +310,6 @@ setup_sct_quadro(struct IsdnCard *card)
sct_quadro_subtypes[cs->subtyp], sct_quadro_subtypes[cs->subtyp],
ipac_read(cs, IPAC_ID)); ipac_read(cs, IPAC_ID));
return 1; return 1;
#else
printk(KERN_ERR "HiSax: bkm_a8 only supported on PCI Systems\n");
#endif /* CONFIG_PCI */
err: err:
hisax_release_resources(cs); hisax_release_resources(cs);
return 0; return 0;
......
...@@ -699,11 +699,6 @@ setup_diva(struct IsdnCard *card) ...@@ -699,11 +699,6 @@ setup_diva(struct IsdnCard *card)
} }
#endif #endif
#if CONFIG_PCI #if CONFIG_PCI
if (!pci_present()) {
printk(KERN_ERR "Diva: no PCI bus present\n");
return(0);
}
cs->subtyp = 0; cs->subtyp = 0;
if ((dev_diva = pci_find_device(PCI_VENDOR_ID_EICON, if ((dev_diva = pci_find_device(PCI_VENDOR_ID_EICON,
PCI_DEVICE_ID_EICON_DIVA20, dev_diva))) { PCI_DEVICE_ID_EICON_DIVA20, dev_diva))) {
...@@ -742,10 +737,6 @@ setup_diva(struct IsdnCard *card) ...@@ -742,10 +737,6 @@ setup_diva(struct IsdnCard *card)
goto err; goto err;
} }
cs->irq_flags |= SA_SHIRQ; cs->irq_flags |= SA_SHIRQ;
#else
printk(KERN_WARNING "Diva: cfgreg 0 and NO_PCI_BIOS\n");
printk(KERN_WARNING "Diva: unable to config DIVA PCI\n");
return (0);
#endif /* CONFIG_PCI */ #endif /* CONFIG_PCI */
if ((cs->subtyp == DIVA_IPAC_PCI) || if ((cs->subtyp == DIVA_IPAC_PCI) ||
(cs->subtyp == DIVA_IPACX_PCI) ) { (cs->subtyp == DIVA_IPACX_PCI) ) {
......
...@@ -973,10 +973,6 @@ setup_elsa(struct IsdnCard *card) ...@@ -973,10 +973,6 @@ setup_elsa(struct IsdnCard *card)
cs->irq); cs->irq);
} else if (cs->typ == ISDN_CTYPE_ELSA_PCI) { } else if (cs->typ == ISDN_CTYPE_ELSA_PCI) {
#if CONFIG_PCI #if CONFIG_PCI
if (!pci_present()) {
printk(KERN_ERR "Elsa: no PCI bus present\n");
return(0);
}
cs->subtyp = 0; cs->subtyp = 0;
if ((dev_qs1000 = pci_find_device(PCI_VENDOR_ID_ELSA, if ((dev_qs1000 = pci_find_device(PCI_VENDOR_ID_ELSA,
PCI_DEVICE_ID_ELSA_MICROLINK, dev_qs1000))) { PCI_DEVICE_ID_ELSA_MICROLINK, dev_qs1000))) {
...@@ -1025,10 +1021,6 @@ setup_elsa(struct IsdnCard *card) ...@@ -1025,10 +1021,6 @@ setup_elsa(struct IsdnCard *card)
cs->hw.elsa.base, cs->hw.elsa.base,
cs->hw.elsa.cfg, cs->hw.elsa.cfg,
cs->irq); cs->irq);
#else
printk(KERN_WARNING "Elsa: Elsa PCI and NO_PCI_BIOS\n");
printk(KERN_WARNING "Elsa: unable to config Elsa PCI\n");
return (0);
#endif /* CONFIG_PCI */ #endif /* CONFIG_PCI */
} else } else
return (0); return (0);
......
...@@ -283,7 +283,6 @@ setup_enternow_pci(struct IsdnCard *card) ...@@ -283,7 +283,6 @@ setup_enternow_pci(struct IsdnCard *card)
struct IsdnCardState *cs = card->cs; struct IsdnCardState *cs = card->cs;
char tmp[64]; char tmp[64];
#if CONFIG_PCI
#ifdef __BIG_ENDIAN #ifdef __BIG_ENDIAN
#error "not running on big endian machines now" #error "not running on big endian machines now"
#endif #endif
...@@ -292,12 +291,7 @@ setup_enternow_pci(struct IsdnCard *card) ...@@ -292,12 +291,7 @@ setup_enternow_pci(struct IsdnCard *card)
if (cs->typ != ISDN_CTYPE_ENTERNOW) if (cs->typ != ISDN_CTYPE_ENTERNOW)
return(0); return(0);
for ( ;; ) for ( ;; ) {
{
if (!pci_present()) {
printk(KERN_ERR "enter:now PCI: no PCI bus present\n");
return(0);
}
if ((dev_netjet = pci_find_device(PCI_VENDOR_ID_TIGERJET, if ((dev_netjet = pci_find_device(PCI_VENDOR_ID_TIGERJET,
PCI_DEVICE_ID_TIGERJET_300, dev_netjet))) { PCI_DEVICE_ID_TIGERJET_300, dev_netjet))) {
if (pci_enable_device(dev_netjet)) if (pci_enable_device(dev_netjet))
...@@ -350,14 +344,6 @@ setup_enternow_pci(struct IsdnCard *card) ...@@ -350,14 +344,6 @@ setup_enternow_pci(struct IsdnCard *card)
break; break;
} }
#else
printk(KERN_WARNING "enter:now PCI: NO_PCI_BIOS\n");
printk(KERN_WARNING "enter:now PCI: unable to config Formula-n enter:now ISDN PCI ab\n");
return (0);
#endif /* CONFIG_PCI */
printk(KERN_INFO printk(KERN_INFO
"enter:now PCI: PCI card configured at 0x%lx IRQ %d\n", "enter:now PCI: PCI card configured at 0x%lx IRQ %d\n",
cs->hw.njet.base, cs->irq); cs->hw.njet.base, cs->irq);
......
...@@ -65,8 +65,6 @@ static const PCI_ENTRY id_list[] = ...@@ -65,8 +65,6 @@ static const PCI_ENTRY id_list[] =
}; };
#if CONFIG_PCI
/******************************************/ /******************************************/
/* free hardware resources used by driver */ /* free hardware resources used by driver */
/******************************************/ /******************************************/
...@@ -1398,8 +1396,6 @@ static struct card_ops hfcpci_ops = { ...@@ -1398,8 +1396,6 @@ static struct card_ops hfcpci_ops = {
/* this variable is used as card index when more than one cards are present */ /* this variable is used as card index when more than one cards are present */
static struct pci_dev *dev_hfcpci __initdata = NULL; static struct pci_dev *dev_hfcpci __initdata = NULL;
#endif /* CONFIG_PCI */
int __init int __init
setup_hfcpci(struct IsdnCard *card) setup_hfcpci(struct IsdnCard *card)
{ {
...@@ -1410,7 +1406,6 @@ setup_hfcpci(struct IsdnCard *card) ...@@ -1410,7 +1406,6 @@ setup_hfcpci(struct IsdnCard *card)
strcpy(tmp, hfcpci_revision); strcpy(tmp, hfcpci_revision);
printk(KERN_INFO "HiSax: HFC-PCI driver Rev. %s\n", HiSax_getrev(tmp)); printk(KERN_INFO "HiSax: HFC-PCI driver Rev. %s\n", HiSax_getrev(tmp));
#if CONFIG_PCI
cs->hw.hfcpci.int_s1 = 0; cs->hw.hfcpci.int_s1 = 0;
cs->dc.hfcpci.ph_state = 0; cs->dc.hfcpci.ph_state = 0;
cs->hw.hfcpci.fifo = 255; cs->hw.hfcpci.fifo = 255;
...@@ -1489,8 +1484,4 @@ setup_hfcpci(struct IsdnCard *card) ...@@ -1489,8 +1484,4 @@ setup_hfcpci(struct IsdnCard *card)
err: err:
hisax_release_resources(cs); hisax_release_resources(cs);
return 0; return 0;
#else
printk(KERN_WARNING "HFC-PCI: NO_PCI_BIOS\n");
return (0);
#endif /* CONFIG_PCI */
} }
...@@ -268,10 +268,6 @@ setup_niccy(struct IsdnCard *card) ...@@ -268,10 +268,6 @@ setup_niccy(struct IsdnCard *card)
} else { } else {
#if CONFIG_PCI #if CONFIG_PCI
u_int pci_ioaddr; u_int pci_ioaddr;
if (!pci_present()) {
printk(KERN_ERR "Niccy: no PCI bus present\n");
return(0);
}
cs->subtyp = 0; cs->subtyp = 0;
if ((niccy_dev = pci_find_device(PCI_VENDOR_ID_SATSAGEM, if ((niccy_dev = pci_find_device(PCI_VENDOR_ID_SATSAGEM,
PCI_DEVICE_ID_SATSAGEM_NICCY, niccy_dev))) { PCI_DEVICE_ID_SATSAGEM_NICCY, niccy_dev))) {
...@@ -308,10 +304,6 @@ setup_niccy(struct IsdnCard *card) ...@@ -308,10 +304,6 @@ setup_niccy(struct IsdnCard *card)
goto err; goto err;
if (!request_io(&cs->rs, cs->hw.niccy.cfg_reg, 0x40, "niccy pci")) if (!request_io(&cs->rs, cs->hw.niccy.cfg_reg, 0x40, "niccy pci"))
goto err; goto err;
#else
printk(KERN_WARNING "Niccy: io0 0 and NO_PCI_BIOS\n");
printk(KERN_WARNING "Niccy: unable to config NICCY PCI\n");
return (0);
#endif /* CONFIG_PCI */ #endif /* CONFIG_PCI */
} }
printk(KERN_INFO printk(KERN_INFO
......
...@@ -128,14 +128,7 @@ setup_netjet_s(struct IsdnCard *card) ...@@ -128,14 +128,7 @@ setup_netjet_s(struct IsdnCard *card)
if (cs->typ != ISDN_CTYPE_NETJET_S) if (cs->typ != ISDN_CTYPE_NETJET_S)
return(0); return(0);
#if CONFIG_PCI for ( ;; ) {
for ( ;; )
{
if (!pci_present()) {
printk(KERN_ERR "Netjet: no PCI bus present\n");
return(0);
}
if ((dev_netjet = pci_find_device(PCI_VENDOR_ID_TIGERJET, if ((dev_netjet = pci_find_device(PCI_VENDOR_ID_TIGERJET,
PCI_DEVICE_ID_TIGERJET_300, dev_netjet))) { PCI_DEVICE_ID_TIGERJET_300, dev_netjet))) {
if (pci_enable_device(dev_netjet)) if (pci_enable_device(dev_netjet))
...@@ -202,14 +195,6 @@ setup_netjet_s(struct IsdnCard *card) ...@@ -202,14 +195,6 @@ setup_netjet_s(struct IsdnCard *card)
} }
break; break;
} }
#else
printk(KERN_WARNING "NETjet-S: NO_PCI_BIOS\n");
printk(KERN_WARNING "NETjet-S: unable to config NETJET-S PCI\n");
return (0);
#endif /* CONFIG_PCI */
printk(KERN_INFO printk(KERN_INFO
"NETjet-S: PCI card configured at %#lx IRQ %d\n", "NETjet-S: PCI card configured at %#lx IRQ %d\n",
cs->hw.njet.base, cs->irq); cs->hw.njet.base, cs->irq);
......
...@@ -123,8 +123,6 @@ setup_netjet_u(struct IsdnCard *card) ...@@ -123,8 +123,6 @@ setup_netjet_u(struct IsdnCard *card)
{ {
struct IsdnCardState *cs = card->cs; struct IsdnCardState *cs = card->cs;
char tmp[64]; char tmp[64];
#if CONFIG_PCI
#endif
#ifdef __BIG_ENDIAN #ifdef __BIG_ENDIAN
#error "not running on big endian machines now" #error "not running on big endian machines now"
#endif #endif
...@@ -133,14 +131,7 @@ setup_netjet_u(struct IsdnCard *card) ...@@ -133,14 +131,7 @@ setup_netjet_u(struct IsdnCard *card)
if (cs->typ != ISDN_CTYPE_NETJET_U) if (cs->typ != ISDN_CTYPE_NETJET_U)
return(0); return(0);
#if CONFIG_PCI for ( ;; ) {
for ( ;; )
{
if (!pci_present()) {
printk(KERN_ERR "Netjet: no PCI bus present\n");
return(0);
}
if ((dev_netjet = pci_find_device(PCI_VENDOR_ID_TIGERJET, if ((dev_netjet = pci_find_device(PCI_VENDOR_ID_TIGERJET,
PCI_DEVICE_ID_TIGERJET_300, dev_netjet))) { PCI_DEVICE_ID_TIGERJET_300, dev_netjet))) {
if (pci_enable_device(dev_netjet)) if (pci_enable_device(dev_netjet))
...@@ -200,14 +191,6 @@ setup_netjet_u(struct IsdnCard *card) ...@@ -200,14 +191,6 @@ setup_netjet_u(struct IsdnCard *card)
} }
break; break;
} }
#else
printk(KERN_WARNING "NETspider-U: NO_PCI_BIOS\n");
printk(KERN_WARNING "NETspider-U: unable to config NETspider-U PCI\n");
return (0);
#endif /* CONFIG_PCI */
printk(KERN_INFO printk(KERN_INFO
"NETspider-U: PCI card configured at %#lx IRQ %d\n", "NETspider-U: PCI card configured at %#lx IRQ %d\n",
cs->hw.njet.base, cs->irq); cs->hw.njet.base, cs->irq);
......
...@@ -560,10 +560,6 @@ setup_sedlbauer(struct IsdnCard *card) ...@@ -560,10 +560,6 @@ setup_sedlbauer(struct IsdnCard *card)
#endif #endif
/* Probe for Sedlbauer speed pci */ /* Probe for Sedlbauer speed pci */
#if CONFIG_PCI #if CONFIG_PCI
if (!pci_present()) {
printk(KERN_ERR "Sedlbauer: no PCI bus present\n");
goto err;
}
if ((dev_sedl = pci_find_device(PCI_VENDOR_ID_TIGERJET, if ((dev_sedl = pci_find_device(PCI_VENDOR_ID_TIGERJET,
PCI_DEVICE_ID_TIGERJET_100, dev_sedl))) { PCI_DEVICE_ID_TIGERJET_100, dev_sedl))) {
if (pci_enable_device(dev_sedl)) if (pci_enable_device(dev_sedl))
...@@ -615,9 +611,6 @@ setup_sedlbauer(struct IsdnCard *card) ...@@ -615,9 +611,6 @@ setup_sedlbauer(struct IsdnCard *card)
current->state = TASK_UNINTERRUPTIBLE; current->state = TASK_UNINTERRUPTIBLE;
schedule_timeout((10*HZ)/1000); schedule_timeout((10*HZ)/1000);
byteout(cs->hw.sedl.cfg_reg +3, cs->hw.sedl.reset_off); byteout(cs->hw.sedl.cfg_reg +3, cs->hw.sedl.reset_off);
#else
printk(KERN_WARNING "Sedlbauer: NO_PCI_BIOS\n");
goto err;
#endif /* CONFIG_PCI */ #endif /* CONFIG_PCI */
} }
ready: ready:
......
...@@ -252,11 +252,6 @@ setup_telespci(struct IsdnCard *card) ...@@ -252,11 +252,6 @@ setup_telespci(struct IsdnCard *card)
printk(KERN_INFO "HiSax: Teles/PCI driver Rev. %s\n", HiSax_getrev(tmp)); printk(KERN_INFO "HiSax: Teles/PCI driver Rev. %s\n", HiSax_getrev(tmp));
if (cs->typ != ISDN_CTYPE_TELESPCI) if (cs->typ != ISDN_CTYPE_TELESPCI)
return (0); return (0);
#if CONFIG_PCI
if (!pci_present()) {
printk(KERN_ERR "TelesPCI: no PCI bus present\n");
return(0);
}
if ((dev_tel = pci_find_device (PCI_VENDOR_ID_ZORAN, PCI_DEVICE_ID_ZORAN_36120, dev_tel))) { if ((dev_tel = pci_find_device (PCI_VENDOR_ID_ZORAN, PCI_DEVICE_ID_ZORAN_36120, dev_tel))) {
if (pci_enable_device(dev_tel)) if (pci_enable_device(dev_tel))
return(0); return(0);
...@@ -274,11 +269,6 @@ setup_telespci(struct IsdnCard *card) ...@@ -274,11 +269,6 @@ setup_telespci(struct IsdnCard *card)
printk(KERN_WARNING "TelesPCI: No PCI card found\n"); printk(KERN_WARNING "TelesPCI: No PCI card found\n");
return(0); return(0);
} }
#else
printk(KERN_WARNING "HiSax: Teles/PCI and NO_PCI_BIOS\n");
printk(KERN_WARNING "HiSax: Teles/PCI unable to config\n");
return (0);
#endif /* CONFIG_PCI */
/* Initialize Zoran PCI controller */ /* Initialize Zoran PCI controller */
writel(0x00000000, cs->hw.teles0.membase + 0x28); writel(0x00000000, cs->hw.teles0.membase + 0x28);
...@@ -288,7 +278,6 @@ setup_telespci(struct IsdnCard *card) ...@@ -288,7 +278,6 @@ setup_telespci(struct IsdnCard *card)
writel(0x70000000, cs->hw.teles0.membase + 0x3C); writel(0x70000000, cs->hw.teles0.membase + 0x3C);
writel(0x61000000, cs->hw.teles0.membase + 0x40); writel(0x61000000, cs->hw.teles0.membase + 0x40);
/* writel(0x00800000, cs->hw.teles0.membase + 0x200); */ /* writel(0x00800000, cs->hw.teles0.membase + 0x200); */
printk(KERN_INFO printk(KERN_INFO
"HiSax: %s config irq:%d mem:%p\n", "HiSax: %s config irq:%d mem:%p\n",
CardType[cs->typ], cs->irq, CardType[cs->typ], cs->irq,
......
...@@ -690,11 +690,6 @@ setup_w6692(struct IsdnCard *card) ...@@ -690,11 +690,6 @@ setup_w6692(struct IsdnCard *card)
printk(KERN_INFO "HiSax: W6692 driver Rev. %s\n", HiSax_getrev(tmp)); printk(KERN_INFO "HiSax: W6692 driver Rev. %s\n", HiSax_getrev(tmp));
if (cs->typ != ISDN_CTYPE_W6692) if (cs->typ != ISDN_CTYPE_W6692)
return (0); return (0);
#if CONFIG_PCI
if (!pci_present()) {
printk(KERN_ERR "W6692: no PCI bus present\n");
return (0);
}
while (id_list[id_idx].vendor_id) { while (id_list[id_idx].vendor_id) {
dev_w6692 = pci_find_device(id_list[id_idx].vendor_id, dev_w6692 = pci_find_device(id_list[id_idx].vendor_id,
id_list[id_idx].device_id, id_list[id_idx].device_id,
...@@ -741,12 +736,6 @@ setup_w6692(struct IsdnCard *card) ...@@ -741,12 +736,6 @@ setup_w6692(struct IsdnCard *card)
if (!request_io(&cs->rs, cs->hw.w6692.iobase, 0x100, id_list[cs->subtyp].card_name)) if (!request_io(&cs->rs, cs->hw.w6692.iobase, 0x100, id_list[cs->subtyp].card_name))
return 0; return 0;
#else
printk(KERN_WARNING "HiSax: W6692 and NO_PCI_BIOS\n");
printk(KERN_WARNING "HiSax: W6692 unable to config\n");
return (0);
#endif /* CONFIG_PCI */
printk(KERN_INFO printk(KERN_INFO
"HiSax: %s config irq:%d I/O:%x\n", "HiSax: %s config irq:%d I/O:%x\n",
id_list[cs->subtyp].card_name, cs->irq, id_list[cs->subtyp].card_name, cs->irq,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment