/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to protocols/property.h

  • Committer: Suren A. Chilingaryan
  • Date: 2015-10-19 13:58:46 UTC
  • Revision ID: csa@suren.me-20151019135846-nz3f6iobifx06xvq
Support computed (property-based) registers

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _PCILIB_PROTOCOL_PROPERTY_H
 
2
#define _PCILIB_PROTOCOL_PROPERTY_H
 
3
 
 
4
#include "pcilib.h"
 
5
#include "version.h"
 
6
#include "model.h"
 
7
 
 
8
int pcilib_property_registers_read(pcilib_t *ctx, pcilib_register_bank_context_t *bank, pcilib_register_addr_t addr, pcilib_register_value_t *value);
 
9
int pcilib_property_registers_write(pcilib_t *ctx, pcilib_register_bank_context_t *bank, pcilib_register_addr_t addr, pcilib_register_value_t value);
 
10
 
 
11
#ifdef _PCILIB_EXPORT_C
 
12
const pcilib_register_protocol_api_description_t pcilib_property_protocol_api =
 
13
    { PCILIB_VERSION, NULL, NULL, pcilib_property_registers_read, pcilib_property_registers_write };
 
14
#endif /* _PCILIB_EXPORT_C */
 
15
 
 
16
#endif /* _PCILIB_PROTOCOL_PROPERTY_H */