mainmenu_name "Linux/MIPS Kernel Configuration"

mainmenu_option next_comment
comment 'Code maturity level options'
bool 'Prompt for development and/or incomplete code/drivers' CONFIG_EXPERIMENTAL
endmenu

mainmenu_option next_comment
comment 'Loadable module support'
bool 'Enable loadable module support' CONFIG_MODULES
if [ "$CONFIG_MODULES" = "y" ]; then
   bool '  Set version information on all module symbols' CONFIG_MODVERSIONS
   bool '  Kernel module loader' CONFIG_KMOD
fi
endmenu

#
# Keep these alphabetically sorted
#
mainmenu_option next_comment
comment 'Machine selection'
dep_bool 'Support for Acer PICA 1 chipset (EXPERIMENTAL)' CONFIG_ACER_PICA_61 $CONFIG_EXPERIMENTAL
dep_bool 'Support for Alchemy Bosporus board' CONFIG_MIPS_BOSPORUS $CONFIG_MIPS32
dep_bool 'Support for Alchemy Mirage board' CONFIG_MIPS_MIRAGE $CONFIG_MIPS32
dep_bool 'Support for Alchemy Db1000 board' CONFIG_MIPS_DB1000 $CONFIG_MIPS32
dep_bool 'Support for Alchemy Db1100 board' CONFIG_MIPS_DB1100 $CONFIG_MIPS32
dep_bool 'Support for Alchemy Db1500 board' CONFIG_MIPS_DB1500 $CONFIG_MIPS32
dep_bool 'Support for Alchemy PB1000 board' CONFIG_MIPS_PB1000 $CONFIG_MIPS32
if [ "$CONFIG_MIPS_PB1000" = "y" ]; then
   bool '  Support for PCI AUTO Config' CONFIG_PCI_AUTO
fi
dep_bool 'Support for Alchemy PB1100 board' CONFIG_MIPS_PB1100 $CONFIG_MIPS32
dep_bool 'Support for Alchemy PB1500 board' CONFIG_MIPS_PB1500 $CONFIG_MIPS32
dep_bool 'Support for Alchemy Hydrogen3 board' CONFIG_MIPS_HYDROGEN3 $CONFIG_MIPS32
dep_bool 'Support for Alchemy PB1550 board' CONFIG_MIPS_PB1550 $CONFIG_MIPS32
dep_bool 'Support for MyCable XXS1500 board' CONFIG_MIPS_XXS1500 $CONFIG_MIPS32
dep_bool 'Support for 4G Systems MTX-1 board' CONFIG_MIPS_MTX1 $CONFIG_MIPS32
dep_bool 'Support for Cogent CSB250 board' CONFIG_COGENT_CSB250 $CONFIG_MIPS32
dep_bool 'Support for BAGET MIPS series (EXPERIMENTAL)' CONFIG_BAGET_MIPS $CONFIG_MIPS32 $CONFIG_EXPERIMENTAL
bool 'Support for CASIO CASSIOPEIA E-10/15/55/65' CONFIG_CASIO_E55
dep_bool 'Support for Cobalt Server (EXPERIMENTAL)' CONFIG_MIPS_COBALT $CONFIG_EXPERIMENTAL
if [ "$CONFIG_MIPS32" = "y" ]; then
   bool 'Support for DECstations' CONFIG_DECSTATION
else
   dep_bool 'Support for DECstations (EXPERIMENTAL)' CONFIG_DECSTATION $CONFIG_EXPERIMENTAL
fi
dep_bool 'Support for Galileo EV64120 Evaluation board (EXPERIMENTAL)' CONFIG_MIPS_EV64120 $CONFIG_EXPERIMENTAL
if [ "$CONFIG_MIPS_EV64120" = "y" ]; then
   bool '  Enable Second PCI (PCI1)' CONFIG_EVB_PCI1
   choice '  Galileo Chip Clock' \
	"75	CONFIG_SYSCLK_75 \
	 83.3	CONFIG_SYSCLK_83 \
	 100	CONFIG_SYSCLK_100" 83.3
fi
dep_bool 'Support for Galileo EV96100 Evaluation board (EXPERIMENTAL)' CONFIG_MIPS_EV96100 $CONFIG_EXPERIMENTAL
bool 'Support for Globespan IVR board' CONFIG_MIPS_IVR
bool 'Support for Hewlett Packard LaserJet board' CONFIG_HP_LASERJET
bool 'Support for IBM WorkPad z50' CONFIG_IBM_WORKPAD
if [ "$CONFIG_IBM_WORKPAD" = "y" ]; then
   tristate '  NEC VRC4171 support' CONFIG_VRC4171
fi
bool 'Support for LASAT Networks platforms' CONFIG_LASAT
if [ "$CONFIG_LASAT" = "y" ]; then
   tristate '  PICVUE LCD display driver' CONFIG_PICVUE
   dep_tristate '   PICVUE LCD display driver /proc interface' CONFIG_PICVUE_PROC $CONFIG_PICVUE
   bool '  DS1603 RTC driver' CONFIG_DS1603
   bool '  LASAT sysctl interface' CONFIG_LASAT_SYSCTL
fi
bool 'Support for ITE 8172G board' CONFIG_MIPS_ITE8172
if [ "$CONFIG_MIPS_ITE8172" = "y" ]; then
   bool '  Support for older IT8172 (Rev C)' CONFIG_IT8172_REVC
fi
bool 'Support for MIPS Atlas board' CONFIG_MIPS_ATLAS
bool 'Support for MIPS Magnum 4000' CONFIG_MIPS_MAGNUM_4000
bool 'Support for MIPS Malta board' CONFIG_MIPS_MALTA
dep_bool 'Support for MIPS SEAD board (EXPERIMENTAL)' CONFIG_MIPS_SEAD $CONFIG_EXPERIMENTAL
bool 'Support for Momentum Ocelot board' CONFIG_MOMENCO_OCELOT
bool 'Support for Momentum Ocelot-G board' CONFIG_MOMENCO_OCELOT_G
bool 'Support for Momentum Ocelot-C and -CS boards' CONFIG_MOMENCO_OCELOT_C
bool 'Support for Momentum Jaguar-ATX boards' CONFIG_MOMENCO_JAGUAR_ATX
bool 'Support PMC-Sierra Yosemite board' CONFIG_PMC_YOSEMITE
if [ "$CONFIG_PMC_YOSEMITE" = "y" ]; then
   bool '  Hypertransport Support for PMC-Sierra Yosemite'  CONFIG_HYPERTRANSPORT
