summaryrefslogtreecommitdiffstats
path: root/pcilib/pci.c
diff options
context:
space:
mode:
authorzilio nicolas <nicolas.zilio@kit.edu>2015-08-27 11:09:21 +0200
committerzilio nicolas <nicolas.zilio@kit.edu>2015-08-27 11:09:21 +0200
commitd3678e0fcb489eba625347d1209bd8a179153ae0 (patch)
treeec3b968b1290ef2184c1eceb6ed6d9e1dbefc23d /pcilib/pci.c
parent1e5f0b6d5e02c0dc11bedefa92fc3c5bb406845a (diff)
downloadpcitool-d3678e0fcb489eba625347d1209bd8a179153ae0.tar.gz
pcitool-d3678e0fcb489eba625347d1209bd8a179153ae0.tar.bz2
pcitool-d3678e0fcb489eba625347d1209bd8a179153ae0.tar.xz
pcitool-d3678e0fcb489eba625347d1209bd8a179153ae0.zip
put xml nodes pointers for banks and registers in pcilib_t, compil ok
Diffstat (limited to 'pcilib/pci.c')
-rw-r--r--pcilib/pci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pcilib/pci.c b/pcilib/pci.c
index f043257..fa3175d 100644
--- a/pcilib/pci.c
+++ b/pcilib/pci.c
@@ -193,13 +193,13 @@ pcilib_t *pcilib_open(const char *device, const char *model) {
ctx->model = strdup(model?model:"pci");
if(banks){
- pcilib_xml_initialize_banks(doc,banks);
- pcilib_add_register_banks(ctx,number_banks,banks);
+ pcilib_xml_initialize_banks(ctx,doc,banks);
+ pcilib_add_register_banks(ctx,number_banks,banks);
}else pcilib_error("no memory for banks");
if(registers){
- pcilib_xml_initialize_registers(doc,registers);
- pcilib_xml_arrange_registers(registers,number_registers);
+ pcilib_xml_initialize_registers(ctx,doc,registers);
+ pcilib_xml_arrange_registers(registers,number_registers);
pcilib_add_registers(ctx,number_registers,registers);
}else pcilib_error("no memory for registers");