Commit 4bb90c87 authored by Spencer E. Olson's avatar Spencer E. Olson Committed by Greg Kroah-Hartman

staging: comedi: add interface to ni routing table information

Adds interface and associated unittests for accessing/looking-up/validating
the new ni routing table information.
Signed-off-by: default avatarSpencer E. Olson <olsonse@umich.edu>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ba932fcf
......@@ -1313,5 +1313,9 @@ config COMEDI_NI_LABPC_ISADMA
config COMEDI_NI_TIO
tristate
select COMEDI_NI_ROUTING
config COMEDI_NI_ROUTING
tristate
endif # COMEDI
......@@ -137,6 +137,33 @@ obj-$(CONFIG_COMEDI_VMK80XX) += vmk80xx.o
obj-$(CONFIG_COMEDI_MITE) += mite.o
obj-$(CONFIG_COMEDI_NI_TIO) += ni_tio.o
obj-$(CONFIG_COMEDI_NI_TIOCMD) += ni_tiocmd.o
obj-$(CONFIG_COMEDI_NI_ROUTING) += ni_routing.o
ni_routing-objs += ni_routes.o \
ni_routing/ni_route_values.o \
ni_routing/ni_route_values/ni_660x.o \
ni_routing/ni_route_values/ni_eseries.o \
ni_routing/ni_route_values/ni_mseries.o \
ni_routing/ni_device_routes.o \
ni_routing/ni_device_routes/pxi-6030e.o \
ni_routing/ni_device_routes/pci-6070e.o \
ni_routing/ni_device_routes/pci-6220.o \
ni_routing/ni_device_routes/pci-6221.o \
ni_routing/ni_device_routes/pxi-6224.o \
ni_routing/ni_device_routes/pxi-6225.o \
ni_routing/ni_device_routes/pci-6229.o \
ni_routing/ni_device_routes/pci-6251.o \
ni_routing/ni_device_routes/pxi-6251.o \
ni_routing/ni_device_routes/pxie-6251.o \
ni_routing/ni_device_routes/pci-6254.o \
ni_routing/ni_device_routes/pci-6259.o \
ni_routing/ni_device_routes/pci-6534.o \
ni_routing/ni_device_routes/pxie-6535.o \
ni_routing/ni_device_routes/pci-6602.o \
ni_routing/ni_device_routes/pci-6713.o \
ni_routing/ni_device_routes/pci-6723.o \
ni_routing/ni_device_routes/pci-6733.o \
ni_routing/ni_device_routes/pxi-6733.o \
ni_routing/ni_device_routes/pxie-6738.o
obj-$(CONFIG_COMEDI_NI_LABPC) += ni_labpc_common.o
obj-$(CONFIG_COMEDI_NI_LABPC_ISADMA) += ni_labpc_isadma.o
......
This diff is collapsed.
This diff is collapsed.
......@@ -15,6 +15,7 @@
#define _COMEDI_NI_STC_H
#include "ni_tio.h"
#include "ni_routes.h"
/*
* Registers in the National Instruments DAQ-STC chip
......@@ -1058,6 +1059,9 @@ struct ni_private {
* possible.
*/
unsigned int ao_needs_arming:1;
/* device signal route tables */
struct ni_route_tables routing_tables;
};
static const struct comedi_lrange range_ni_E_ao_ext;
......
......@@ -3,4 +3,5 @@
#
ccflags-$(CONFIG_COMEDI_DEBUG) := -DDEBUG
obj-$(CONFIG_COMEDI_TESTS) += example_test.o
obj-$(CONFIG_COMEDI_TESTS) += example_test.o ni_routes_test.o
CFLAGS_ni_routes_test.o := -DDEBUG
This diff is collapsed.
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