fi
dep_bool 'Support for NEC DDB Vrc-5074 (EXPERIMENTAL)' CONFIG_DDB5074 $CONFIG_EXPERIMENTAL
bool 'Support for NEC DDB Vrc-5476' CONFIG_DDB5476
bool 'Support for NEC DDB Vrc-5477' CONFIG_DDB5477
if [ "$CONFIG_DDB5477" = "y" ]; then
   int '   bus frequency (in kHZ, 0 for auto-detect)' CONFIG_DDB5477_BUS_FREQUENCY 0
fi
bool 'Support for NEC Osprey board' CONFIG_NEC_OSPREY
bool 'Support for NEC Eagle/Hawk board' CONFIG_NEC_EAGLE
if [ "$CONFIG_NEC_EAGLE" = "y" ]; then
   tristate '  NEC VRC4173 support' CONFIG_VRC4173
fi
bool 'Support for Olivetti M700-10' CONFIG_OLIVETTI_M700
dep_bool 'Support for Philips Nino (EXPERIMENTAL)' CONFIG_NINO $CONFIG_MIPS32 $CONFIG_EXPERIMENTAL
if [ "$CONFIG_NINO" = "y" ]; then
   choice 'Nino Model Number' \
	"Model-300/301/302/319			CONFIG_NINO_4MB \
	 Model-200/210/312/320/325/350/390	CONFIG_NINO_8MB \
	 Model-500/510				CONFIG_NINO_16MB" Model-200
fi
bool 'Support for SGI IP22 (Indy/Indigo2)' CONFIG_SGI_IP22
dep_bool 'Support for SGI IP27 (Origin200/2000)' CONFIG_SGI_IP27 $CONFIG_MIPS64
if [ "$CONFIG_SGI_IP27" = "y" ]; then
   bool '  IP27 N-Mode' CONFIG_SGI_SN0_N_MODE
   bool '  Discontiguous Memory Support' CONFIG_DISCONTIGMEM
   bool '  NUMA Support' CONFIG_NUMA
   bool '  Mapped kernel support' CONFIG_MAPPED_KERNEL
   bool '  Kernel text replication support' CONFIG_REPLICATE_KTEXT
   bool '  Exception handler replication support' CONFIG_REPLICATE_EXHANDLERS
   define_bool CONFIG_SMP_CAPABLE y
   #bool '  IP27 XXL' CONFIG_SGI_SN0_XXL
fi
dep_bool 'Support for Broadcom BCM1xxx SOCs (EXPERIMENTAL)' CONFIG_SIBYTE_SB1xxx_SOC $CONFIG_EXPERIMENTAL
if [ "$CONFIG_SIBYTE_SB1xxx_SOC" = "y" ]; then
   choice '   BCM1xxx SOC-based board' \
          "BCM91250A-SWARM      CONFIG_SIBYTE_SWARM \
           BCM91250E-Sentosa    CONFIG_SIBYTE_SENTOSA \
           BCM91125E-Rhone      CONFIG_SIBYTE_RHONE \
           BCM91120x-Carmel     CONFIG_SIBYTE_CARMEL \
           BCM91250PT-PTSwarm   CONFIG_SIBYTE_PTSWARM \
           BCM91250C2-LittleSur CONFIG_SIBYTE_LITTLESUR \
           BCM91120C-CRhine     CONFIG_SIBYTE_CRHINE \
           BCM91125C-CRhone     CONFIG_SIBYTE_CRHONE \
           Other                CONFIG_SIBYTE_UNKNOWN" CONFIG_SIBYTE_SWARM

   if [ "$CONFIG_SIBYTE_UNKNOWN" = "y" ]; then
      choice '   BCM1xxx SOC Type' \
          "BCM1250     CONFIG_SIBYTE_SB1250 \
           BCM1120     CONFIG_SIBYTE_BCM1120 \
           BCM1125     CONFIG_SIBYTE_BCM1125 \
           BCM1125H    CONFIG_SIBYTE_BCM1125H" CONFIG_SIBYTE_SB1250
      unset CONFIG_SIBYTE_BOARD
   else
      define_bool CONFIG_SIBYTE_BOARD y
      if [ "$CONFIG_SIBYTE_SWARM" = "y" -o \
           "$CONFIG_SIBYTE_LITTLESUR" = "y" -o \
           "$CONFIG_SIBYTE_PTSWARM" = "y" -o \
           "$CONFIG_SIBYTE_SENTOSA" = "y" ]; then
         define_bool CONFIG_SIBYTE_SB1250 y
         unset CONFIG_SIBYTE_BCM1120
         unset CONFIG_SIBYTE_BCM1125
         unset CONFIG_SIBYTE_BCM1125H
      fi
      if [ "$CONFIG_SIBYTE_CRHINE" = "y" -o \
           "$CONFIG_SIBYTE_CARMEL" = "y" ]; then
         define_bool CONFIG_SIBYTE_BCM1120 y
         unset CONFIG_SIBYTE_SB1250
         unset CONFIG_SIBYTE_BCM1125
         unset CONFIG_SIBYTE_BCM1125H
      fi
      if [ "$CONFIG_SIBYTE_CRHONE" = "y" -o \
           "$CONFIG_SIBYTE_RHONE" = "y" ]; then
         define_bool CONFIG_SIBYTE_BCM1125H y
         unset CONFIG_SIBYTE_SB1250
         unset CONFIG_SIBYTE_BCM1120
         unset CONFIG_SIBYTE_BCM1125
      fi
   fi

   if [ "$CONFIG_SIBYTE_BCM1120" = "y" -o \
        "$CONFIG_SIBYTE_BCM1125" = "y" -o \
        "$CONFIG_SIBYTE_BCM1125H" = "y" ]; then
      define_bool CONFIG_SIBYTE_BCM112X y
      choice 'BCM112x Stepping' \
         "Hybrid CONFIG_CPU_SB1_PASS_2 \
          An     CONFIG_CPU_SB1_PASS_3" An
   else
      unset CONFIG_SIBYTE_BCM112X
      choice 'BCM1250 Stepping' \
         "Pass1   CONFIG_CPU_SB1_PASS_1 \
          An      CONFIG_CPU_SB1_PASS_2 \
          Bn      CONFIG_CPU_SB1_PASS_2_2 \
          Cn      CONFIG_CPU_SB1_PASS_4" An
   fi

   bool '   Booting from CFE' CONFIG_SIBYTE_CFE
   dep_bool '     Use firmware console' CONFIG_SIBYTE_CFE_CONSOLE $CONFIG_SIBYTE_CFE
   if [ "$CONFIG_SIBYTE_CFE" = "n" ]; then
      define_bool CONFIG_SIBYTE_STANDALONE y
      int  '   Memory size (in megabytes)' CONFIG_SIBYTE_STANDALONE_RAM_SIZE 32
   fi

   bool '   Support for Bus Watcher statistics' CONFIG_SIBYTE_BUS_WATCHER
   if [ "$CONFIG_SIBYTE_TBPROF" = "n" ]; then
      dep_bool '     Capture bus trace before bus error' CONFIG_SIBYTE_BW_TRACE $CONFIG_SIBYTE_BUS_WATCHER
   fi

   bool '   Support for SB1/SOC profiling - SB1/SCD perf counters' CONFIG_SIBYTE_SB1250_PROF
   bool '   Support for ZBbus profiling' CONFIG_SIBYTE_TBPROF

   if [ "$CONFIG_SIBYTE_SB1250" = "y" -o \
        "$CONFIG_SIBYTE_BCM1125" = "y" -o \
        "$CONFIG_SIBYTE_BCM1125H" = "y" ]; then
      bool '   Support for BCM1250/BCM1125 onchip PCI controller' CONFIG_PCI
   fi

   if [ "$CONFIG_SIBYTE_SB1250" = "y" -o \
        "$CONFIG_SIBYTE_BCM1125H" = "y" ]; then
      if [ "$CONFIG_PCI" = "y" ]; then
         define_bool CONFIG_SIBYTE_HAS_LDT y
      fi
   fi

   if [ "$CONFIG_SIBYTE_SWARM" = "y" -o \
        "$CONFIG_SIBYTE_LITTLESUR" = "y" -o \
        "$CONFIG_SIBYTE_PTSWARM" = "y" -o \
        "$CONFIG_SIBYTE_CARMEL" = "y" ]; then
      define_bool CONFIG_SIBYTE_GENBUS_IDE y
   fi

   if [ "$CONFIG_SIBYTE_SB1250" = "y" -a \
        "$CONFIG_SIBYTE_STANDALONE" != "y" ]; then
      define_bool CONFIG_SMP_CAPABLE y
   fi
