2014-09-26 08:46:48 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Copyright (C) 2014 by Amaury Pouly
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
2013-08-21 18:16:26 +00:00
|
|
|
#ifndef __BACKEND_H__
|
|
|
|
#define __BACKEND_H__
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QStringList>
|
|
|
|
#include <QMap>
|
2014-02-03 23:18:51 +00:00
|
|
|
#include <QVector>
|
2014-04-07 09:28:04 +00:00
|
|
|
#include <QMetaType>
|
2016-02-06 15:08:43 +00:00
|
|
|
#include <QAbstractItemModel>
|
2014-02-03 23:18:51 +00:00
|
|
|
#ifdef HAVE_HWSTUB
|
2016-02-07 21:48:40 +00:00
|
|
|
#include "hwstub.hpp"
|
|
|
|
#include "hwstub_usb.hpp"
|
|
|
|
#include "hwstub_uri.hpp"
|
2014-02-03 23:18:51 +00:00
|
|
|
#endif
|
2016-02-06 15:08:43 +00:00
|
|
|
#include "soc_desc.hpp"
|
2014-12-14 10:53:55 +00:00
|
|
|
|
|
|
|
/* we don't want to import the entire soc_desc except for a few selected
|
|
|
|
* pieces */
|
2016-02-06 15:08:43 +00:00
|
|
|
using soc_desc::soc_word_t;
|
|
|
|
using soc_desc::soc_addr_t;
|
|
|
|
using soc_desc::soc_id_t;
|
2013-08-21 18:16:26 +00:00
|
|
|
|
|
|
|
class IoBackend : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2014-02-03 23:18:51 +00:00
|
|
|
IoBackend() {}
|
|
|
|
virtual ~IoBackend() {}
|
2013-08-21 18:16:26 +00:00
|
|
|
|
2014-02-10 22:10:21 +00:00
|
|
|
enum WriteMode
|
|
|
|
{
|
|
|
|
Write, Set, Clear, Toggle
|
|
|
|
};
|
|
|
|
|
2014-09-27 19:23:38 +00:00
|
|
|
/* report whether backend is valid */
|
|
|
|
virtual bool IsValid() = 0;
|
2014-02-09 01:13:53 +00:00
|
|
|
/* get SoC name */
|
2013-08-21 18:16:26 +00:00
|
|
|
virtual QString GetSocName() = 0;
|
2016-02-06 15:08:43 +00:00
|
|
|
/* read a register */
|
|
|
|
virtual bool ReadRegister(soc_addr_t addr, soc_word_t& value, unsigned width) = 0;
|
2014-02-09 01:13:53 +00:00
|
|
|
/* reload content (if it makes sense) */
|
2013-08-21 18:16:26 +00:00
|
|
|
virtual bool Reload() = 0;
|
2014-02-09 01:16:43 +00:00
|
|
|
/* check whether backend supports writing */
|
|
|
|
virtual bool IsReadOnly() = 0;
|
|
|
|
/* write a register by name or address
|
2016-02-06 15:08:43 +00:00
|
|
|
* NOTE: even on a read-only backend, a write is allowed to be successful as long
|
2014-02-09 01:16:43 +00:00
|
|
|
* as commit fails */
|
2016-02-06 15:08:43 +00:00
|
|
|
virtual bool WriteRegister(soc_addr_t addr, soc_word_t value, unsigned width,
|
2014-02-10 22:10:21 +00:00
|
|
|
WriteMode mode = Write) = 0;
|
2014-02-09 01:16:43 +00:00
|
|
|
/* check whether backend contains uncommitted (ie cached) writes */
|
|
|
|
virtual bool IsDirty() = 0;
|
|
|
|
/* commit all writes */
|
|
|
|
virtual bool Commit() = 0;
|
2013-08-21 18:16:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class DummyIoBackend : public IoBackend
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2016-02-06 15:08:43 +00:00
|
|
|
DummyIoBackend();
|
|
|
|
|
|
|
|
virtual bool IsValid();
|
|
|
|
virtual QString GetSocName();
|
|
|
|
virtual bool ReadRegister(soc_addr_t addr, soc_word_t& value, unsigned width);
|
|
|
|
virtual bool Reload();
|
|
|
|
virtual bool IsReadOnly();
|
|
|
|
virtual bool WriteRegister(soc_addr_t addr, soc_word_t value, unsigned width,
|
|
|
|
WriteMode mode);
|
|
|
|
virtual bool IsDirty();
|
|
|
|
virtual bool Commit();
|
2013-08-21 18:16:26 +00:00
|
|
|
};
|
|
|
|
|
2014-09-30 13:51:02 +00:00
|
|
|
/** The RAM backend doesn't have any backend storage and stores all values in
|
|
|
|
* an associative map */
|
|
|
|
class RamIoBackend : public IoBackend
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
RamIoBackend(const QString& soc_name = "");
|
|
|
|
|
2016-02-06 15:08:43 +00:00
|
|
|
virtual bool IsValid();
|
|
|
|
virtual QString GetSocName();
|
|
|
|
virtual void SetSocName(const QString& soc_name);
|
|
|
|
virtual bool ReadRegister(soc_addr_t addr, soc_word_t& value, unsigned width);
|
|
|
|
virtual bool Reload();
|
|
|
|
virtual bool IsReadOnly();
|
|
|
|
virtual bool WriteRegister(soc_addr_t addr, soc_word_t value, unsigned width,
|
|
|
|
WriteMode mode);
|
|
|
|
virtual bool IsDirty();
|
|
|
|
virtual bool Commit();
|
2014-09-30 13:51:02 +00:00
|
|
|
/* clear all entries of the backend */
|
|
|
|
virtual void DeleteAll();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
QString m_soc;
|
2016-02-06 15:08:43 +00:00
|
|
|
QMap< soc_addr_t, soc_word_t > m_map;
|
2014-09-30 13:51:02 +00:00
|
|
|
};
|
|
|
|
|
2014-02-09 01:16:43 +00:00
|
|
|
/** NOTE the File backend makes a difference between writes and commits:
|
|
|
|
* a write will *never* touch the underlying file unless it was committed. */
|
2014-09-30 13:51:02 +00:00
|
|
|
class FileIoBackend : public RamIoBackend
|
2013-08-21 18:16:26 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2014-05-11 17:51:55 +00:00
|
|
|
FileIoBackend(const QString& filename, const QString& soc_name = "");
|
2013-08-21 18:16:26 +00:00
|
|
|
|
2016-02-06 15:08:43 +00:00
|
|
|
virtual bool IsValid();
|
2013-08-21 18:16:26 +00:00
|
|
|
virtual bool Reload();
|
2016-02-06 15:08:43 +00:00
|
|
|
virtual bool IsReadOnly();
|
|
|
|
virtual bool WriteRegister(soc_addr_t addr, soc_word_t value, unsigned width,
|
|
|
|
WriteMode mode);
|
|
|
|
virtual bool IsDirty();
|
2014-02-09 01:16:43 +00:00
|
|
|
virtual bool Commit();
|
2016-02-06 15:08:43 +00:00
|
|
|
QString GetFileName();
|
2013-08-21 18:16:26 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
QString m_filename;
|
2014-02-09 01:16:43 +00:00
|
|
|
bool m_readonly;
|
|
|
|
bool m_dirty;
|
2014-09-27 19:23:38 +00:00
|
|
|
bool m_valid;
|
2013-08-21 18:16:26 +00:00
|
|
|
};
|
|
|
|
|
2014-02-03 23:18:51 +00:00
|
|
|
#ifdef HAVE_HWSTUB
|
2016-02-07 21:48:40 +00:00
|
|
|
/* HWStub context manager: provides a centralized place to add/remove/get
|
|
|
|
* contexts */
|
|
|
|
class HWStubManager : public QAbstractTableModel
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
protected:
|
|
|
|
HWStubManager();
|
|
|
|
public:
|
|
|
|
virtual ~HWStubManager();
|
|
|
|
/* Get manager */
|
|
|
|
static HWStubManager *Get();
|
|
|
|
/* Clear the context list */
|
|
|
|
void Clear();
|
|
|
|
bool Add(const QString& name, const QString& uri);
|
|
|
|
/* Model */
|
|
|
|
virtual int rowCount(const QModelIndex& parent = QModelIndex()) const;
|
|
|
|
virtual int columnCount(const QModelIndex& parent = QModelIndex()) const;
|
|
|
|
virtual QVariant data(const QModelIndex& index, int role) const;
|
|
|
|
virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const;
|
|
|
|
virtual Qt::ItemFlags flags(const QModelIndex& index) const;
|
|
|
|
virtual bool setData(const QModelIndex& index, const QVariant& value, int role);
|
|
|
|
/* return predefined columns */
|
|
|
|
int GetNameColumn() const;
|
|
|
|
int GetUriColumn() const;
|
|
|
|
std::shared_ptr< hwstub::context > GetContext(int row);
|
|
|
|
/* return a friendly name for a device */
|
|
|
|
static QString GetFriendlyName(std::shared_ptr< hwstub::device > device);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
struct Context
|
|
|
|
{
|
|
|
|
std::shared_ptr< hwstub::context > context;
|
|
|
|
QString name;
|
|
|
|
QString uri;
|
|
|
|
};
|
|
|
|
|
|
|
|
std::vector< Context > m_list; /* list of context */
|
|
|
|
static HWStubManager *g_inst; /* unique instance */
|
|
|
|
};
|
|
|
|
|
|
|
|
/* HWStub context model: provides access to the device list using Qt MVC model. */
|
|
|
|
class HWStubContextModel : public QAbstractTableModel
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
HWStubContextModel(QObject *parent = 0);
|
|
|
|
virtual ~HWStubContextModel();
|
|
|
|
void SetContext(std::shared_ptr< hwstub::context > context);
|
|
|
|
/* Model */
|
|
|
|
virtual int rowCount(const QModelIndex& parent = QModelIndex()) const;
|
|
|
|
virtual int columnCount(const QModelIndex& parent = QModelIndex()) const;
|
|
|
|
virtual QVariant data(const QModelIndex& index, int role) const;
|
|
|
|
virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const;
|
|
|
|
virtual Qt::ItemFlags flags(const QModelIndex& index) const;
|
|
|
|
/* return predefined columns */
|
|
|
|
int GetNameColumn() const;
|
|
|
|
std::shared_ptr< hwstub::device > GetDevice(int row);
|
|
|
|
/* Add an entry in the model for "no selection", which will correspond to
|
|
|
|
* a dummy device. This function also allows the text to be customised. */
|
|
|
|
void EnableDummy(bool en, const QString& text = "");
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void OnDevChangeUnsafe(void *data);
|
|
|
|
protected:
|
|
|
|
QString GetFriendlyName(std::shared_ptr< hwstub::device > device);
|
|
|
|
void OnDevChangeLow(std::shared_ptr< hwstub::context > ctx, bool arrived,
|
|
|
|
std::shared_ptr< hwstub::device > device);
|
|
|
|
void OnDevChange(std::shared_ptr< hwstub::context > ctx, bool arrived,
|
|
|
|
std::shared_ptr< hwstub::device > device);
|
|
|
|
|
|
|
|
struct Device
|
|
|
|
{
|
|
|
|
QString name;
|
|
|
|
std::shared_ptr< hwstub::device > device;
|
|
|
|
};
|
|
|
|
|
|
|
|
std::vector< Device > m_list;
|
|
|
|
std::weak_ptr< hwstub::context > m_context;
|
|
|
|
hwstub::context::callback_ref_t m_callback_ref;
|
|
|
|
bool m_has_dummy;
|
|
|
|
QString m_dummy_text;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Abstract Virtual Class from where TCP and USB backend
|
|
|
|
* child classes are derived
|
|
|
|
*/
|
2014-02-03 23:18:51 +00:00
|
|
|
class HWStubDevice
|
|
|
|
{
|
|
|
|
public:
|
2016-02-07 21:48:40 +00:00
|
|
|
HWStubDevice(std::shared_ptr<hwstub::device> device);
|
|
|
|
virtual ~HWStubDevice();
|
|
|
|
|
|
|
|
QString GetFriendlyName();
|
2014-02-03 23:18:51 +00:00
|
|
|
bool IsValid();
|
2016-02-07 21:48:40 +00:00
|
|
|
/* Calls below are cached */
|
2014-02-03 23:18:51 +00:00
|
|
|
inline struct hwstub_version_desc_t GetVersionInfo() { return m_hwdev_ver; }
|
|
|
|
inline struct hwstub_target_desc_t GetTargetInfo() { return m_hwdev_target; }
|
|
|
|
inline struct hwstub_stmp_desc_t GetSTMPInfo() { return m_hwdev_stmp; }
|
2014-05-05 21:18:04 +00:00
|
|
|
inline struct hwstub_pp_desc_t GetPPInfo() { return m_hwdev_pp; }
|
2016-02-07 21:48:40 +00:00
|
|
|
inline struct hwstub_jz_desc_t GetJZInfo() { return m_hwdev_jz; }
|
2014-02-03 23:18:51 +00:00
|
|
|
bool ReadMem(soc_addr_t addr, size_t length, void *buffer);
|
2014-02-09 01:16:43 +00:00
|
|
|
bool WriteMem(soc_addr_t addr, size_t length, void *buffer);
|
2014-02-03 23:18:51 +00:00
|
|
|
|
|
|
|
protected:
|
2016-02-07 21:48:40 +00:00
|
|
|
bool Probe(std::shared_ptr<hwstub::device> device);
|
2014-02-03 23:18:51 +00:00
|
|
|
|
2016-02-07 21:48:40 +00:00
|
|
|
std::shared_ptr<hwstub::handle> m_handle;
|
2014-02-03 23:18:51 +00:00
|
|
|
bool m_valid;
|
|
|
|
struct hwstub_device_t *m_hwdev;
|
|
|
|
struct hwstub_version_desc_t m_hwdev_ver;
|
|
|
|
struct hwstub_target_desc_t m_hwdev_target;
|
|
|
|
struct hwstub_stmp_desc_t m_hwdev_stmp;
|
2014-05-05 21:18:04 +00:00
|
|
|
struct hwstub_pp_desc_t m_hwdev_pp;
|
2016-02-07 21:48:40 +00:00
|
|
|
struct hwstub_jz_desc_t m_hwdev_jz;
|
|
|
|
QString m_name;
|
2014-02-03 23:18:51 +00:00
|
|
|
};
|
|
|
|
|
2016-02-07 21:48:40 +00:00
|
|
|
/** NOTE the HWStub backend is never dirty: all wrnew ites are immediately committed */
|
2014-02-03 23:18:51 +00:00
|
|
|
class HWStubIoBackend : public IoBackend
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2014-05-11 17:51:55 +00:00
|
|
|
// NOTE: HWStubIoBackend takes ownership of the device and will delete it
|
2014-02-03 23:18:51 +00:00
|
|
|
HWStubIoBackend(HWStubDevice *dev);
|
|
|
|
virtual ~HWStubIoBackend();
|
|
|
|
|
2016-02-06 15:08:43 +00:00
|
|
|
virtual bool IsValid();
|
2014-02-03 23:18:51 +00:00
|
|
|
virtual QString GetSocName();
|
2016-02-06 15:08:43 +00:00
|
|
|
virtual bool ReadRegister(soc_addr_t addr, soc_word_t& value, unsigned width);
|
2014-02-03 23:18:51 +00:00
|
|
|
virtual bool Reload();
|
2016-02-06 15:08:43 +00:00
|
|
|
virtual bool IsReadOnly();
|
|
|
|
virtual bool WriteRegister(soc_addr_t addr, soc_word_t value, unsigned width,
|
|
|
|
WriteMode mode);
|
|
|
|
virtual bool IsDirty();
|
|
|
|
virtual bool Commit();
|
|
|
|
HWStubDevice *GetDevice();
|
2014-02-03 23:18:51 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
QString m_soc;
|
|
|
|
HWStubDevice *m_dev;
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2014-04-07 09:28:04 +00:00
|
|
|
class SocFile
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SocFile();
|
|
|
|
SocFile(const QString& filename);
|
|
|
|
bool IsValid();
|
|
|
|
|
2016-02-06 15:08:43 +00:00
|
|
|
soc_desc::soc_ref_t GetSocRef();
|
2014-04-07 09:28:04 +00:00
|
|
|
QString GetFilename();
|
2016-02-06 15:08:43 +00:00
|
|
|
soc_desc::soc_t& GetSoc() { return m_soc; }
|
2014-04-07 09:28:04 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
bool m_valid;
|
|
|
|
QString m_filename;
|
2016-02-06 15:08:43 +00:00
|
|
|
soc_desc::soc_t m_soc;
|
2014-04-07 09:28:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class SocFileRef
|
2014-02-09 01:13:53 +00:00
|
|
|
{
|
|
|
|
public:
|
2014-04-07 09:28:04 +00:00
|
|
|
SocFileRef():m_socfile(0) {}
|
|
|
|
SocFileRef(SocFile *file):m_socfile(file) {}
|
|
|
|
SocFile *GetSocFile() const { return m_socfile; }
|
|
|
|
|
2014-02-09 01:13:53 +00:00
|
|
|
protected:
|
2014-04-07 09:28:04 +00:00
|
|
|
SocFile *m_socfile;
|
2014-02-09 01:13:53 +00:00
|
|
|
};
|
|
|
|
|
2014-04-07 09:28:04 +00:00
|
|
|
Q_DECLARE_METATYPE(SocFileRef)
|
|
|
|
|
2016-02-06 15:08:43 +00:00
|
|
|
Q_DECLARE_METATYPE(soc_desc::instance_t::type_t)
|
|
|
|
Q_DECLARE_METATYPE(soc_desc::range_t::type_t)
|
2014-04-07 09:28:04 +00:00
|
|
|
|
2016-02-06 15:08:43 +00:00
|
|
|
Q_DECLARE_METATYPE(soc_desc::soc_ref_t)
|
|
|
|
Q_DECLARE_METATYPE(soc_desc::node_ref_t)
|
|
|
|
Q_DECLARE_METATYPE(soc_desc::register_ref_t)
|
|
|
|
Q_DECLARE_METATYPE(soc_desc::field_ref_t)
|
|
|
|
Q_DECLARE_METATYPE(soc_desc::node_inst_t)
|
2014-02-09 01:13:53 +00:00
|
|
|
|
2016-02-06 15:08:43 +00:00
|
|
|
/** NOTE the Backend stores soc descriptions in a way that pointers are never
|
|
|
|
* invalidated */
|
2013-08-21 18:16:26 +00:00
|
|
|
class Backend : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
Backend();
|
|
|
|
|
2014-04-07 09:28:04 +00:00
|
|
|
QList< SocFileRef > GetSocFileList();
|
2016-02-06 15:08:43 +00:00
|
|
|
QList< soc_desc::soc_ref_t > GetSocList();
|
2013-08-21 18:16:26 +00:00
|
|
|
bool LoadSocDesc(const QString& filename);
|
|
|
|
IoBackend *CreateDummyIoBackend();
|
|
|
|
IoBackend *CreateFileIoBackend(const QString& filename);
|
2014-02-03 23:18:51 +00:00
|
|
|
#ifdef HAVE_HWSTUB
|
|
|
|
IoBackend *CreateHWStubIoBackend(HWStubDevice *dev);
|
|
|
|
#endif
|
2013-08-21 18:16:26 +00:00
|
|
|
|
|
|
|
signals:
|
2016-02-06 15:08:43 +00:00
|
|
|
void OnSocAdded(const SocFileRef& ref);
|
|
|
|
|
2013-08-21 18:16:26 +00:00
|
|
|
private:
|
2016-02-06 15:08:43 +00:00
|
|
|
/* store them as a list so that pointers are never invalidated */
|
2014-04-07 09:28:04 +00:00
|
|
|
std::list< SocFile > m_socs;
|
2013-08-21 18:16:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class BackendHelper
|
|
|
|
{
|
|
|
|
public:
|
2016-02-06 15:08:43 +00:00
|
|
|
BackendHelper(IoBackend *io_backend, const soc_desc::soc_ref_t& soc);
|
|
|
|
QString GetPath(const soc_desc::node_inst_t& inst);
|
|
|
|
soc_desc::node_inst_t ParsePath(const QString& path);
|
|
|
|
bool ReadRegister(const soc_desc::node_inst_t& inst, soc_word_t& v);
|
|
|
|
bool ReadRegisterField(const soc_desc::node_inst_t& inst,
|
2013-08-21 18:16:26 +00:00
|
|
|
const QString& field, soc_word_t& v);
|
2016-02-06 15:08:43 +00:00
|
|
|
bool WriteRegister(const soc_desc::node_inst_t& inst, soc_word_t v,
|
2014-02-10 22:10:21 +00:00
|
|
|
IoBackend::WriteMode mode = IoBackend::Write);
|
2016-02-06 15:08:43 +00:00
|
|
|
bool GetRegisterAddress(const soc_desc::node_inst_t& inst, soc_addr_t& addr);
|
2014-09-30 13:51:38 +00:00
|
|
|
/* NOTE: does not commit writes to the backend
|
|
|
|
* if ignore_errors is true, the dump will continue even on errors, and the
|
|
|
|
* function will return false if one or more errors occured */
|
|
|
|
bool DumpAllRegisters(IoBackend *backend, bool ignore_errors = true);
|
|
|
|
bool DumpAllRegisters(const QString& filename, bool ignore_errors = true);
|
2014-05-11 17:51:55 +00:00
|
|
|
|
2016-02-06 15:08:43 +00:00
|
|
|
protected:
|
|
|
|
bool DumpAllRegisters(BackendHelper *bh, const soc_desc::node_inst_t& inst,
|
|
|
|
bool ignore_errors);
|
|
|
|
|
2013-08-21 18:16:26 +00:00
|
|
|
private:
|
|
|
|
IoBackend *m_io_backend;
|
2016-02-06 15:08:43 +00:00
|
|
|
const soc_desc::soc_ref_t& m_soc;
|
2013-08-21 18:16:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __BACKEND_H__ */
|