/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to pcitool/cli.c

  • Committer: Suren A. Chilingaryan
  • Date: 2015-09-10 03:08:04 UTC
  • mfrom: (277.2.17 test_xml)
  • Revision ID: csa@suren.me-20150910030804-djti3wcmk4yubhp7
Initial integration of XML support

Show diffs side-by-side

added added

removed removed

Lines of Context:
3132
3132
        else Usage(argc, argv, "The %i data values is specified, but %i required", argc - optind, size);
3133
3133
     case MODE_READ:
3134
3134
        if (!addr) {
3135
 
            if (((!dma_info)||(!dma_info->api))&&(!model_info->api)) {
 
3135
            if (((!dma_info)||(!dma_info->api))&&(!model_info->api)&&(!handle->num_reg)) {
3136
3136
//          if (model == PCILIB_MODEL_PCI) {
3137
3137
                if ((amode != ACCESS_DMA)&&(amode != ACCESS_CONFIG)) 
3138
3138
                    Usage(argc, argv, "The address is not specified");