fi
bool 'Support for SNI RM200 PCI' CONFIG_SNI_RM200_PCI
bool 'Support for TANBAC TB0226 (Mbase)' CONFIG_TANBAC_TB0226
bool 'Support for TANBAC TB0229 (VR4131DIMM)' CONFIG_TANBAC_TB0229
if [ "$CONFIG_TANBAC_TB0229" = "y" ]; then
   bool '  Add TANBAC TB0219 Base board support' CONFIG_TANBAC_TB0219
fi

dep_bool 'Support for Toshiba JMR-TX3927 board' CONFIG_TOSHIBA_JMR3927 $CONFIG_MIPS32
bool 'Support for Toshiba RBTX49[23]7 Reference Board' CONFIG_TOSHIBA_RBTX4927
bool 'Support for Victor MP-C303/304' CONFIG_VICTOR_MPC30X
if [ "$CONFIG_VICTOR_MPC30X" = "y" ]; then
   tristate '  NEC VRC4173 support' CONFIG_VRC4173
fi
bool 'Support for ZAO Networks Capcella' CONFIG_ZAO_CAPCELLA

dep_bool 'High Memory Support' CONFIG_HIGHMEM $CONFIG_MIPS32

define_bool CONFIG_RWSEM_GENERIC_SPINLOCK y
define_bool CONFIG_RWSEM_XCHGADD_ALGORITHM n

#
# Select some configuration options automatically based on user selections.
#
if [ "$CONFIG_ACER_PICA_61" = "y" ]; then
   define_bool CONFIG_ARC32 y
   define_bool CONFIG_I8259 y
   define_bool CONFIG_ISA y
   define_bool CONFIG_MIPS_JAZZ y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_PC_KEYB y
   define_bool CONFIG_OLD_TIME_C y
fi
if [ "$CONFIG_CASIO_E55" = "y" ]; then
   define_bool CONFIG_IRQ_CPU y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_ISA y
   define_bool CONFIG_DUMMY_KEYB y
   define_bool CONFIG_SCSI n
fi
if [ "$CONFIG_MIPS_MIRAGE" = "y" ]; then
   define_bool CONFIG_SOC_AU1X00 y
   define_bool CONFIG_SOC_AU1500 y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_PC_KEYB y
   define_bool CONFIG_PCI y
   define_bool CONFIG_NEW_PCI y
   define_bool CONFIG_PCI_AUTO y
   define_bool CONFIG_NONCOHERENT_IO y
fi
if [ "$CONFIG_MIPS_BOSPORUS" = "y" ]; then
   define_bool CONFIG_SOC_AU1X00 y
   define_bool CONFIG_SOC_AU1500 y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_PC_KEYB y
   define_bool CONFIG_PCI y
   define_bool CONFIG_NEW_PCI y
   define_bool CONFIG_PCI_AUTO y
   define_bool CONFIG_NONCOHERENT_IO y
fi
if [ "$CONFIG_MIPS_PB1000" = "y" ]; then
   define_bool CONFIG_SOC_AU1X00 y
   define_bool CONFIG_SOC_AU1000 y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_PCI y
   define_bool CONFIG_NEW_PCI y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_PC_KEYB y
   define_bool CONFIG_SWAP_IO_SPACE_W y
   define_bool CONFIG_SWAP_IO_SPACE_L y
fi
if [ "$CONFIG_MIPS_PB1100" = "y" ]; then
   define_bool CONFIG_SOC_AU1X00 y
   define_bool CONFIG_SOC_AU1100 y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_PCI y
   define_bool CONFIG_PCI_AUTO n
   define_bool CONFIG_NEW_PCI y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_PC_KEYB y
   define_bool CONFIG_SWAP_IO_SPACE_W y
   define_bool CONFIG_SWAP_IO_SPACE_L y
fi
if [ "$CONFIG_MIPS_PB1500" = "y" ]; then
   define_bool CONFIG_SOC_AU1X00 y
   define_bool CONFIG_SOC_AU1500 y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_PCI y
   define_bool CONFIG_NEW_PCI y
   define_bool CONFIG_PCI_AUTO y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_PC_KEYB y
fi
if [ "$CONFIG_MIPS_DB1000" = "y" ]; then
   define_bool CONFIG_SOC_AU1X00 y
   define_bool CONFIG_SOC_AU1000 y
   define_bool CONFIG_NEW_TIME_C y
   # CONFIG_PCI needed for USB
   define_bool CONFIG_PCI y
   define_bool CONFIG_NEW_PCI y
   define_bool CONFIG_PCI_AUTO n
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_PC_KEYB y
   define_bool CONFIG_SWAP_IO_SPACE y
fi
if [ "$CONFIG_MIPS_DB1500" = "y" ]; then
   define_bool CONFIG_SOC_AU1X00 y
   define_bool CONFIG_SOC_AU1500 y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_PCI y
   define_bool CONFIG_NEW_PCI y
   define_bool CONFIG_PCI_AUTO y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_PC_KEYB y
