root/drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pci-6534.c

/* [<][>][^][v][top][bottom][index][help] */
   1 // SPDX-License-Identifier: GPL-2.0+
   2 /* vim: set ts=8 sw=8 noet tw=80 nowrap: */
   3 /*
   4  *  comedi/drivers/ni_routing/ni_device_routes/pci-6534.c
   5  *  List of valid routes for specific NI boards.
   6  *
   7  *  COMEDI - Linux Control and Measurement Device Interface
   8  *  Copyright (C) 2016 Spencer E. Olson <olsonse@umich.edu>
   9  *
  10  *  This program is free software; you can redistribute it and/or modify
  11  *  it under the terms of the GNU General Public License as published by
  12  *  the Free Software Foundation; either version 2 of the License, or
  13  *  (at your option) any later version.
  14  *
  15  *  This program is distributed in the hope that it will be useful,
  16  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  17  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18  *  GNU General Public License for more details.
  19  */
  20 
  21 /*
  22  * The contents of this file are generated using the tools in
  23  * comedi/drivers/ni_routing/tools
  24  *
  25  * Please use those tools to help maintain the contents of this file.
  26  */
  27 
  28 #include "../ni_device_routes.h"
  29 #include "all.h"
  30 
  31 struct ni_device_routes ni_pci_6534_device_routes = {
  32         .device = "pci-6534",
  33         .routes = (struct ni_route_set[]){
  34                 {
  35                         .dest = NI_PFI(0),
  36                         .src = (int[]){
  37                                 TRIGGER_LINE(0),
  38                                 TRIGGER_LINE(1),
  39                                 TRIGGER_LINE(2),
  40                                 TRIGGER_LINE(3),
  41                                 TRIGGER_LINE(4),
  42                                 TRIGGER_LINE(5),
  43                                 TRIGGER_LINE(6),
  44                                 0, /* Termination */
  45                         }
  46                 },
  47                 {
  48                         .dest = NI_PFI(1),
  49                         .src = (int[]){
  50                                 TRIGGER_LINE(0),
  51                                 TRIGGER_LINE(1),
  52                                 TRIGGER_LINE(2),
  53                                 TRIGGER_LINE(3),
  54                                 TRIGGER_LINE(4),
  55                                 TRIGGER_LINE(5),
  56                                 TRIGGER_LINE(6),
  57                                 0, /* Termination */
  58                         }
  59                 },
  60                 {
  61                         .dest = NI_PFI(2),
  62                         .src = (int[]){
  63                                 TRIGGER_LINE(0),
  64                                 TRIGGER_LINE(1),
  65                                 TRIGGER_LINE(2),
  66                                 TRIGGER_LINE(3),
  67                                 TRIGGER_LINE(4),
  68                                 TRIGGER_LINE(5),
  69                                 TRIGGER_LINE(6),
  70                                 0, /* Termination */
  71                         }
  72                 },
  73                 {
  74                         .dest = NI_PFI(3),
  75                         .src = (int[]){
  76                                 TRIGGER_LINE(0),
  77                                 TRIGGER_LINE(1),
  78                                 TRIGGER_LINE(2),
  79                                 TRIGGER_LINE(3),
  80                                 TRIGGER_LINE(4),
  81                                 TRIGGER_LINE(5),
  82                                 TRIGGER_LINE(6),
  83                                 0, /* Termination */
  84                         }
  85                 },
  86                 {
  87                         .dest = NI_PFI(4),
  88                         .src = (int[]){
  89                                 TRIGGER_LINE(0),
  90                                 TRIGGER_LINE(1),
  91                                 TRIGGER_LINE(2),
  92                                 TRIGGER_LINE(3),
  93                                 TRIGGER_LINE(4),
  94                                 TRIGGER_LINE(5),
  95                                 TRIGGER_LINE(6),
  96                                 0, /* Termination */
  97                         }
  98                 },
  99                 {
 100                         .dest = NI_PFI(5),
 101                         .src = (int[]){
 102                                 TRIGGER_LINE(0),
 103                                 TRIGGER_LINE(1),
 104                                 TRIGGER_LINE(2),
 105                                 TRIGGER_LINE(3),
 106                                 TRIGGER_LINE(4),
 107                                 TRIGGER_LINE(5),
 108                                 TRIGGER_LINE(6),
 109                                 0, /* Termination */
 110                         }
 111                 },
 112                 {
 113                         .dest = NI_PFI(6),
 114                         .src = (int[]){
 115                                 TRIGGER_LINE(0),
 116                                 TRIGGER_LINE(1),
 117                                 TRIGGER_LINE(2),
 118                                 TRIGGER_LINE(3),
 119                                 TRIGGER_LINE(4),
 120                                 TRIGGER_LINE(5),
 121                                 TRIGGER_LINE(6),
 122                                 0, /* Termination */
 123                         }
 124                 },
 125                 {
 126                         .dest = NI_PFI(7),
 127                         .src = (int[]){
 128                                 TRIGGER_LINE(0),
 129                                 TRIGGER_LINE(1),
 130                                 TRIGGER_LINE(2),
 131                                 TRIGGER_LINE(3),
 132                                 TRIGGER_LINE(4),
 133                                 TRIGGER_LINE(5),
 134                                 TRIGGER_LINE(6),
 135                                 0, /* Termination */
 136                         }
 137                 },
 138                 {
 139                         .dest = TRIGGER_LINE(0),
 140                         .src = (int[]){
 141                                 NI_PFI(0),
 142                                 NI_PFI(1),
 143                                 NI_PFI(2),
 144                                 NI_PFI(3),
 145                                 NI_PFI(4),
 146                                 NI_PFI(5),
 147                                 NI_PFI(6),
 148                                 TRIGGER_LINE(1),
 149                                 TRIGGER_LINE(2),
 150                                 TRIGGER_LINE(3),
 151                                 TRIGGER_LINE(4),
 152                                 TRIGGER_LINE(5),
 153                                 TRIGGER_LINE(6),
 154                                 0, /* Termination */
 155                         }
 156                 },
 157                 {
 158                         .dest = TRIGGER_LINE(1),
 159                         .src = (int[]){
 160                                 NI_PFI(0),
 161                                 NI_PFI(1),
 162                                 NI_PFI(2),
 163                                 NI_PFI(3),
 164                                 NI_PFI(4),
 165                                 NI_PFI(5),
 166                                 NI_PFI(6),
 167                                 TRIGGER_LINE(0),
 168                                 TRIGGER_LINE(2),
 169                                 TRIGGER_LINE(3),
 170                                 TRIGGER_LINE(4),
 171                                 TRIGGER_LINE(5),
 172                                 TRIGGER_LINE(6),
 173                                 0, /* Termination */
 174                         }
 175                 },
 176                 {
 177                         .dest = TRIGGER_LINE(2),
 178                         .src = (int[]){
 179                                 NI_PFI(0),
 180                                 NI_PFI(1),
 181                                 NI_PFI(2),
 182                                 NI_PFI(3),
 183                                 NI_PFI(4),
 184                                 NI_PFI(5),
 185                                 NI_PFI(6),
 186                                 TRIGGER_LINE(0),
 187                                 TRIGGER_LINE(1),
 188                                 TRIGGER_LINE(3),
 189                                 TRIGGER_LINE(4),
 190                                 TRIGGER_LINE(5),
 191                                 TRIGGER_LINE(6),
 192                                 0, /* Termination */
 193                         }
 194                 },
 195                 {
 196                         .dest = TRIGGER_LINE(3),
 197                         .src = (int[]){
 198                                 NI_PFI(0),
 199                                 NI_PFI(1),
 200                                 NI_PFI(2),
 201                                 NI_PFI(3),
 202                                 NI_PFI(4),
 203                                 NI_PFI(5),
 204                                 NI_PFI(6),
 205                                 TRIGGER_LINE(0),
 206                                 TRIGGER_LINE(1),
 207                                 TRIGGER_LINE(2),
 208                                 TRIGGER_LINE(4),
 209                                 TRIGGER_LINE(5),
 210                                 TRIGGER_LINE(6),
 211                                 0, /* Termination */
 212                         }
 213                 },
 214                 {
 215                         .dest = TRIGGER_LINE(4),
 216                         .src = (int[]){
 217                                 NI_PFI(0),
 218                                 NI_PFI(1),
 219                                 NI_PFI(2),
 220                                 NI_PFI(3),
 221                                 NI_PFI(4),
 222                                 NI_PFI(5),
 223                                 NI_PFI(6),
 224                                 TRIGGER_LINE(0),
 225                                 TRIGGER_LINE(1),
 226                                 TRIGGER_LINE(2),
 227                                 TRIGGER_LINE(3),
 228                                 TRIGGER_LINE(5),
 229                                 TRIGGER_LINE(6),
 230                                 0, /* Termination */
 231                         }
 232                 },
 233                 {
 234                         .dest = TRIGGER_LINE(5),
 235                         .src = (int[]){
 236                                 NI_PFI(0),
 237                                 NI_PFI(1),
 238                                 NI_PFI(2),
 239                                 NI_PFI(3),
 240                                 NI_PFI(4),
 241                                 NI_PFI(5),
 242                                 NI_PFI(6),
 243                                 TRIGGER_LINE(0),
 244                                 TRIGGER_LINE(1),
 245                                 TRIGGER_LINE(2),
 246                                 TRIGGER_LINE(3),
 247                                 TRIGGER_LINE(4),
 248                                 TRIGGER_LINE(6),
 249                                 0, /* Termination */
 250                         }
 251                 },
 252                 {
 253                         .dest = TRIGGER_LINE(6),
 254                         .src = (int[]){
 255                                 NI_PFI(0),
 256                                 NI_PFI(1),
 257                                 NI_PFI(2),
 258                                 NI_PFI(3),
 259                                 NI_PFI(4),
 260                                 NI_PFI(5),
 261                                 NI_PFI(6),
 262                                 TRIGGER_LINE(0),
 263                                 TRIGGER_LINE(1),
 264                                 TRIGGER_LINE(2),
 265                                 TRIGGER_LINE(3),
 266                                 TRIGGER_LINE(4),
 267                                 TRIGGER_LINE(5),
 268                                 0, /* Termination */
 269                         }
 270                 },
 271                 {
 272                         .dest = TRIGGER_LINE(7),
 273                         .src = (int[]){
 274                                 NI_20MHzTimebase,
 275                                 0, /* Termination */
 276                         }
 277                 },
 278                 {
 279                         .dest = NI_MasterTimebase,
 280                         .src = (int[]){
 281                                 TRIGGER_LINE(7),
 282                                 NI_20MHzTimebase,
 283                                 0, /* Termination */
 284                         }
 285                 },
 286                 { /* Termination of list */
 287                         .dest = 0,
 288                 },
 289         },
 290 };

/* [<][>][^][v][top][bottom][index][help] */