#!/bin/sh

comment 'Comedi Features'

CONFIG_COMEDI_RT=n
if [ "$CONFIG_RTL" = "y" ];then
	bool 'Real-time support' CONFIG_COMEDI_RTL
	if [ "$CONFIG_COMEDI_RTL" = "y" ];then
		CONFIG_COMEDI_RT=y
	fi
fi
if [ "$CONFIG_RTL_V1" = "y" ];then
	bool 'Real-time v1 support' CONFIG_COMEDI_RTL_V1
	if [ "$CONFIG_COMEDI_RTL_V1" = "y" ];then
		CONFIG_COMEDI_RT=y
	fi
fi
if [ "$CONFIG_RTHAL" = "y" ];then
	bool 'Real-time support' CONFIG_COMEDI_RTAI
	if [ "$CONFIG_COMEDI_RTAI" = "y" ];then
		CONFIG_COMEDI_RT=y
	fi
fi
if [ "$CONFIG_PRIORITY_IRQ" = "y" ];then
	bool 'Real-time support' CONFIG_COMEDI_PIRQ
	if [ "$CONFIG_COMEDI_PIRQ" = "y" ];then
		CONFIG_COMEDI_RT=y
	fi
fi
define_bool CONFIG_COMEDI_RT $CONFIG_COMEDI_RT

bool 'Verbose Debugging' CONFIG_COMEDI_DEBUG

dep_tristate 'Kernel Comedilib' CONFIG_COMEDI_KLIB $CONFIG_COMEDI

comment 'Hardware device drivers'

bool 'Data Translation boards' CONFIG_COMEDI_DT
if [ "$CONFIG_COMEDI_DT" = "y" ];then
	dep_tristate '  DT 2801' CONFIG_COMEDI_DT2801 $CONFIG_COMEDI
	dep_tristate '  DT 2811' CONFIG_COMEDI_DT2811 $CONFIG_COMEDI
	dep_tristate '  DT 2814' CONFIG_COMEDI_DT2814 $CONFIG_COMEDI
	dep_tristate '  DT 2815' CONFIG_COMEDI_DT2815 $CONFIG_COMEDI
	dep_tristate '  DT 2817' CONFIG_COMEDI_DT2817 $CONFIG_COMEDI
	dep_tristate '  DT 2821 series' CONFIG_COMEDI_DT282X $CONFIG_COMEDI
	if [ "$CONFIG_PCI" = "y" ];then
		dep_tristate '  DT3000' CONFIG_COMEDI_DT3000 $CONFIG_COMEDI
	fi
fi

bool 'National Instruments boards' CONFIG_COMEDI_NI
if [ "$CONFIG_COMEDI_NI" = "y" ];then
	dep_tristate '  AT-MIO E series' CONFIG_COMEDI_NI_ATMIO $CONFIG_COMEDI
	if [ "$CONFIG_PCMCIA" = "y" -o "$CONFIG_PCMCIA" = "m" ];then
		dep_tristate '  PCMCIA MIO E series' CONFIG_COMEDI_NI_MIO_CS $CONFIG_COMEDI
		dep_tristate '  NI-DAQ-DIO24' CONFIG_COMEDI_NI_DAQ_DIO24 $CONFIG_COMEDI
	fi
	if [ "$CONFIG_PCI" = "y" ];then
		dep_tristate '  PCI-MIO E series' CONFIG_COMEDI_NI_PCIMIO $CONFIG_COMEDI
		dep_tristate '  NI PCI-DIO series' CONFIG_COMEDI_NI_PCIDIO $CONFIG_COMEDI
		dep_tristate '  NI 670x series' CONFIG_COMEDI_NI_670X $CONFIG_COMEDI
		if [ "$CONFIG_COMEDI_NI_PCIMIO" = "y" -o "$CONFIG_COMEDI_NI_PCIDIO" = "y" -o "$CONFIG_COMEDI_NI_670X" = "y" ];then
			define_bool CONFIG_COMEDI_MITE y
		else
			if [ "$CONFIG_COMEDI_NI_PCIMIO" = "m" -o "$CONFIG_COMEDI_NI_PCIDIO" = "m" -o "$CONFIG_COMEDI_NI_670X" = "m" ];then
				define_bool CONFIG_COMEDI_MITE m
			fi
		fi
	fi
	dep_tristate '  AT-MIO-16D' CONFIG_COMEDI_NI_ATMIO16D $CONFIG_COMEDI
	dep_tristate '  AT-A2150' CONFIG_COMEDI_NI_AT_A2150 $CONFIG_COMEDI
	dep_tristate '  LAB-PC and compatibles' CONFIG_COMEDI_NI_LABPC $CONFIG_COMEDI
	dep_tristate '  AT-AO-6/10' CONFIG_COMEDI_NI_AT_AO $CONFIG_COMEDI
