From f82813bfa40193aec07e013b029eec6dc092ecdd Mon Sep 17 00:00:00 2001 From: zilio nicolas Date: Wed, 1 Jul 2015 16:18:45 +0200 Subject: registers and banks support in xml v1. pci -ll works fine, but got segfault on pci -r name and pci -r name gives 0 always. might be due to the order in pci.c ------> ask suren --- pcilib/xml.h | 208 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 208 insertions(+) create mode 100644 pcilib/xml.h (limited to 'pcilib/xml.h') diff --git a/pcilib/xml.h b/pcilib/xml.h new file mode 100644 index 0000000..da540b5 --- /dev/null +++ b/pcilib/xml.h @@ -0,0 +1,208 @@ +/** + * @file xml.h + * @version 1.0 + * @brief header file to support of xml configuration. + * + * @details this file is the header file for the implementation of dynamic registers using xml and several funtionalities for the "pci-tool" line command tool from XML files. the xml part has been implemented using libxml2. + * + * this code was meant to be evolutive as the XML files evolute. In this meaning, most of the xml parsing is realized with XPath expressions(when it was possible), so that changing the xml xould result mainly in changing the XPAth pathes present here. + * @todo cf compilation chain + */ + +#ifndef _XML_ +#define _XML_ + +//#include +//#include +//#include +//#include + +#include +#include +#include +#include + +#include "pcilib.h" +#include "register.h" +#include "model.h" +#include "bank.h" + +//#include + +#define REGISTERS_PATH ((xmlChar*)"/model/banks/bank/registers/register") /**