fi
if [ "$CONFIG_MIPS_DB1100" = "y" ]; then
   define_bool CONFIG_SOC_AU1X00 y
   define_bool CONFIG_SOC_AU1100 y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_PCI y
   define_bool CONFIG_NEW_PCI y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_PC_KEYB y
   define_bool CONFIG_SWAP_IO_SPACE y
fi
if [ "$CONFIG_MIPS_HYDROGEN3" = "y" ]; then
   define_bool CONFIG_SOC_AU1X00 y
   define_bool CONFIG_SOC_AU1100 y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_PCI y
   define_bool CONFIG_NEW_PCI y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_PC_KEYB y
   define_bool CONFIG_SWAP_IO_SPACE y
fi
if [ "$CONFIG_MIPS_XXS1500" = "y" ]; then
   define_bool CONFIG_SOC_AU1X00 y
   define_bool CONFIG_SOC_AU1500 y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_PCI y
   define_bool CONFIG_NEW_PCI y
   define_bool CONFIG_PCI_AUTO y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_PC_KEYB y
fi
if [ "$CONFIG_MIPS_MTX1" = "y" ]; then
   define_bool CONFIG_SOC_AU1X00 y
   define_bool CONFIG_SOC_AU1500 y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_PCI y
   define_bool CONFIG_NEW_PCI y
   define_bool CONFIG_PCI_AUTO y
   define_bool CONFIG_NONCOHERENT_IO y
fi
if [ "$CONFIG_COGENT_CSB250" = "y" ]; then
   define_bool CONFIG_SOC_AU1X00 y
   define_bool CONFIG_SOC_AU1500 y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_PCI y
   define_bool CONFIG_NEW_PCI y
   define_bool CONFIG_PCI_AUTO y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_PC_KEYB y
fi
if [ "$CONFIG_MIPS_PB1550" = "y" ]; then
   define_bool CONFIG_SOC_AU1X00 y
   define_bool CONFIG_SOC_AU1550 y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_PCI y
   define_bool CONFIG_NEW_PCI y
   define_bool CONFIG_PCI_AUTO y
   define_bool CONFIG_NONCOHERENT_IO n
   define_bool CONFIG_PC_KEYB y
fi
if [ "$CONFIG_MIPS_COBALT" = "y" ]; then
   define_bool CONFIG_BOOT_ELF32 y
   define_bool CONFIG_COBALT_LCD y
   define_bool CONFIG_I8259 y
   define_bool CONFIG_PCI y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_NONCOHERENT_IO y
fi
if [ "$CONFIG_DECSTATION" = "y" ]; then
   define_bool CONFIG_BOOT_ELF32 y
   define_bool CONFIG_IRQ_CPU y
   define_int CONFIG_L1_CACHE_SHIFT 4
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_NONCOHERENT_IO y
fi
if [ "$CONFIG_MIPS_EV64120" = "y" ]; then
   define_bool CONFIG_PCI y
   define_bool CONFIG_MIPS_GT64120 y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_OLD_TIME_C y
fi
if [ "$CONFIG_MIPS_EV96100" = "y" ]; then
   define_bool CONFIG_PCI y
   define_bool CONFIG_MIPS_GT64120 y
   define_bool CONFIG_MIPS_GT96100 y
   define_bool CONFIG_NEW_PCI y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_PCI_AUTO y
   define_bool CONFIG_SWAP_IO_SPACE_W y
   define_bool CONFIG_SWAP_IO_SPACE_L y
fi
if [ "$CONFIG_MIPS_IVR" = "y" ]; then
   define_bool CONFIG_PCI y
   define_bool CONFIG_PC_KEYB y
   define_bool CONFIG_NEW_PCI y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_PCI_AUTO y
   define_bool CONFIG_IT8172_CIR y
   define_bool CONFIG_NEW_TIME_C y
fi
if [ "$CONFIG_HP_LASERJET" = "y" ]; then
   define_bool CONFIG_IRQ_CPU y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_NEW_PCI y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_PCI y
   #not yet define_bool CONFIG_PCI_AUTO y
fi
if [ "$CONFIG_IBM_WORKPAD" = "y" ]; then
   define_bool CONFIG_IRQ_CPU y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_ISA y
   define_bool CONFIG_SCSI n
fi
if [ "$CONFIG_LASAT" = "y" ]; then
   define_bool CONFIG_BOARD_SCACHE y
   define_bool CONFIG_R5000_CPU_SCACHE y
   define_bool CONFIG_PCI y
   define_bool CONFIG_MIPS_GT64120 y
   define_bool CONFIG_MIPS_NILE4 y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_NEW_TIME_C y
fi
if [ "$CONFIG_MIPS_ITE8172" = "y" ]; then
   define_bool CONFIG_PCI y
   define_bool CONFIG_IT8712 y
   define_bool CONFIG_PC_KEYB y
   define_bool CONFIG_NEW_PCI y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_PCI_AUTO y
   define_bool CONFIG_IT8172_CIR y
   define_bool CONFIG_NEW_TIME_C y
fi
if [ "$CONFIG_MIPS_ATLAS" = "y" ]; then
   define_bool CONFIG_BOOT_ELF32 y
   define_int CONFIG_L1_CACHE_SHIFT 5
   define_bool CONFIG_MIPS_BONITO64 y
   define_bool CONFIG_MIPS_GT64120 y
   define_bool CONFIG_MIPS_MSC y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_PCI y
   define_bool CONFIG_SWAP_IO_SPACE_W y
   define_bool CONFIG_SWAP_IO_SPACE_L y
fi
if [ "$CONFIG_MIPS_MAGNUM_4000" = "y" -o \
     "$CONFIG_OLIVETTI_M700"    = "y" ]; then
   define_bool CONFIG_ARC32 y
   define_bool CONFIG_I8259 y
   define_bool CONFIG_ISA y
   define_bool CONFIG_FB y
   define_bool CONFIG_FB_G364 y
   define_bool CONFIG_MIPS_JAZZ y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_PC_KEYB y
   define_bool CONFIG_OLD_TIME_C y
fi
if [ "$CONFIG_MIPS_MALTA" = "y" ]; then
   define_bool CONFIG_BOOT_ELF32 y
   define_bool CONFIG_HAVE_STD_PC_SERIAL_PORT y
   define_bool CONFIG_I8259 y
   define_bool CONFIG_MIPS_BONITO64 y
   define_bool CONFIG_MIPS_GT64120 y
   define_bool CONFIG_MIPS_MSC y
   define_int CONFIG_L1_CACHE_SHIFT 5
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_SWAP_IO_SPACE_W y
   define_bool CONFIG_SWAP_IO_SPACE_L y
   define_bool CONFIG_PC_KEYB y
   define_bool CONFIG_PCI y
