diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-06-19 17:51:56 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-06-19 17:51:56 +0200 |
commit | 954583ac2ee8ec522a0283e6e3b249345c71a3e7 (patch) | |
tree | cdcef21dc7635ae04f17f4d48355583015267692 /pcilib/bar.c | |
parent | 36385f1e83c7f6dd45954033b91d1871e62005c4 (diff) | |
parent | 907559d880de032deb31aa5e648c11029bbf9cce (diff) | |
download | pcitool-954583ac2ee8ec522a0283e6e3b249345c71a3e7.tar.gz pcitool-954583ac2ee8ec522a0283e6e3b249345c71a3e7.tar.bz2 pcitool-954583ac2ee8ec522a0283e6e3b249345c71a3e7.tar.xz pcitool-954583ac2ee8ec522a0283e6e3b249345c71a3e7.zip |
Integration of software registers
Diffstat (limited to 'pcilib/bar.c')
-rw-r--r-- | pcilib/bar.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pcilib/bar.c b/pcilib/bar.c index a2670c0..ce04f6d 100644 --- a/pcilib/bar.c +++ b/pcilib/bar.c @@ -131,6 +131,9 @@ int pcilib_map_register_space(pcilib_t *ctx) { // uint32_t buf[2]; void *reg_space; pcilib_bar_t bar = banks[i].bar; + + if (bar == PCILIB_BAR_NOBAR) + continue; if (bar == PCILIB_BAR_DETECT) { uintptr_t addr = banks[0].read_addr; |