summaryrefslogtreecommitdiffstats
path: root/protocols
diff options
context:
space:
mode:
authorzilio nicolas <nicolas.zilio@kit.edu>2015-07-07 14:03:39 +0200
committerzilio nicolas <nicolas.zilio@kit.edu>2015-07-07 14:03:39 +0200
commit5a7bcf11b8e3168900a75e7cbf3b1e18f424d271 (patch)
tree3a7ed810b913ed6a6adf50f78dce57f1c3e5dd7f /protocols
parentc4f209458c5caa00f8d67033224458c78c374adc (diff)
downloadpcitool-5a7bcf11b8e3168900a75e7cbf3b1e18f424d271.tar.gz
pcitool-5a7bcf11b8e3168900a75e7cbf3b1e18f424d271.tar.bz2
pcitool-5a7bcf11b8e3168900a75e7cbf3b1e18f424d271.tar.xz
pcitool-5a7bcf11b8e3168900a75e7cbf3b1e18f424d271.zip
some modif
Diffstat (limited to 'protocols')
-rw-r--r--protocols/default.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/protocols/default.c b/protocols/default.c
index 5e344cf..dd1da54 100644
--- a/protocols/default.c
+++ b/protocols/default.c
@@ -13,15 +13,18 @@ int pcilib_default_read(pcilib_t *ctx, pcilib_register_bank_context_t *bank_ctx,
pcilib_register_value_t val = 0;
const pcilib_register_bank_description_t *b = bank_ctx->bank;
-
+ printf("bank name %s\n",b->name);
+ printf("bank bar %i\n",b->bar);
+ printf("addr %i\n",addr);
int access = b->access / 8;
-
+ printf("access : %i\n",access);
ptr = pcilib_resolve_register_address(ctx, b->bar, b->read_addr + addr);
+ // printf("ptr %s\n",ptr);
default_datacpy(&val, ptr, access, b);
-
+ printf("val : %i\n",val);
// *value = val&BIT_MASK(bits);
*value = val;
-
+ printf("value : %i\n",*value);
return 0;
}