root/drivers/staging/comedi/drivers/ni_routing/ni_device_routes/pxie-6535.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/pxie-6535.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_pxie_6535_device_routes = {
  32         .device = "pxie-6535",
  33         .routes = (struct ni_route_set[]){
  34                 {
  35                         .dest = NI_PFI(0),
  36                         .src = (int[]){
  37                                 NI_PFI(1),
  38                                 NI_PFI(2),
  39                                 NI_PFI(3),
  40                                 NI_PFI(4),
  41                                 NI_PFI(5),
  42                                 TRIGGER_LINE(0),
  43                                 TRIGGER_LINE(1),
  44                                 TRIGGER_LINE(2),
  45                                 TRIGGER_LINE(3),
  46                                 TRIGGER_LINE(4),
  47                                 TRIGGER_LINE(5),
  48                                 TRIGGER_LINE(6),
  49                                 NI_DI_StartTrigger,
  50                                 NI_DI_ReferenceTrigger,
  51                                 NI_DI_InputBufferFull,
  52                                 NI_DI_ReadyForStartEvent,
  53                                 NI_DI_ReadyForTransferEventBurst,
  54                                 NI_DI_ReadyForTransferEventPipelined,
  55                                 NI_DO_StartTrigger,
  56                                 NI_DO_OutputBufferFull,
  57                                 NI_DO_DataActiveEvent,
  58                                 NI_DO_ReadyForStartEvent,
  59                                 NI_DO_ReadyForTransferEvent,
  60                                 NI_ChangeDetectionEvent,
  61                                 0, /* Termination */
  62                         }
  63                 },
  64                 {
  65                         .dest = NI_PFI(1),
  66                         .src = (int[]){
  67                                 NI_PFI(0),
  68                                 NI_PFI(2),
  69                                 NI_PFI(3),
  70                                 NI_PFI(4),
  71                                 NI_PFI(5),
  72                                 TRIGGER_LINE(0),
  73                                 TRIGGER_LINE(1),
  74                                 TRIGGER_LINE(2),
  75                                 TRIGGER_LINE(3),
  76                                 TRIGGER_LINE(4),
  77                                 TRIGGER_LINE(5),
  78                                 TRIGGER_LINE(6),
  79                                 NI_DI_StartTrigger,
  80                                 NI_DI_ReferenceTrigger,
  81                                 NI_DI_InputBufferFull,
  82                                 NI_DI_ReadyForStartEvent,
  83                                 NI_DI_ReadyForTransferEventBurst,
  84                                 NI_DI_ReadyForTransferEventPipelined,
  85                                 NI_DO_StartTrigger,
  86                                 NI_DO_OutputBufferFull,
  87                                 NI_DO_DataActiveEvent,
  88                                 NI_DO_ReadyForStartEvent,
  89                                 NI_DO_ReadyForTransferEvent,
  90                                 NI_ChangeDetectionEvent,
  91                                 0, /* Termination */
  92                         }
  93                 },
  94                 {
  95                         .dest = NI_PFI(2),
  96                         .src = (int[]){
  97                                 NI_PFI(0),
  98                                 NI_PFI(1),
  99                                 NI_PFI(3),
 100                                 NI_PFI(4),
 101                                 NI_PFI(5),
 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                                 NI_DI_StartTrigger,
 110                                 NI_DI_ReferenceTrigger,
 111                                 NI_DI_InputBufferFull,
 112                                 NI_DI_ReadyForStartEvent,
 113                                 NI_DI_ReadyForTransferEventBurst,
 114                                 NI_DI_ReadyForTransferEventPipelined,
 115                                 NI_DO_StartTrigger,
 116                                 NI_DO_OutputBufferFull,
 117                                 NI_DO_DataActiveEvent,
 118                                 NI_DO_ReadyForStartEvent,
 119                                 NI_DO_ReadyForTransferEvent,
 120                                 NI_ChangeDetectionEvent,
 121                                 0, /* Termination */
 122                         }
 123                 },
 124                 {
 125                         .dest = NI_PFI(3),
 126                         .src = (int[]){
 127                                 NI_PFI(0),
 128                                 NI_PFI(1),
 129                                 NI_PFI(2),
 130                                 NI_PFI(4),
 131                                 NI_PFI(5),
 132                                 TRIGGER_LINE(0),
 133                                 TRIGGER_LINE(1),
 134                                 TRIGGER_LINE(2),
 135                                 TRIGGER_LINE(3),
 136                                 TRIGGER_LINE(4),
 137                                 TRIGGER_LINE(5),
 138                                 TRIGGER_LINE(6),
 139                                 NI_DI_StartTrigger,
 140                                 NI_DI_ReferenceTrigger,
 141                                 NI_DI_InputBufferFull,
 142                                 NI_DI_ReadyForStartEvent,
 143                                 NI_DI_ReadyForTransferEventBurst,
 144                                 NI_DI_ReadyForTransferEventPipelined,
 145                                 NI_DO_StartTrigger,
 146                                 NI_DO_OutputBufferFull,
 147                                 NI_DO_DataActiveEvent,
 148                                 NI_DO_ReadyForStartEvent,
 149                                 NI_DO_ReadyForTransferEvent,
 150                                 NI_ChangeDetectionEvent,
 151                                 0, /* Termination */
 152                         }
 153                 },
 154                 {
 155                         .dest = NI_PFI(4),
 156                         .src = (int[]){
 157                                 NI_PFI(0),
 158                                 NI_PFI(1),
 159                                 NI_PFI(2),
 160                                 NI_PFI(3),
 161                                 NI_PFI(5),
 162                                 TRIGGER_LINE(0),
 163                                 TRIGGER_LINE(1),
 164                                 TRIGGER_LINE(2),
 165                                 TRIGGER_LINE(3),
 166                                 TRIGGER_LINE(4),
 167                                 TRIGGER_LINE(5),
 168                                 TRIGGER_LINE(6),
 169                                 TRIGGER_LINE(7),
 170                                 NI_DI_StartTrigger,
 171                                 NI_DI_ReferenceTrigger,
 172                                 NI_DI_InputBufferFull,
 173                                 NI_DI_ReadyForStartEvent,
 174                                 NI_DI_ReadyForTransferEventBurst,
 175                                 NI_DI_ReadyForTransferEventPipelined,
 176                                 NI_DO_SampleClock,
 177                                 NI_DO_StartTrigger,
 178                                 NI_DO_OutputBufferFull,
 179                                 NI_DO_DataActiveEvent,
 180                                 NI_DO_ReadyForStartEvent,
 181                                 NI_DO_ReadyForTransferEvent,
 182                                 NI_ChangeDetectionEvent,
 183                                 0, /* Termination */
 184                         }
 185                 },
 186                 {
 187                         .dest = NI_PFI(5),
 188                         .src = (int[]){
 189                                 NI_PFI(0),
 190                                 NI_PFI(1),
 191                                 NI_PFI(2),
 192                                 NI_PFI(3),
 193                                 NI_PFI(4),
 194                                 TRIGGER_LINE(0),
 195                                 TRIGGER_LINE(1),
 196                                 TRIGGER_LINE(2),
 197                                 TRIGGER_LINE(3),
 198                                 TRIGGER_LINE(4),
 199                                 TRIGGER_LINE(5),
 200                                 TRIGGER_LINE(6),
 201                                 TRIGGER_LINE(7),
 202                                 NI_DI_SampleClock,
 203                                 NI_DI_StartTrigger,
 204                                 NI_DI_ReferenceTrigger,
 205                                 NI_DI_InputBufferFull,
 206                                 NI_DI_ReadyForStartEvent,
 207                                 NI_DI_ReadyForTransferEventBurst,
 208                                 NI_DI_ReadyForTransferEventPipelined,
 209                                 NI_DO_StartTrigger,
 210                                 NI_DO_OutputBufferFull,
 211                                 NI_DO_DataActiveEvent,
 212                                 NI_DO_ReadyForStartEvent,
 213                                 NI_DO_ReadyForTransferEvent,
 214                                 NI_ChangeDetectionEvent,
 215                                 0, /* Termination */
 216                         }
 217                 },
 218                 {
 219                         .dest = TRIGGER_LINE(0),
 220                         .src = (int[]){
 221                                 NI_PFI(0),
 222                                 NI_PFI(1),
 223                                 NI_PFI(2),
 224                                 NI_PFI(3),
 225                                 NI_PFI(4),
 226                                 NI_PFI(5),
 227                                 TRIGGER_LINE(1),
 228                                 TRIGGER_LINE(2),
 229                                 TRIGGER_LINE(3),
 230                                 TRIGGER_LINE(4),
 231                                 TRIGGER_LINE(5),
 232                                 TRIGGER_LINE(6),
 233                                 NI_DI_StartTrigger,
 234                                 NI_DI_ReferenceTrigger,
 235                                 NI_DI_InputBufferFull,
 236                                 NI_DI_ReadyForStartEvent,
 237                                 NI_DI_ReadyForTransferEventBurst,
 238                                 NI_DI_ReadyForTransferEventPipelined,
 239                                 NI_DO_StartTrigger,
 240                                 NI_DO_OutputBufferFull,
 241                                 NI_DO_DataActiveEvent,
 242                                 NI_DO_ReadyForStartEvent,
 243                                 NI_DO_ReadyForTransferEvent,
 244                                 NI_ChangeDetectionEvent,
 245                                 0, /* Termination */
 246                         }
 247                 },
 248                 {
 249                         .dest = TRIGGER_LINE(1),
 250                         .src = (int[]){
 251                                 NI_PFI(0),
 252                                 NI_PFI(1),
 253                                 NI_PFI(2),
 254                                 NI_PFI(3),
 255                                 NI_PFI(4),
 256                                 NI_PFI(5),
 257                                 TRIGGER_LINE(0),
 258                                 TRIGGER_LINE(2),
 259                                 TRIGGER_LINE(3),
 260                                 TRIGGER_LINE(4),
 261                                 TRIGGER_LINE(5),
 262                                 TRIGGER_LINE(6),
 263                                 NI_DI_StartTrigger,
 264                                 NI_DI_ReferenceTrigger,
 265                                 NI_DI_InputBufferFull,
 266                                 NI_DI_ReadyForStartEvent,
 267                                 NI_DI_ReadyForTransferEventBurst,
 268                                 NI_DI_ReadyForTransferEventPipelined,
 269                                 NI_DO_StartTrigger,
 270                                 NI_DO_OutputBufferFull,
 271                                 NI_DO_DataActiveEvent,
 272                                 NI_DO_ReadyForStartEvent,
 273                                 NI_DO_ReadyForTransferEvent,
 274                                 NI_ChangeDetectionEvent,
 275                                 0, /* Termination */
 276                         }
 277                 },
 278                 {
 279                         .dest = TRIGGER_LINE(2),
 280                         .src = (int[]){
 281                                 NI_PFI(0),
 282                                 NI_PFI(1),
 283                                 NI_PFI(2),
 284                                 NI_PFI(3),
 285                                 NI_PFI(4),
 286                                 NI_PFI(5),
 287                                 TRIGGER_LINE(0),
 288                                 TRIGGER_LINE(1),
 289                                 TRIGGER_LINE(3),
 290                                 TRIGGER_LINE(4),
 291                                 TRIGGER_LINE(5),
 292                                 TRIGGER_LINE(6),
 293                                 NI_DI_StartTrigger,
 294                                 NI_DI_ReferenceTrigger,
 295                                 NI_DI_InputBufferFull,
 296                                 NI_DI_ReadyForStartEvent,
 297                                 NI_DI_ReadyForTransferEventBurst,
 298                                 NI_DI_ReadyForTransferEventPipelined,
 299                                 NI_DO_StartTrigger,
 300                                 NI_DO_OutputBufferFull,
 301                                 NI_DO_DataActiveEvent,
 302                                 NI_DO_ReadyForStartEvent,
 303                                 NI_DO_ReadyForTransferEvent,
 304                                 NI_ChangeDetectionEvent,
 305                                 0, /* Termination */
 306                         }
 307                 },
 308                 {
 309                         .dest = TRIGGER_LINE(3),
 310                         .src = (int[]){
 311                                 NI_PFI(0),
 312                                 NI_PFI(1),
 313                                 NI_PFI(2),
 314                                 NI_PFI(3),
 315                                 NI_PFI(4),
 316                                 NI_PFI(5),
 317                                 TRIGGER_LINE(0),
 318                                 TRIGGER_LINE(1),
 319                                 TRIGGER_LINE(2),
 320                                 TRIGGER_LINE(4),
 321                                 TRIGGER_LINE(5),
 322                                 TRIGGER_LINE(6),
 323                                 NI_DI_StartTrigger,
 324                                 NI_DI_ReferenceTrigger,
 325                                 NI_DI_InputBufferFull,
 326                                 NI_DI_ReadyForStartEvent,
 327                                 NI_DI_ReadyForTransferEventBurst,
 328                                 NI_DI_ReadyForTransferEventPipelined,
 329                                 NI_DO_StartTrigger,
 330                                 NI_DO_OutputBufferFull,
 331                                 NI_DO_DataActiveEvent,
 332                                 NI_DO_ReadyForStartEvent,
 333                                 NI_DO_ReadyForTransferEvent,
 334                                 NI_ChangeDetectionEvent,
 335                                 0, /* Termination */
 336                         }
 337                 },
 338                 {
 339                         .dest = TRIGGER_LINE(4),
 340                         .src = (int[]){
 341                                 NI_PFI(0),
 342                                 NI_PFI(1),
 343                                 NI_PFI(2),
 344                                 NI_PFI(3),
 345                                 NI_PFI(4),
 346                                 NI_PFI(5),
 347                                 TRIGGER_LINE(0),
 348                                 TRIGGER_LINE(1),
 349                                 TRIGGER_LINE(2),
 350                                 TRIGGER_LINE(3),
 351                                 TRIGGER_LINE(5),
 352                                 TRIGGER_LINE(6),
 353                                 NI_DI_StartTrigger,
 354                                 NI_DI_ReferenceTrigger,
 355                                 NI_DI_InputBufferFull,
 356                                 NI_DI_ReadyForStartEvent,
 357                                 NI_DI_ReadyForTransferEventBurst,
 358                                 NI_DI_ReadyForTransferEventPipelined,
 359                                 NI_DO_StartTrigger,
 360                                 NI_DO_OutputBufferFull,
 361                                 NI_DO_DataActiveEvent,
 362                                 NI_DO_ReadyForStartEvent,
 363                                 NI_DO_ReadyForTransferEvent,
 364                                 NI_ChangeDetectionEvent,
 365                                 0, /* Termination */
 366                         }
 367                 },
 368                 {
 369                         .dest = TRIGGER_LINE(5),
 370                         .src = (int[]){
 371                                 NI_PFI(0),
 372                                 NI_PFI(1),
 373                                 NI_PFI(2),
 374                                 NI_PFI(3),
 375                                 NI_PFI(4),
 376                                 NI_PFI(5),
 377                                 TRIGGER_LINE(0),
 378                                 TRIGGER_LINE(1),
 379                                 TRIGGER_LINE(2),
 380                                 TRIGGER_LINE(3),
 381                                 TRIGGER_LINE(4),
 382                                 TRIGGER_LINE(6),
 383                                 NI_DI_StartTrigger,
 384                                 NI_DI_ReferenceTrigger,
 385                                 NI_DI_InputBufferFull,
 386                                 NI_DI_ReadyForStartEvent,
 387                                 NI_DI_ReadyForTransferEventBurst,
 388                                 NI_DI_ReadyForTransferEventPipelined,
 389                                 NI_DO_StartTrigger,
 390                                 NI_DO_OutputBufferFull,
 391                                 NI_DO_DataActiveEvent,
 392                                 NI_DO_ReadyForStartEvent,
 393                                 NI_DO_ReadyForTransferEvent,
 394                                 NI_ChangeDetectionEvent,
 395                                 0, /* Termination */
 396                         }
 397                 },
 398                 {
 399                         .dest = TRIGGER_LINE(6),
 400                         .src = (int[]){
 401                                 NI_PFI(0),
 402                                 NI_PFI(1),
 403                                 NI_PFI(2),
 404                                 NI_PFI(3),
 405                                 NI_PFI(4),
 406                                 NI_PFI(5),
 407                                 TRIGGER_LINE(0),
 408                                 TRIGGER_LINE(1),
 409                                 TRIGGER_LINE(2),
 410                                 TRIGGER_LINE(3),
 411                                 TRIGGER_LINE(4),
 412                                 TRIGGER_LINE(5),
 413                                 NI_DI_StartTrigger,
 414                                 NI_DI_ReferenceTrigger,
 415                                 NI_DI_InputBufferFull,
 416                                 NI_DI_ReadyForStartEvent,
 417                                 NI_DI_ReadyForTransferEventBurst,
 418                                 NI_DI_ReadyForTransferEventPipelined,
 419                                 NI_DO_StartTrigger,
 420                                 NI_DO_OutputBufferFull,
 421                                 NI_DO_DataActiveEvent,
 422                                 NI_DO_ReadyForStartEvent,
 423                                 NI_DO_ReadyForTransferEvent,
 424                                 NI_ChangeDetectionEvent,
 425                                 0, /* Termination */
 426                         }
 427                 },
 428                 {
 429                         .dest = TRIGGER_LINE(7),
 430                         .src = (int[]){
 431                                 NI_PFI(0),
 432                                 NI_PFI(1),
 433                                 NI_PFI(2),
 434                                 NI_PFI(3),
 435                                 NI_PFI(4),
 436                                 NI_PFI(5),
 437                                 TRIGGER_LINE(0),
 438                                 TRIGGER_LINE(1),
 439                                 TRIGGER_LINE(2),
 440                                 TRIGGER_LINE(3),
 441                                 TRIGGER_LINE(4),
 442                                 TRIGGER_LINE(5),
 443                                 TRIGGER_LINE(6),
 444                                 NI_DI_StartTrigger,
 445                                 NI_DI_ReferenceTrigger,
 446                                 NI_DI_InputBufferFull,
 447                                 NI_DI_ReadyForStartEvent,
 448                                 NI_DI_ReadyForTransferEventBurst,
 449                                 NI_DI_ReadyForTransferEventPipelined,
 450                                 NI_DO_SampleClock,
 451                                 NI_DO_StartTrigger,
 452                                 NI_DO_OutputBufferFull,
 453                                 NI_DO_DataActiveEvent,
 454                                 NI_DO_ReadyForStartEvent,
 455                                 NI_DO_ReadyForTransferEvent,
 456                                 NI_ChangeDetectionEvent,
 457                                 0, /* Termination */
 458                         }
 459                 },
 460                 {
 461                         .dest = NI_DI_SampleClock,
 462                         .src = (int[]){
 463                                 NI_PFI(5),
 464                                 TRIGGER_LINE(7),
 465                                 0, /* Termination */
 466                         }
 467                 },
 468                 {
 469                         .dest = NI_DI_StartTrigger,
 470                         .src = (int[]){
 471                                 NI_PFI(0),
 472                                 NI_PFI(1),
 473                                 NI_PFI(2),
 474                                 NI_PFI(3),
 475                                 NI_PFI(4),
 476                                 NI_PFI(5),
 477                                 TRIGGER_LINE(0),
 478                                 TRIGGER_LINE(1),
 479                                 TRIGGER_LINE(2),
 480                                 TRIGGER_LINE(3),
 481                                 TRIGGER_LINE(4),
 482                                 TRIGGER_LINE(5),
 483                                 TRIGGER_LINE(6),
 484                                 0, /* Termination */
 485                         }
 486                 },
 487                 {
 488                         .dest = NI_DI_ReferenceTrigger,
 489                         .src = (int[]){
 490                                 NI_PFI(0),
 491                                 NI_PFI(1),
 492                                 NI_PFI(2),
 493                                 NI_PFI(3),
 494                                 NI_PFI(4),
 495                                 NI_PFI(5),
 496                                 TRIGGER_LINE(0),
 497                                 TRIGGER_LINE(1),
 498                                 TRIGGER_LINE(2),
 499                                 TRIGGER_LINE(3),
 500                                 TRIGGER_LINE(4),
 501                                 TRIGGER_LINE(5),
 502                                 TRIGGER_LINE(6),
 503                                 0, /* Termination */
 504                         }
 505                 },
 506                 {
 507                         .dest = NI_DI_PauseTrigger,
 508                         .src = (int[]){
 509                                 NI_PFI(0),
 510                                 NI_PFI(1),
 511                                 NI_PFI(2),
 512                                 NI_PFI(3),
 513                                 NI_PFI(4),
 514                                 NI_PFI(5),
 515                                 TRIGGER_LINE(0),
 516                                 TRIGGER_LINE(1),
 517                                 TRIGGER_LINE(2),
 518                                 TRIGGER_LINE(3),
 519                                 TRIGGER_LINE(4),
 520                                 TRIGGER_LINE(5),
 521                                 TRIGGER_LINE(6),
 522                                 0, /* Termination */
 523                         }
 524                 },
 525                 {
 526                         .dest = NI_DO_SampleClock,
 527                         .src = (int[]){
 528                                 NI_PFI(4),
 529                                 TRIGGER_LINE(7),
 530                                 0, /* Termination */
 531                         }
 532                 },
 533                 {
 534                         .dest = NI_DO_StartTrigger,
 535                         .src = (int[]){
 536                                 NI_PFI(0),
 537                                 NI_PFI(1),
 538                                 NI_PFI(2),
 539                                 NI_PFI(3),
 540                                 NI_PFI(4),
 541                                 NI_PFI(5),
 542                                 TRIGGER_LINE(0),
 543                                 TRIGGER_LINE(1),
 544                                 TRIGGER_LINE(2),
 545                                 TRIGGER_LINE(3),
 546                                 TRIGGER_LINE(4),
 547                                 TRIGGER_LINE(5),
 548                                 TRIGGER_LINE(6),
 549                                 0, /* Termination */
 550                         }
 551                 },
 552                 {
 553                         .dest = NI_DO_PauseTrigger,
 554                         .src = (int[]){
 555                                 NI_PFI(0),
 556                                 NI_PFI(1),
 557                                 NI_PFI(2),
 558                                 NI_PFI(3),
 559                                 NI_PFI(4),
 560                                 NI_PFI(5),
 561                                 TRIGGER_LINE(0),
 562                                 TRIGGER_LINE(1),
 563                                 TRIGGER_LINE(2),
 564                                 TRIGGER_LINE(3),
 565                                 TRIGGER_LINE(4),
 566                                 TRIGGER_LINE(5),
 567                                 TRIGGER_LINE(6),
 568                                 0, /* Termination */
 569                         }
 570                 },
 571                 { /* Termination of list */
 572                         .dest = 0,
 573                 },
 574         },
 575 };

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