fi

dep_tristate 'DAS08 compatible driver' CONFIG_COMEDI_DAS08 $CONFIG_COMEDI
dep_tristate 'DAS16 compatible driver' CONFIG_COMEDI_DAS16 $CONFIG_COMEDI
dep_tristate 'CIO-DAS16/M1 driver' CONFIG_COMEDI_DAS16M1 $CONFIG_COMEDI
dep_tristate 'DAS-6402 and compatibles' CONFIG_COMEDI_DAS6402 $CONFIG_COMEDI
dep_tristate 'DAS-800 and compatibles' CONFIG_COMEDI_DAS800 $CONFIG_COMEDI
dep_tristate 'DAS-1800 and compatibles' CONFIG_COMEDI_DAS1800 $CONFIG_COMEDI
dep_tristate 'Computer Boards PCI-DAS series' CONFIG_COMEDI_CB_PCIDAS $CONFIG_COMEDI
dep_tristate 'Computer Boards PCI-DAS64xx and PCI-DAS60xx series' CONFIG_COMEDI_CB_PCIDAS64 $CONFIG_COMEDI
dep_tristate 'Computer Boards PCI-DDA series' CONFIG_COMEDI_CB_PCIDDA $CONFIG_COMEDI
dep_tristate 'Computer Boards PCIM-DDA06-16 driver' CONFIG_COMEDI_CB_PCIMDDA $CONFIG_COMEDI
dep_tristate 'Computer Boards PCIM-DAS driver' CONFIG_COMEDI_CB_PCIMDAS $CONFIG_COMEDI
if [ "$CONFIG_PCMCIA" = "y" -o "$CONFIG_PCMCIA" = "m" ];then
	dep_tristate 'Computer Boards PC-CARD-DAS16/16 driver' CONFIG_COMEDI_CB_DAS16_CS $CONFIG_COMEDI $CONFIG_PCMCIA
else
	define_bool CONFIG_COMEDI_CB_DAS16_CS n
