/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: Vasilii Chernov
  • Date: 2016-02-09 16:32:11 UTC
  • mto: This revision was merged to the branch mainline in revision 353.
  • Revision ID: vchernov@inr.ru-20160209163211-j56vrnez4sbt9r1o
Add write_register python wrap. Add no_set_check attribute to pcilib_view_t type

Show diffs side-by-side

added added

removed removed

Lines of Context:
1702
1702
        if ((model_info->registers[regid].mode&PCILIB_REGISTER_RW) == PCILIB_REGISTER_RW) {
1703
1703
            const char *format = (val.format?val.format:"%u");
1704
1704
            
 
1705
            
1705
1706
            err = pcilib_read_register(handle, bank, reg, &verify);
1706
1707
            if (err) Error("Error reading back register %s for verification\n", reg);
1707
 
    
1708
 
            if (verify != value) {
 
1708
                
 
1709
            if (!((model_info->registers[regid].mode&PCILIB_REGISTER_NO_CHK) ==  PCILIB_REGISTER_NO_CHK) && 
 
1710
                verify != value) {
1709
1711
                Error("Failed to write register %s: %lu is written and %lu is read back", reg, value, verify);
1710
1712
            } else {
1711
1713
                printf("%s = ", reg);