fi
if [ "$CONFIG_MIPS_SEAD" = "y" ]; then
   define_bool CONFIG_BOOT_ELF32 y
   define_int CONFIG_L1_CACHE_SHIFT 5
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_PCI n
fi
if [ "$CONFIG_MOMENCO_OCELOT" = "y" ]; then
   define_bool CONFIG_PCI y
   define_bool CONFIG_SYSCLK_100 y
   define_bool CONFIG_SWAP_IO_SPACE_W y
   define_bool CONFIG_SWAP_IO_SPACE_L y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_OLD_TIME_C y
fi
if [ "$CONFIG_MOMENCO_OCELOT_G" = "y" ]; then
   define_bool CONFIG_PCI y
   define_bool CONFIG_SYSCLK_100 y
   define_bool CONFIG_SWAP_IO_SPACE_W y
   define_bool CONFIG_SWAP_IO_SPACE_L y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_OLD_TIME_C y
fi
if [ "$CONFIG_MOMENCO_OCELOT_C" = "y" ]; then
   define_bool CONFIG_PCI y
   define_bool CONFIG_SWAP_IO_SPACE y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_BOOT_ELF32 y
fi
if [ "$CONFIG_MOMENCO_JAGUAR_ATX" = "y" ]; then
   define_bool CONFIG_PCI y
   define_bool CONFIG_SWAP_IO_SPACE y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_BOOT_ELF32 y
fi

if [ "$CONFIG_PMC_YOSEMITE" = "y" ]; then
   define_bool CONFIG_PCI y
   define_bool CONFIG_SWAP_IO_SPACE y
   define_bool CONFIG_SWAP_IO_SPACE_W y
   define_bool CONFIG_SWAP_IO_SPACE_L y
   define_bool CONFIG_BOOT_ELF32 y
   define_bool CONFIG_HIGHMEM y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_NONCOHERENT_IO y
fi

if [ "$CONFIG_DDB5074" = "y" ]; then
   define_bool CONFIG_HAVE_STD_PC_SERIAL_PORT y
   define_bool CONFIG_I8259 y
   define_bool CONFIG_ISA y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_PCI y
   define_bool CONFIG_PC_KEYB y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_PCI_AUTO y
   define_bool CONFIG_IRQ_CPU y
   define_bool CONFIG_NEW_PCI y
fi
if [ "$CONFIG_DDB5476"  = "y" ]; then
   define_bool CONFIG_ISA y
   define_bool CONFIG_PCI y
   define_bool CONFIG_PC_KEYB y
   define_bool CONFIG_IRQ_CPU y
   define_bool CONFIG_I8259 y
   define_bool CONFIG_HAVE_STD_PC_SERIAL_PORT y
   define_bool CONFIG_NEW_PCI y
   define_bool CONFIG_PCI_AUTO y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_NONCOHERENT_IO y
fi
if [ "$CONFIG_DDB5477" = "y" ]; then
   define_bool CONFIG_PCI y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_IRQ_CPU y
   define_bool CONFIG_NEW_PCI y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_PCI_AUTO y
   define_bool CONFIG_PC_KEYB y
   define_bool CONFIG_I8259 y
fi
if [ "$CONFIG_NEC_OSPREY" = "y" ]; then
   define_bool CONFIG_VR4181 y
   define_bool CONFIG_IRQ_CPU y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_DUMMY_KEYB y
   define_bool CONFIG_SCSI n
fi
if [ "$CONFIG_NEC_EAGLE" = "y" ]; then
   define_bool CONFIG_IRQ_CPU y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_PCI y
   define_bool CONFIG_NEW_PCI y
   define_bool CONFIG_PCI_AUTO y
   define_bool CONFIG_DUMMY_KEYB y
   define_bool CONFIG_SCSI n
fi
if [ "$CONFIG_NINO" = "y" ]; then
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_PC_KEYB y
fi
if [ "$CONFIG_SGI_IP22" = "y" ]; then
   define_bool CONFIG_ARC32 y
   define_bool CONFIG_ARC_PROMLIB y
   define_bool CONFIG_BOARD_SCACHE y
   define_bool CONFIG_BOOT_ELF32 y
   define_bool CONFIG_SWAP_IO_SPACE_W n
   define_bool CONFIG_SWAP_IO_SPACE_L y
   define_bool CONFIG_IRQ_CPU y
   define_int CONFIG_L1_CACHE_SHIFT 5
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_PC_KEYB y
fi
if [ "$CONFIG_SGI_IP27" = "y" ]; then
   define_bool CONFIG_BOOT_ELF64 y
   define_bool CONFIG_ARC64 y
   define_int CONFIG_L1_CACHE_SHIFT 7
   #define_bool CONFIG_MAPPED_PCI_IO y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_PCI y
   define_bool CONFIG_QL_ISP_A64 y
fi
if [ "$CONFIG_SIBYTE_SB1xxx_SOC" = "y" ]; then
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_DUMMY_KEYB y
   define_bool CONFIG_SWAP_IO_SPACE_W y
   define_bool CONFIG_SWAP_IO_SPACE_L y
   define_bool CONFIG_BOOT_ELF32 y
fi
if [ "$CONFIG_SNI_RM200_PCI" = "y" ]; then
   define_bool CONFIG_ARC32 y
   define_bool CONFIG_ARC_MEMORY y
   define_bool CONFIG_ARC_PROMLIB y
   define_bool CONFIG_I8259 y
   define_bool CONFIG_ISA y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_OLD_TIME_C y
   define_bool CONFIG_PC_KEYB y
   define_bool CONFIG_PCI y
fi
if [ "$CONFIG_TANBAC_TB0226" = "y" ]; then
   define_bool CONFIG_IRQ_CPU y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_PCI y
   define_bool CONFIG_NEW_PCI y
   define_bool CONFIG_PCI_AUTO y
   define_bool CONFIG_DUMMY_KEYB y
   define_bool CONFIG_SERIAL_MANY_PORTS y
fi
if [ "$CONFIG_TANBAC_TB0229" = "y" ]; then
   define_bool CONFIG_IRQ_CPU y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_PCI y
   define_bool CONFIG_NEW_PCI y
   define_bool CONFIG_PCI_AUTO y
   define_bool CONFIG_DUMMY_KEYB y
   define_bool CONFIG_SERIAL_MANY_PORTS y