fi
dep_tristate 'Generic 8255 support' CONFIG_COMEDI_8255 $CONFIG_COMEDI
dep_tristate 'Quanser Consulting MultiQ-3' CONFIG_COMEDI_MULTIQ3 $CONFIG_COMEDI
dep_tristate 'Generic parallel port support' CONFIG_COMEDI_PARPORT $CONFIG_COMEDI
dep_tristate 'ADLink PCI-9111DG/HR' CONFIG_COMEDI_ADL_PCI9111 $CONFIG_COMEDI
dep_tristate 'ADLink PCI-9118DG/HR/HG' CONFIG_COMEDI_ADL_PCI9118 $CONFIG_COMEDI
dep_tristate 'Advantech PCI-1710/HG/11/13/20/31' CONFIG_COMEDI_ADV_PCI1710 $CONFIG_COMEDI
dep_tristate 'PCL-711, PCL-711b, ACL-8112, and compatibles' CONFIG_COMEDI_PCL711 $CONFIG_COMEDI
dep_tristate 'PCL-722/724/731, ACL-7122/7124, PET-48DIO' CONFIG_COMEDI_PCL724 $CONFIG_COMEDI
dep_tristate 'PCL-725' CONFIG_COMEDI_PCL725 $CONFIG_COMEDI
dep_tristate 'PCL-726' CONFIG_COMEDI_PCL726 $CONFIG_COMEDI
dep_tristate 'Advantech PCL-812/PG, PCL-813/B and similar' CONFIG_COMEDI_PCL812 $CONFIG_COMEDI
dep_tristate 'Advantech PCL-816, PCL-814B' CONFIG_COMEDI_PCL816 $CONFIG_COMEDI
dep_tristate 'Advantech PCL-818/L/H/HD/HG, PCL-718' CONFIG_COMEDI_PCL818 $CONFIG_COMEDI
dep_tristate 'Real-Time Devices PCI4520/DM7520' CONFIG_COMEDI_RTD520 $CONFIG_COMEDI
dep_tristate 'Analog Devices RTI-800/815' CONFIG_COMEDI_RTI800 $CONFIG_COMEDI
dep_tristate 'Analog Devices RTI-802' CONFIG_COMEDI_RTI802 $CONFIG_COMEDI
dep_tristate 'Intelligent Instrumentation PCI-20001C' CONFIG_COMEDI_II_PCI20KC $CONFIG_COMEDI
dep_tristate 'Contec PCI DIO (PIO16/16L)' CONFIG_COMEDI_CONTEC_PCI_DIO $CONFIG_COMEDI
if [ "$CONFIG_PCMCIA" = "y" -o "$CONFIG_PCMCIA" = "m" ];then
	dep_tristate 'Quatech DAQP-208/308' CONFIG_COMEDI_QUATECH_DAQP $CONFIG_COMEDI
fi
if [ "$CONFIG_PCI" = "y" ];then
	dep_tristate 'IOtech DaqBoard/2000' CONFIG_COMEDI_DAQBOARD2000 $CONFIG_COMEDI
	bool '  Compile in DaqBoard/2000 FPGA code' CONFIG_COMEDI_DAQBOARD2000_FPGA
fi
dep_tristate 'FL512' CONFIG_COMEDI_FL512 $CONFIG_COMEDI
if [ "$CONFIG_8260" = "y" ];then
	dep_tristate 'MPC 8260 CPM driver' CONFIG_COMEDI_MPC8260CPM $CONFIG_COMEDI
fi
dep_tristate 'Generic ISA driver for simple boards' CONFIG_COMEDI_POC $CONFIG_COMEDI
dep_tristate 'PCM3730' CONFIG_COMEDI_PCM3730 $CONFIG_COMEDI
dep_tristate 'Winsystems PCM-A/D' CONFIG_COMEDI_PCMAD $CONFIG_COMEDI
dep_tristate 'Amplicon PCI230' CONFIG_COMEDI_AMPLC_PCI230 $CONFIG_COMEDI
dep_tristate 'Amplicon PC36AT/PCI236' CONFIG_COMEDI_AMPLC_PC236 $CONFIG_COMEDI
dep_tristate 'Amplicon PC263/PCI263' CONFIG_COMEDI_AMPLC_PC263 $CONFIG_COMEDI
dep_tristate 'SSV DIL/Net PC driver' CONFIG_COMEDI_SSV_DNP $CONFIG_COMEDI
dep_tristate 'Inova ICP Multi' CONFIG_COMEDI_ICP_MULTI $CONFIG_COMEDI
dep_tristate 'Kolter-Electronic PCI Counter 1' CONFIG_COMEDI_KE_COUNTER $CONFIG_COMEDI
dep_tristate 'Meilhaus ME-2000i, ME-2600i, ME-3000vm1' CONFIG_COMEDI_ME_DAQ $CONFIG_COMEDI
dep_tristate 'Comedi test driver' CONFIG_COMEDI_TEST $CONFIG_COMEDI
dep_tristate 'Skeleton driver' CONFIG_COMEDI_SKEL $CONFIG_COMEDI

if [ "$CONFIG_COMEDI_RT" = "y" ];then
	dep_tristate 'Real-time command emulator (timer)' CONFIG_COMEDI_RT_TIMER $CONFIG_COMEDI
fi

define_bool CONFIG_COMEDI_FC m
