/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 apps/pio_test.c

  • Committer: Suren A. Chilingaryan
  • Date: 2015-10-22 13:57:59 UTC
  • Revision ID: csa@suren.me-20151022135759-nqs5wowy38tvbw09
Documentation update

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
        exit(1);
61
61
    }
62
62
 
63
 
    bar = pcilib_map_bar(pci, BAR);
 
63
    bar = pcilib_resolve_bar_address(pci, BAR, 0);
64
64
    if (!bar) {
65
65
        pcilib_close(pci);
66
66
        printf("map bar\n");
92
92
 
93
93
    }
94
94
 
95
 
    pcilib_unmap_bar(pci, BAR, bar);
96
95
    pcilib_close(pci);
97
96
}