summaryrefslogtreecommitdiffstats
path: root/pcilib/xml.c
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 /pcilib/xml.c
parentc4f209458c5caa00f8d67033224458c78c374adc (diff)
downloadpcitool-5a7bcf11b8e3168900a75e7cbf3b1e18f424d271.tar.gz
pcitool-5a7bcf11b8e3168900a75e7cbf3b1e18f424d271.tar.bz2
pcitool-5a7bcf11b8e3168900a75e7cbf3b1e18f424d271.tar.xz
pcitool-5a7bcf11b8e3168900a75e7cbf3b1e18f424d271.zip
some modif
Diffstat (limited to 'pcilib/xml.c')
-rw-r--r--pcilib/xml.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/pcilib/xml.c b/pcilib/xml.c
index a9be502..205b563 100644
--- a/pcilib/xml.c
+++ b/pcilib/xml.c
@@ -306,8 +306,12 @@ void pcilib_xml_create_bank(pcilib_register_bank_description_t *mybank,xmlChar*
if(strcmp((char*)bar,"0")==0){
mybank->bar=PCILIB_BAR0;
- }else if(strcmp((char*)bar,"ipecamera_register")==0){
+ }else if(strcmp((char*)bar,"1")==0){
mybank->bar=PCILIB_BAR1;
+ }else if(strcmp((char*)bar,"no_bar")==0){
+ mybank->bar=PCILIB_BAR_NOBAR;
+ }else{
+ mybank->bar=PCILIB_BAR_INVALID;
}
mybank->bar=(pcilib_bar_t)strtol((char*)bar,&ptr,0);
@@ -336,7 +340,7 @@ void pcilib_xml_create_bank(pcilib_register_bank_description_t *mybank,xmlChar*
}else if(strcmp((char*)endianess,"host")==0){
mybank->endianess=PCILIB_HOST_ENDIAN;
}
-
+ mybank->format=(char*)format;
mybank->raw_endianess=mybank->endianess;
mybank->name=(char*)name;