// SPDX-License-Identifier: GPL-2.0+
/*
 *  comedi/drivers/ni_routing/ni_device_routes/pxie-6535.c
 *  List of valid routes for specific NI boards.
 *
 *  COMEDI - Linux Control and Measurement Device Interface
 *  Copyright (C) 2016 Spencer E. Olson <olsonse@umich.edu>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 */

/*
 * The contents of this file are generated using the tools in
 * comedi/drivers/ni_routing/tools
 *
 * Please use those tools to help maintain the contents of this file.
 */

#include "../ni_device_routes.h"
#include "all.h"

struct ni_device_routes ni_pxie_6535_device_routes = {
	.device = "pxie-6535",
	.routes = (struct ni_route_set[]){
		{
			.dest = NI_PFI(0),
			.src = (int[]){
				NI_PFI(1),
				NI_PFI(2),
				NI_PFI(3),
				NI_PFI(4),
				NI_PFI(5),
				TRIGGER_LINE(0),
				TRIGGER_LINE(1),
				TRIGGER_LINE(2),
				TRIGGER_LINE(3),
				TRIGGER_LINE(4),
				TRIGGER_LINE(5),
				TRIGGER_LINE(6),
				NI_DI_StartTrigger,
				NI_DI_ReferenceTrigger,
				NI_DI_InputBufferFull,
				NI_DI_ReadyForStartEvent,
				NI_DI_ReadyForTransferEventBurst,
				NI_DI_ReadyForTransferEventPipelined,
				NI_DO_StartTrigger,
				NI_DO_OutputBufferFull,
				NI_DO_DataActiveEvent,
				NI_DO_ReadyForStartEvent,
				NI_DO_ReadyForTransferEvent,
				NI_ChangeDetectionEvent,
				0, /* Termination */
			}
		},
		{
			.dest = NI_PFI(1),
			.src = (int[]){
				NI_PFI(0),
				NI_PFI(2),
				NI_PFI(3),
				NI_PFI(4),
				NI_PFI(5),
				TRIGGER_LINE(0),
				TRIGGER_LINE(1),
				TRIGGER_LINE(2),
				TRIGGER_LINE(3),
				TRIGGER_LINE(4),
				TRIGGER_LINE(5),
				TRIGGER_LINE(6),
				NI_DI_StartTrigger,
				NI_DI_ReferenceTrigger,
				NI_DI_InputBufferFull,
				NI_DI_ReadyForStartEvent,
				NI_DI_ReadyForTransferEventBurst,
				NI_DI_ReadyForTransferEventPipelined,
				NI_DO_StartTrigger,
				NI_DO_OutputBufferFull,
				NI_DO_DataActiveEvent,
				NI_DO_ReadyForStartEvent,
				NI_DO_ReadyForTransferEvent,
				NI_ChangeDetectionEvent,
				0, /* Termination */
			}
		},
		{
			.dest = NI_PFI(2),
			.src = (int[]){
				NI_PFI(0),
				NI_PFI(1),
				NI_PFI(3),
				NI_PFI(4),
				NI_PFI(5),
				TRIGGER_LINE(0),
				TRIGGER_LINE(1),
				TRIGGER_LINE(2),
				TRIGGER_LINE(3),
				TRIGGER_LINE(4),
				TRIGGER_LINE(5),
				TRIGGER_LINE(6),
				NI_DI_StartTrigger,
				NI_DI_ReferenceTrigger,
				NI_DI_InputBufferFull,
				NI_DI_ReadyForStartEvent,
				NI_DI_ReadyForTransferEventBurst,
				NI_DI_ReadyForTransferEventPipelined,
				NI_DO_StartTrigger,
				NI_DO_OutputBufferFull,
				NI_DO_DataActiveEvent,
				NI_DO_ReadyForStartEvent,
				NI_DO_ReadyForTransferEvent,
				NI_ChangeDetectionEvent,
				0, /* Termination */
			}
		},
		{
			.dest = NI_PFI(3),
			.src = (int[]){
				NI_PFI(0),
				NI_PFI(1),
				NI_PFI(2),
				NI_PFI(4),
				NI_PFI(5),
				TRIGGER_LINE(0),
				TRIGGER_LINE(1),
				TRIGGER_LINE(2),
				TRIGGER_LINE(3),
				TRIGGER_LINE(4),
				TRIGGER_LINE(5),
				TRIGGER_LINE(6),
				NI_DI_StartTrigger,
				NI_DI_ReferenceTrigger,
				NI_DI_InputBufferFull,
				NI_DI_ReadyForStartEvent,
				NI_DI_ReadyForTransferEventBurst,
				NI_DI_ReadyForTransferEventPipelined,
				NI_DO_StartTrigger,
				NI_DO_OutputBufferFull,
				NI_DO_DataActiveEvent,
				NI_DO_ReadyForStartEvent,
				NI_DO_ReadyForTransferEvent,
				NI_ChangeDetectionEvent,
				0, /* Termination */
			}
		},
		{
			.dest = NI_PFI(4),
			.src = (int[]){
				NI_PFI(0),
				NI_PFI(1),
				NI_PFI(2),
				NI_PFI(3),
				NI_PFI(5),
				TRIGGER_LINE(0),
				TRIGGER_LINE(1),
				TRIGGER_LINE(2),
				TRIGGER_LINE(3),
				TRIGGER_LINE(4),
				TRIGGER_LINE(5),
				TRIGGER_LINE(6),
				TRIGGER_LINE(7),
				NI_DI_StartTrigger,
				NI_DI_ReferenceTrigger,
				NI_DI_InputBufferFull,
				NI_DI_ReadyForStartEvent,
				NI_DI_ReadyForTransferEventBurst,
				NI_DI_ReadyForTransferEventPipelined,
				NI_DO_SampleClock,
				NI_DO_StartTrigger,
				NI_DO_OutputBufferFull,
				NI_DO_DataActiveEvent,
				NI_DO_ReadyForStartEvent,
				NI_DO_ReadyForTransferEvent,
				NI_ChangeDetectionEvent,
				0, /* Termination */
			}
		},
		{
			.dest = NI_PFI(5),
			.src = (int[]){
				NI_PFI(0),
				NI_PFI(1),
				NI_PFI(2),
				NI_PFI(3),
				NI_PFI(4),
				TRIGGER_LINE(0),
				TRIGGER_LINE(1),
				TRIGGER_LINE(2),
				TRIGGER_LINE(3),
				TRIGGER_LINE(4),
				TRIGGER_LINE(5),
				TRIGGER_LINE(6),
				TRIGGER_LINE(7),
				NI_DI_SampleClock,
				NI_DI_StartTrigger,
				NI_DI_ReferenceTrigger,
				NI_DI_InputBufferFull,
				NI_DI_ReadyForStartEvent,
				NI_DI_ReadyForTransferEventBurst,
				NI_DI_ReadyForTransferEventPipelined,
				NI_DO_StartTrigger,
				NI_DO_OutputBufferFull,
				NI_DO_DataActiveEvent,
				NI_DO_ReadyForStartEvent,
				NI_DO_ReadyForTransferEvent,
				NI_ChangeDetectionEvent,
				0, /* Termination */
			}
		},
		{
			.dest = TRIGGER_LINE(0),
			.src = (int[]){
				NI_PFI(0),
				NI_PFI(1),
				NI_PFI(2),
				NI_PFI(3),
				NI_PFI(4),
				NI_PFI(5),
				TRIGGER_LINE(1),
				TRIGGER_LINE(2),
				TRIGGER_LINE(3),
				TRIGGER_LINE(4),
				TRIGGER_LINE(5),
				TRIGGER_LINE(6),
				NI_DI_StartTrigger,
				NI_DI_ReferenceTrigger,
				NI_DI_InputBufferFull,
				NI_DI_ReadyForStartEvent,
				NI_DI_ReadyForTransferEventBurst,
				NI_DI_ReadyForTransferEventPipelined,
				NI_DO_StartTrigger,
				NI_DO_OutputBufferFull,
				NI_DO_DataActiveEvent,
				NI_DO_ReadyForStartEvent,
				NI_DO_ReadyForTransferEvent,
				NI_ChangeDetectionEvent,
				0, /* Termination */
			}
		},
		{
			.dest = TRIGGER_LINE(1),
			.src = (int[]){
				NI_PFI(0),
				NI_PFI(1),
				NI_PFI(2),
				NI_PFI(3),
				NI_PFI(4),
				NI_PFI(5),
				TRIGGER_LINE(0),
				TRIGGER_LINE(2),
				TRIGGER_LINE(3),
				TRIGGER_LINE(4),
				TRIGGER_LINE(5),
				TRIGGER_LINE(6),
				NI_DI_StartTrigger,
				NI_DI_ReferenceTrigger,
				NI_DI_InputBufferFull,
				NI_DI_ReadyForStartEvent,
				NI_DI_ReadyForTransferEventBurst,
				NI_DI_ReadyForTransferEventPipelined,
				NI_DO_StartTrigger,
				NI_DO_OutputBufferFull,
				NI_DO_DataActiveEvent,
				NI_DO_ReadyForStartEvent,
				NI_DO_ReadyForTransferEvent,
				NI_ChangeDetectionEvent,
				0, /* Termination */
			}
		},
		{
			.dest = TRIGGER_LINE(2),
			.src = (int[]){
				NI_PFI(0),
				NI_PFI(1),
				NI_PFI(2),
				NI_PFI(3),
				NI_PFI(4),
				NI_PFI(5),
				TRIGGER_LINE(0),
				TRIGGER_LINE(1),
				TRIGGER_LINE(3),
				TRIGGER_LINE(4),
				TRIGGER_LINE(5),
				TRIGGER_LINE(6),
				NI_DI_StartTrigger,
				NI_DI_ReferenceTrigger,
				NI_DI_InputBufferFull,
				NI_DI_ReadyForStartEvent,
				NI_DI_ReadyForTransferEventBurst,
				NI_DI_ReadyForTransferEventPipelined,
				NI_DO_StartTrigger,
				NI_DO_OutputBufferFull,
				NI_DO_DataActiveEvent,
				NI_DO_ReadyForStartEvent,
				NI_DO_ReadyForTransferEvent,
				NI_ChangeDetectionEvent,
				0, /* Termination */
			}
		},
		{
			.dest = TRIGGER_LINE(3),
			.src = (int[]){
				NI_PFI(0),
				NI_PFI(1),
				NI_PFI(2),
				NI_PFI(3),
				NI_PFI(4),
				NI_PFI(5),
				TRIGGER_LINE(0),
				TRIGGER_LINE(1),
				TRIGGER_LINE(2),
				TRIGGER_LINE(4),
				TRIGGER_LINE(5),
				TRIGGER_LINE(6),
				NI_DI_StartTrigger,
				NI_DI_ReferenceTrigger,
				NI_DI_InputBufferFull,
				NI_DI_ReadyForStartEvent,
				NI_DI_ReadyForTransferEventBurst,
				NI_DI_ReadyForTransferEventPipelined,
				NI_DO_StartTrigger,
				NI_DO_OutputBufferFull,
				NI_DO_DataActiveEvent,
				NI_DO_ReadyForStartEvent,
				NI_DO_ReadyForTransferEvent,
				NI_ChangeDetectionEvent,
				0, /* Termination */
			}
		},
		{
			.dest = TRIGGER_LINE(4),
			.src = (int[]){
				NI_PFI(0),
				NI_PFI(1),
				NI_PFI(2),
				NI_PFI(3),
				NI_PFI(4),
				NI_PFI(5),
				TRIGGER_LINE(0),
				TRIGGER_LINE(1),
				TRIGGER_LINE(2),
				TRIGGER_LINE(3),
				TRIGGER_LINE(5),
				TRIGGER_LINE(6),
				NI_DI_StartTrigger,
				NI_DI_ReferenceTrigger,
				NI_DI_InputBufferFull,
				NI_DI_ReadyForStartEvent,
				NI_DI_ReadyForTransferEventBurst,
				NI_DI_ReadyForTransferEventPipelined,
				NI_DO_StartTrigger,
				NI_DO_OutputBufferFull,
				NI_DO_DataActiveEvent,
				NI_DO_ReadyForStartEvent,
				NI_DO_ReadyForTransferEvent,
				NI_ChangeDetectionEvent,
				0, /* Termination */
			}
		},
		{
			.dest = TRIGGER_LINE(5),
			.src = (int[]){
				NI_PFI(0),
				NI_PFI(1),
				NI_PFI(2),
				NI_PFI(3),
				NI_PFI(4),
				NI_PFI(5),
				TRIGGER_LINE(0),
				TRIGGER_LINE(1),
				TRIGGER_LINE(2),
				TRIGGER_LINE(3),
				TRIGGER_LINE(4),
				TRIGGER_LINE(6),
				NI_DI_StartTrigger,
				NI_DI_ReferenceTrigger,
				NI_DI_InputBufferFull,
				NI_DI_ReadyForStartEvent,
				NI_DI_ReadyForTransferEventBurst,
				NI_DI_ReadyForTransferEventPipelined,
				NI_DO_StartTrigger,
				NI_DO_OutputBufferFull,
				NI_DO_DataActiveEvent,
				NI_DO_ReadyForStartEvent,
				NI_DO_ReadyForTransferEvent,
				NI_ChangeDetectionEvent,
				0, /* Termination */
			}
		},
		{
			.dest = TRIGGER_LINE(6),
			.src = (int[]){
				NI_PFI(0),
				NI_PFI(1),
				NI_PFI(2),
				NI_PFI(3),
				NI_PFI(4),
				NI_PFI(5),
				TRIGGER_LINE(0),
				TRIGGER_LINE(1),
				TRIGGER_LINE(2),
				TRIGGER_LINE(3),
				TRIGGER_LINE(4),
				TRIGGER_LINE(5),
				NI_DI_StartTrigger,
				NI_DI_ReferenceTrigger,
				NI_DI_InputBufferFull,
				NI_DI_ReadyForStartEvent,
				NI_DI_ReadyForTransferEventBurst,
				NI_DI_ReadyForTransferEventPipelined,
				NI_DO_StartTrigger,
				NI_DO_OutputBufferFull,
				NI_DO_DataActiveEvent,
				NI_DO_ReadyForStartEvent,
				NI_DO_ReadyForTransferEvent,
				NI_ChangeDetectionEvent,
				0, /* Termination */
			}
		},
		{
			.dest = TRIGGER_LINE(7),
			.src = (int[]){
				NI_PFI(0),
				NI_PFI(1),
				NI_PFI(2),
				NI_PFI(3),
				NI_PFI(4),
				NI_PFI(5),
				TRIGGER_LINE(0),
				TRIGGER_LINE(1),
				TRIGGER_LINE(2),
				TRIGGER_LINE(3),
				TRIGGER_LINE(4),
				TRIGGER_LINE(5),
				TRIGGER_LINE(6),
				NI_DI_StartTrigger,
				NI_DI_ReferenceTrigger,
				NI_DI_InputBufferFull,
				NI_DI_ReadyForStartEvent,
				NI_DI_ReadyForTransferEventBurst,
				NI_DI_ReadyForTransferEventPipelined,
				NI_DO_SampleClock,
				NI_DO_StartTrigger,
				NI_DO_OutputBufferFull,
				NI_DO_DataActiveEvent,
				NI_DO_ReadyForStartEvent,
				NI_DO_ReadyForTransferEvent,
				NI_ChangeDetectionEvent,
				0, /* Termination */
			}
		},
		{
			.dest = NI_DI_SampleClock,
			.src = (int[]){
				NI_PFI(5),
				TRIGGER_LINE(7),
				0, /* Termination */
			}
		},
		{
			.dest = NI_DI_StartTrigger,
			.src = (int[]){
				NI_PFI(0),
				NI_PFI(1),
				NI_PFI(2),
				NI_PFI(3),
				NI_PFI(4),
				NI_PFI(5),
				TRIGGER_LINE(0),
				TRIGGER_LINE(1),
				TRIGGER_LINE(2),
				TRIGGER_LINE(3),
				TRIGGER_LINE(4),
				TRIGGER_LINE(5),
				TRIGGER_LINE(6),
				0, /* Termination */
			}
		},
		{
			.dest = NI_DI_ReferenceTrigger,
			.src = (int[]){
				NI_PFI(0),
				NI_PFI(1),
				NI_PFI(2),
				NI_PFI(3),
				NI_PFI(4),
				NI_PFI(5),
				TRIGGER_LINE(0),
				TRIGGER_LINE(1),
				TRIGGER_LINE(2),
				TRIGGER_LINE(3),
				TRIGGER_LINE(4),
				TRIGGER_LINE(5),
				TRIGGER_LINE(6),
				0, /* Termination */
			}
		},
		{
			.dest = NI_DI_PauseTrigger,
			.src = (int[]){
				NI_PFI(0),
				NI_PFI(1),
				NI_PFI(2),
				NI_PFI(3),
				NI_PFI(4),
				NI_PFI(5),
				TRIGGER_LINE(0),
				TRIGGER_LINE(1),
				TRIGGER_LINE(2),
				TRIGGER_LINE(3),
				TRIGGER_LINE(4),
				TRIGGER_LINE(5),
				TRIGGER_LINE(6),
				0, /* Termination */
			}
		},
		{
			.dest = NI_DO_SampleClock,
			.src = (int[]){
				NI_PFI(4),
				TRIGGER_LINE(7),
				0, /* Termination */
			}
		},
		{
			.dest = NI_DO_StartTrigger,
			.src = (int[]){
				NI_PFI(0),
				NI_PFI(1),
				NI_PFI(2),
				NI_PFI(3),
				NI_PFI(4),
				NI_PFI(5),
				TRIGGER_LINE(0),
				TRIGGER_LINE(1),
				TRIGGER_LINE(2),
				TRIGGER_LINE(3),
				TRIGGER_LINE(4),
				TRIGGER_LINE(5),
				TRIGGER_LINE(6),
				0, /* Termination */
			}
		},
		{
			.dest = NI_DO_PauseTrigger,
			.src = (int[]){
				NI_PFI(0),
				NI_PFI(1),
				NI_PFI(2),
				NI_PFI(3),
				NI_PFI(4),
				NI_PFI(5),
				TRIGGER_LINE(0),
				TRIGGER_LINE(1),
				TRIGGER_LINE(2),
				TRIGGER_LINE(3),
				TRIGGER_LINE(4),
				TRIGGER_LINE(5),
				TRIGGER_LINE(6),
				0, /* Termination */
			}
		},
		{ /* Termination of list */
			.dest = 0,
		},
	},
}