fi
if [ "$CONFIG_TOSHIBA_JMR3927" = "y" ]; then
   define_bool CONFIG_TOSHIBA_BOARDS y
   define_bool CONFIG_PCI y
   define_bool CONFIG_NEW_PCI y
   define_bool CONFIG_PCI_AUTO y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_SWAP_IO_SPACE_W y
   define_bool CONFIG_SWAP_IO_SPACE_L y
   define_bool CONFIG_PC_KEYB y
fi
if [ "$CONFIG_TOSHIBA_RBTX4927" = "y" ]; then
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_PCI y
   define_bool CONFIG_NEW_PCI y
   define_bool CONFIG_PCI_AUTO y
   define_bool CONFIG_SWAP_IO_SPACE_W y
   define_bool CONFIG_SWAP_IO_SPACE_L y
   define_bool CONFIG_ISA y
   define_bool CONFIG_NONCOHERENT_IO y
fi
if [ "$CONFIG_VICTOR_MPC30X" = "y" ]; then
   define_bool CONFIG_IRQ_CPU y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_PCI y
   define_bool CONFIG_NEW_PCI y
   define_bool CONFIG_PCI_AUTO y
   define_bool CONFIG_DUMMY_KEYB y
   define_bool CONFIG_SCSI n
fi
if [ "$CONFIG_ZAO_CAPCELLA" = "y" ]; then
   define_bool CONFIG_IRQ_CPU y
   define_bool CONFIG_NEW_TIME_C y
   define_bool CONFIG_NONCOHERENT_IO y
   define_bool CONFIG_PCI y
   define_bool CONFIG_NEW_PCI y
   define_bool CONFIG_PCI_AUTO y
   define_bool CONFIG_DUMMY_KEYB y
   define_bool CONFIG_SCSI n
fi

if [ "$CONFIG_MIPS_AU1000" != "y" ]; then
   define_bool CONFIG_MIPS_AU1000 n
fi
endmenu

mainmenu_option next_comment
comment 'CPU selection'

choice 'CPU type' \
	"MIPS32	CONFIG_CPU_MIPS32 \
	 MIPS64	CONFIG_CPU_MIPS64 \
	 R3000	CONFIG_CPU_R3000 \
	 R39XX	CONFIG_CPU_TX39XX \
	 R41xx	CONFIG_CPU_VR41XX \
	 R4300	CONFIG_CPU_R4300 \
	 R4x00	CONFIG_CPU_R4X00 \
	 R49XX	CONFIG_CPU_TX49XX \
	 R5000	CONFIG_CPU_R5000 \
	 R5432	CONFIG_CPU_R5432 \
	 R6000	CONFIG_CPU_R6000 \
	 R52xx	CONFIG_CPU_NEVADA \
	 R8000	CONFIG_CPU_R8000 \
	 R10000	CONFIG_CPU_R10000 \
	 RM7000	CONFIG_CPU_RM7000 \
	 RM9000	CONFIG_CPU_RM9000 \
	 SB1	CONFIG_CPU_SB1" R4x00

if [ "$CONFIG_CPU_R3000" = "n" -a "$CONFIG_CPU_TX39XX" = "n" -a \
     "$CONFIG_EXPERIMENTAL" = "y" ]; then
   choice 'Kernel page size'					\
	"4KB                    CONFIG_PAGE_SIZE_4KB		\
	 16KB                   CONFIG_PAGE_SIZE_16KB		\
	 64KB                   CONFIG_PAGE_SIZE_64KB" 4KB
else
   define_bool CONFIG_PAGE_SIZE_4KB y
fi

if [ "$CONFIG_SMP_CAPABLE" = "y" ]; then
   bool '  Multi-Processing support' CONFIG_SMP
fi
 
if [ "$CONFIG_CPU_MIPS32" = "y" ]; then
   define_bool CONFIG_CPU_HAS_PREFETCH y
   bool '  Support for Virtual Tagged I-cache' CONFIG_VTAG_ICACHE
fi

if [ "$CONFIG_CPU_MIPS64" = "y" ]; then
   define_bool CONFIG_CPU_HAS_PREFETCH y
   bool '  Support for Virtual Tagged I-cache' CONFIG_VTAG_ICACHE
fi

if [ "$CONFIG_CPU_RM7000" = "y" ]; then
   define_bool CONFIG_BOARD_SCACHE y
   define_bool CONFIG_CPU_HAS_PREFETCH y
   define_bool CONFIG_RM7000_CPU_SCACHE y
fi
if [ "$CONFIG_CPU_RM9000" = "y" ]; then
   define_bool CONFIG_BOARD_SCACHE y
   define_bool CONFIG_CPU_HAS_PREFETCH y
   define_bool CONFIG_RM7000_CPU_SCACHE y
fi

if [ "$CONFIG_CPU_SB1" = "y" ]; then
   bool '  Use DMA to clear/copy pages' CONFIG_SIBYTE_DMA_PAGEOPS
   # SB1 Pass-specific options
   if [ "$CONFIG_CPU_SB1_PASS_1" = "y" ]; then
      define_bool CONFIG_SB1_PASS_1_WORKAROUNDS y
   fi
   if [ "$CONFIG_CPU_SB1_PASS_2" = "y" ]; then
      define_bool CONFIG_SB1_PASS_2_WORKAROUNDS y
      define_bool CONFIG_SB1_PASS_2_1_WORKAROUNDS y
   else
      # Avoid prefetches on Pass 2 (before 2.2)
      bool '  Enable prefetches' CONFIG_CPU_HAS_PREFETCH
   fi
   if [ "$CONFIG_CPU_SB1_PASS_2_2" = "y" ]; then
      # XXXKW for now, let 2.2 use same WORKAROUNDS flag as pre-2.2
      define_bool CONFIG_SB1_PASS_2_WORKAROUNDS y
   fi

   define_bool CONFIG_VTAG_ICACHE y
fi

if [ "$CONFIG_CPU_R4X00"  = "y" -o \
     "$CONFIG_CPU_R5000"  = "y" -o \
     "$CONFIG_CPU_RM7000" = "y" -o \
     "$CONFIG_CPU_RM9000" = "y" -o \
     "$CONFIG_CPU_R10000" = "y" -o \
     "$CONFIG_CPU_SB1"    = "y" -o \
     "$CONFIG_CPU_MIPS32" = "y" -o \
     "$CONFIG_CPU_MIPS64" = "y" ]; then
   dep_bool '  Support for 64-bit physical address space' CONFIG_64BIT_PHYS_ADDR $CONFIG_MIPS32
fi

dep_bool 'Override CPU Options' CONFIG_CPU_ADVANCED $CONFIG_MIPS32
if [ "$CONFIG_CPU_ADVANCED" = "y" ]; then
   bool '  ll/sc Instructions available' CONFIG_CPU_HAS_LLSC
   bool '  lld/scd Instructions available' CONFIG_CPU_HAS_LLDSCD
   bool '  Writeback Buffer available' CONFIG_CPU_HAS_WB
