From 5a7bcf11b8e3168900a75e7cbf3b1e18f424d271 Mon Sep 17 00:00:00 2001 From: zilio nicolas Date: Tue, 7 Jul 2015 14:03:39 +0200 Subject: some modif --- protocols/default.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'protocols') 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; } -- cgit v1.2.3