config NET_SB1000
        tristate "General Instruments Surfboard 1000"
-       depends on PNP
+       depends on ISA && PNP
        help
          This is a driver for the General Instrument (also known as
          NextLevel) SURFboard 1000 internal
 
 #
 
 menuconfig ARCNET
-       depends on NETDEVICES && (ISA || PCI || PCMCIA)
+       depends on NETDEVICES && (ISA || PCI || PCMCIA) && HAS_IOPORT
        tristate "ARCnet support"
        help
          If you have a network card of this type, say Y and check out the
 
 
 config CAN_CC770_ISA
        tristate "ISA Bus based legacy CC770 driver"
+       depends on ISA
        help
          This driver adds legacy support for CC770 and AN82527 chips
          connected to the ISA bus using I/O port, memory mapped or
 
 
 config CAN_SJA1000_ISA
        tristate "ISA Bus based legacy SJA1000 driver"
+       depends on ISA
        help
          This driver adds legacy support for SJA1000 chips connected to
          the ISA bus using I/O port, memory mapped or indirect access.
 
 
 config PCMCIA_3C574
        tristate "3Com 3c574 PCMCIA support"
-       depends on PCMCIA
+       depends on PCMCIA && HAS_IOPORT
        help
          Say Y here if you intend to attach a 3Com 3c574 or compatible PCMCIA
          (PC-card) Fast Ethernet card to your computer.
 
 config PCMCIA_3C589
        tristate "3Com 3c589 PCMCIA support"
-       depends on PCMCIA
+       depends on PCMCIA && HAS_IOPORT
        help
          Say Y here if you intend to attach a 3Com 3c589 or compatible PCMCIA
          (PC-card) Ethernet card to your computer.
 
 
 config PCMCIA_AXNET
        tristate "Asix AX88190 PCMCIA support"
-       depends on PCMCIA
+       depends on PCMCIA && HAS_IOPORT
        help
          Say Y here if you intend to attach an Asix AX88190-based PCMCIA
          (PC-card) Fast Ethernet card to your computer.  These cards are
 
 config NE2K_PCI
        tristate "PCI NE2000 and clones support (see help)"
-       depends on PCI
+       depends on PCI && HAS_IOPORT
        select CRC32
        help
          This driver is for NE2000 compatible PCI cards. It will not work
 
 config PCMCIA_PCNET
        tristate "NE2000 compatible PCMCIA support"
-       depends on PCMCIA
+       depends on PCMCIA && HAS_IOPORT
        select CRC32
        help
          Say Y here if you intend to attach an NE2000 compatible PCMCIA
 
 
 config PCNET32
        tristate "AMD PCnet32 PCI support"
-       depends on PCI
+       depends on PCI && HAS_IOPORT
        select CRC32
        select MII
        help
 
 config PCMCIA_NMCLAN
        tristate "New Media PCMCIA support"
-       depends on PCMCIA
+       depends on PCMCIA && HAS_IOPORT
        help
          Say Y here if you intend to attach a New Media Ethernet or LiveWire
          PCMCIA (PC-card) Ethernet card to your computer.
 
 
 config PCMCIA_FMVJ18X
        tristate "Fujitsu FMV-J18x PCMCIA support"
-       depends on PCMCIA
+       depends on PCMCIA && HAS_IOPORT
        select CRC32
        help
          Say Y here if you intend to attach a Fujitsu FMV-J18x or compatible
 
 
 config E1000
        tristate "Intel(R) PRO/1000 Gigabit Ethernet support"
-       depends on PCI
+       depends on PCI && HAS_IOPORT
        help
          This driver supports Intel(R) PRO/1000 gigabit ethernet family of
          adapters.  For more information on how to identify your adapter, go
 
 
 config SIS900
        tristate "SiS 900/7016 PCI Fast Ethernet Adapter support"
-       depends on PCI
+       depends on PCI && HAS_IOPORT
        select CRC32
        select MII
        help
 
 config SIS190
        tristate "SiS190/SiS191 gigabit ethernet support"
-       depends on PCI
+       depends on PCI && HAS_IOPORT
        select CRC32
        select MII
        help
 
 
 config PCMCIA_SMC91C92
        tristate "SMC 91Cxx PCMCIA support"
-       depends on PCMCIA
+       depends on PCMCIA && HAS_IOPORT
        select CRC32
        select MII
        help
 
 
 config TLAN
        tristate "TI ThunderLAN support"
-       depends on (PCI || EISA)
+       depends on (PCI || EISA) && HAS_IOPORT
        help
          If you have a PCI Ethernet network card based on the ThunderLAN chip
          which is supported by this driver, say Y here.
 
        tristate "VIA Rhine support"
        depends on PCI || (OF_IRQ && GENERIC_PCI_IOMAP)
        depends on PCI || ARCH_VT8500 || COMPILE_TEST
+       depends on HAS_IOPORT
        depends on HAS_DMA
        select CRC32
        select MII
 
 
 config PCMCIA_XIRC2PS
        tristate "Xircom 16-bit PCMCIA support"
-       depends on PCMCIA
+       depends on PCMCIA && HAS_IOPORT
        help
          Say Y here if you intend to attach a Xircom 16-bit PCMCIA (PC-card)
          Ethernet or Fast Ethernet card to your computer.
 
 #define DFX_BUS_TC(dev) 0
 #endif
 
-#if defined(CONFIG_EISA) || defined(CONFIG_PCI)
+#ifdef CONFIG_HAS_IOPORT
 #define dfx_use_mmio bp->mmio
 #else
 #define dfx_use_mmio true
 
 
 config BAYCOM_SER_FDX
        tristate "BAYCOM ser12 fullduplex driver for AX.25"
-       depends on AX25 && !S390
+       depends on AX25 && HAS_IOPORT
        select CRC_CCITT
        help
          This is one of two drivers for Baycom style simple amateur radio
 
 config BAYCOM_SER_HDX
        tristate "BAYCOM ser12 halfduplex driver for AX.25"
-       depends on AX25 && !S390
+       depends on AX25 && HAS_IOPORT
        select CRC_CCITT
        help
          This is one of two drivers for Baycom style simple amateur radio
 
 config YAM
        tristate "YAM driver for AX.25"
-       depends on AX25 && !S390
+       depends on AX25 && HAS_IOPORT
        help
          The YAM is a modem for packet radio which connects to the serial
          port and includes some of the functions of a Terminal Node
 
 
 config FARSYNC
        tristate "FarSync T-Series support"
-       depends on HDLC && PCI
+       depends on HDLC && PCI && HAS_IOPORT
        help
          Support for the FarSync T-Series X.21 (and V.35/V.24) cards by
          FarSite Communications Ltd.
 
 #
 
 menuconfig HAMRADIO
-       depends on NET && !S390
+       depends on NET
        bool "Amateur Radio support"
        help
          If you want to connect your Linux box to an amateur radio, answer Y