else
   if [ "$CONFIG_CPU_R3000"  = "y" -o \
        "$CONFIG_CPU_VR41XX" = "y" -o \
        "$CONFIG_CPU_TX39XX" = "y" ]; then
      if [ "$CONFIG_DECSTATION" = "y" ]; then
	 define_bool CONFIG_CPU_HAS_LLSC n
	 define_bool CONFIG_CPU_HAS_LLDSCD n
	 define_bool CONFIG_CPU_HAS_WB y
      else
	 define_bool CONFIG_CPU_HAS_LLSC n
	 define_bool CONFIG_CPU_HAS_LLDSCD n
	 define_bool CONFIG_CPU_HAS_WB n
      fi
   else
      if [ "$CONFIG_CPU_MIPS32" = "y" ]; then
	 define_bool CONFIG_CPU_HAS_LLSC y
	 define_bool CONFIG_CPU_HAS_LLDSCD n
	 define_bool CONFIG_CPU_HAS_WB n
      else
	 define_bool CONFIG_CPU_HAS_LLSC y
	 define_bool CONFIG_CPU_HAS_LLDSCD y
	 define_bool CONFIG_CPU_HAS_WB n
      fi
   fi
fi
if [ "$CONFIG_CPU_R3000" = "y" ]; then
   define_bool CONFIG_CPU_HAS_SYNC n
else
   define_bool CONFIG_CPU_HAS_SYNC y
fi
endmenu

#
# Choose endianess of code to generate.  It's a frequent trap for users so the
# config file tries it's best to choose the right endianess for those systems
# where we know about their endianess.  We only ask the user for systems
# known to be bi-endian; for those systems the defconfig file should defaults
# to the common endianess used for that system.
#
mainmenu_option next_comment
comment 'General setup'
if [ "$CONFIG_ACER_PICA_61" = "y" -o \
     "$CONFIG_CASIO_E55" = "y" -o \
     "$CONFIG_DDB5074" = "y" -o \
     "$CONFIG_DDB5476" = "y" -o \
     "$CONFIG_DDB5477" = "y" -o \
     "$CONFIG_DECSTATION" = "y" -o \
     "$CONFIG_HP_LASERJET" = "y" -o \
     "$CONFIG_IBM_WORKPAD" = "y" -o \
     "$CONFIG_LASAT" = "y" -o \
     "$CONFIG_MIPS_COBALT" = "y" -o \
     "$CONFIG_MIPS_ITE8172" = "y" -o \
     "$CONFIG_MIPS_IVR" = "y" -o \
     "$CONFIG_MIPS_PB1000" = "y" -o \
     "$CONFIG_MIPS_PB1100" = "y" -o \
     "$CONFIG_MIPS_PB1500" = "y" -o \
     "$CONFIG_NEC_OSPREY" = "y" -o \
     "$CONFIG_NEC_EAGLE" = "y" -o \
     "$CONFIG_NINO" = "y" -o \
     "$CONFIG_OLIVETTI_M700" = "y" -o \
     "$CONFIG_SNI_RM200_PCI" = "y" -o \
     "$CONFIG_VICTOR_MPC30X" = "y" -o \
     "$CONFIG_ZAO_CAPCELLA" = "y" ]; then
   define_bool CONFIG_CPU_LITTLE_ENDIAN y
else
   if [ "$CONFIG_BAGET_MIPS" = "y" -o \
	"$CONFIG_MIPS_EV64120" = "y" -o \
	"$CONFIG_MIPS_EV96100" = "y" -o \
	"$CONFIG_MOMENCO_OCELOT" = "y" -o \
	"$CONFIG_MOMENCO_OCELOT_G" = "y" -o \
	"$CONFIG_SGI_IP22" = "y" -o \
	"$CONFIG_SGI_IP27" = "y" -o \
	"$CONFIG_TOSHIBA_JMR3927" = "y" ]; then
      define_bool CONFIG_CPU_LITTLE_ENDIAN n
   else
      bool 'Generate little endian code' CONFIG_CPU_LITTLE_ENDIAN
   fi
fi

if [ "$CONFIG_CPU_LITTLE_ENDIAN" = "n" ]; then
   bool 'Include IRIX binary compatibility' CONFIG_BINFMT_IRIX
fi

if [ "$CONFIG_CPU_R10000" = "y" ]; then
   dep_bool 'Support for large 64-bit configurations' CONFIG_MIPS_INSANE_LARGE $CONFIG_MIPS64
fi

if [ "$CONFIG_ARC32" = "y" ]; then
   bool 'ARC console support' CONFIG_ARC_CONSOLE
fi

bool 'Networking support' CONFIG_NET

if [ "$CONFIG_SGI_IP22" = "y" -o "$CONFIG_MIPS_MAGNUM_4000" = "y" -o \
     "$CONFIG_OLIVETTI_M700" = "y" -o "$CONFIG_SNI_RM200_PCI" = "y" ]; then
   bool 'EISA bus support' CONFIG_EISA
fi

if [ "$CONFIG_PCI" != "y" ]; then
   define_bool CONFIG_PCI n
fi

source drivers/pci/Config.in

if [ "$CONFIG_EISA" = "y" -a "$CONFIG_ISA" != "y" ]; then
   define_bool CONFIG_ISA y
fi
if [ "$CONFIG_ISA" != "y" ]; then
   define_bool CONFIG_ISA n
fi

dep_bool 'TURBOchannel support' CONFIG_TC $CONFIG_DECSTATION
#dep_bool 'Access.Bus support' CONFIG_ACCESSBUS $CONFIG_TC

define_bool CONFIG_MCA n
define_bool CONFIG_SBUS n

bool 'Support for hot-pluggable devices' CONFIG_HOTPLUG

if [ "$CONFIG_HOTPLUG" = "y" ] ; then
   source drivers/pcmcia/Config.in
   source drivers/hotplug/Config.in
else
   define_bool CONFIG_PCMCIA n
   define_bool CONFIG_HOTPLUG_PCI n
fi

bool 'System V IPC' CONFIG_SYSVIPC
bool 'BSD Process Accounting' CONFIG_BSD_PROCESS_ACCT
bool 'Sysctl support' CONFIG_SYSCTL
define_bool CONFIG_KCORE_ELF y
define_bool CONFIG_KCORE_AOUT n
define_bool CONFIG_BINFMT_AOUT n
tristate 'Kernel support for ELF binaries' CONFIG_BINFMT_ELF
dep_bool 'Kernel support for Linux/MIPS 32-bit binary compatibility' CONFIG_MIPS32_COMPAT $CONFIG_MIPS64
dep_bool 'Kernel support for o32 binaries' CONFIG_MIPS32_O32 $CONFIG_MIPS32_COMPAT
dep_bool 'Kernel support for n32 binaries' CONFIG_MIPS32_N32 $CONFIG_MIPS32_COMPAT
if [ "$CONFIG_MIPS32_O32" = "y" -o \
     "$CONFIG_MIPS32_N32" = "y" ]; then
   define_bool CONFIG_BINFMT_ELF32 y
else
   define_bool CONFIG_BINFMT_ELF32 n
fi

tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC
bool 'Select task to kill on out of memory condition' CONFIG_OOM_KILLER

if [ "$CONFIG_SOC_AU1X00" = "y" ]; then
   bool 'Power Management support' CONFIG_PM
fi
endmenu

source drivers/mtd/Config.in

source drivers/parport/Config.in

source drivers/pnp/Config.in

source drivers/block/Config.in
if [ "$CONFIG_BLK_DEV_INITRD" = "y" ]; then
   mainmenu_option next_comment
   comment 'MIPS initrd options'
   bool '  Embed root filesystem ramdisk into the kernel' CONFIG_EMBEDDED_RAMDISK
   if [ "$CONFIG_EMBEDDED_RAMDISK" = "y" ]; then
      string '    Filename of gziped ramdisk image' CONFIG_EMBEDDED_RAMDISK_IMAGE ramdisk.gz
   fi
   endmenu
fi

source drivers/md/Config.in

if [ "$CONFIG_NET" = "y" ]; then
   source net/Config.in
fi

source drivers/telephony/Config.in

mainmenu_option next_comment
comment 'ATA/IDE/MFM/RLL support'

tristate 'ATA/IDE/MFM/RLL support' CONFIG_IDE

if [ "$CONFIG_IDE" != "n" ]; then
   source drivers/ide/Config.in
else
   define_bool CONFIG_BLK_DEV_HD n
fi
endmenu

mainmenu_option next_comment
comment 'SCSI support'

tristate 'SCSI support' CONFIG_SCSI

if [ "$CONFIG_SCSI" != "n" ]; then
   source drivers/scsi/Config.in
fi
endmenu

source drivers/message/fusion/Config.in

source drivers/ieee1394/Config.in

if [ "$CONFIG_PCI" = "y" -a "$CONFIG_MIPS32" = "y" ]; then
   source drivers/message/i2o/Config.in
fi

if [ "$CONFIG_NET" = "y" ]; then
   mainmenu_option next_comment
   comment 'Network device support'

   bool 'Network device support' CONFIG_NETDEVICES
   if [ "$CONFIG_NETDEVICES" = "y" ]; then
      source drivers/net/Config.in
      if [ "$CONFIG_ATM" = "y" -o "$CONFIG_ATM" = "m" ]; then
	 source drivers/atm/Config.in
      fi
   fi
   endmenu
fi

source net/ax25/Config.in

source net/irda/Config.in

if [ "$CONFIG_NET" != "n" ]; then
   mainmenu_option next_comment
   comment 'ISDN subsystem'

   tristate 'ISDN support' CONFIG_ISDN
   if [ "$CONFIG_ISDN" != "n" ]; then
      source drivers/isdn/Config.in
   fi
   endmenu
fi

if [ "$CONFIG_ISA" = "y" ]; then
   mainmenu_option next_comment
   comment 'Old CD-ROM drivers (not SCSI, not IDE)'

   bool 'Support non-SCSI/IDE/ATAPI CDROM drives' CONFIG_CD_NO_IDESCSI
   if [ "$CONFIG_CD_NO_IDESCSI" != "n" ]; then
      source drivers/cdrom/Config.in
   fi
   endmenu
fi

#
# input before char - char/joystick depends on it. As does USB.
#
source drivers/input/Config.in
source drivers/char/Config.in

#source drivers/misc/Config.in

source fs/Config.in

source drivers/media/Config.in

if [ "$CONFIG_VT" = "y" ]; then
   mainmenu_option next_comment
   comment 'Console drivers'
   bool 'VGA text console' CONFIG_VGA_CONSOLE
   if [ "$CONFIG_SGI_IP22" = "y" ]; then
      tristate 'SGI Newport Console support' CONFIG_SGI_NEWPORT_CONSOLE
      if [ "$CONFIG_SGI_NEWPORT_CONSOLE" = "y" ]; then
         define_bool CONFIG_FONT_8x16 y
      fi
      define_bool CONFIG_DUMMY_CONSOLE y
   fi
   if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then
      tristate 'MDA text console (dual-headed) (EXPERIMENTAL)' CONFIG_MDA_CONSOLE
      source drivers/video/Config.in
   fi
   endmenu
fi

mainmenu_option next_comment
comment 'Sound'

tristate 'Sound card support' CONFIG_SOUND
if [ "$CONFIG_SOUND" != "n" ]; then
   source drivers/sound/Config.in
fi
endmenu

source drivers/usb/Config.in

source net/bluetooth/Config.in

mainmenu_option next_comment
comment 'Kernel hacking'

bool 'Are you using a crosscompiler' CONFIG_CROSSCOMPILE
bool 'Enable run-time debugging' CONFIG_RUNTIME_DEBUG
bool 'Remote GDB kernel debugging' CONFIG_KGDB
dep_bool '  Console output to GDB' CONFIG_GDB_CONSOLE $CONFIG_KGDB
if [ "$CONFIG_KGDB" = "y" ]; then
   define_bool CONFIG_DEBUG_INFO y
else
   bool 'Debugging symbols' CONFIG_DEBUG_INFO
fi
if [ "$CONFIG_SIBYTE_SB1xxx_SOC" = "y" ]; then
   dep_bool 'Compile for Corelis Debugger' CONFIG_SB1XXX_CORELIS $CONFIG_DEBUG_INFO
fi
bool 'Magic SysRq key' CONFIG_MAGIC_SYSRQ
if [ "$CONFIG_SMP" != "y" ]; then
   bool 'Run uncached' CONFIG_MIPS_UNCACHED
else
   if [ "$CONFIG_MIPS32" = "y" ]; then
      int  'Maximum number of CPUs (2-32)' CONFIG_NR_CPUS 32
   else
      if [ "$CONFIG_MIPS64" = "y" ]; then
	 int  'Maximum number of CPUs (2-64)' CONFIG_NR_CPUS 64
      fi
   fi
fi

int 'Kernel messages buffer length shift (0 = default)' CONFIG_LOG_BUF_SHIFT 0

endmenu

source crypto/Config.in
source lib/Config.in
