From 55255f2ce3a2234850249efcabd9ba32d0a89a9c Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Mon, 19 Oct 2015 15:58:46 +0200 Subject: Support computed (property-based) registers --- pcilib/export.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'pcilib/export.c') diff --git a/pcilib/export.c b/pcilib/export.c index ffb1c4b..8e1a7d2 100644 --- a/pcilib/export.c +++ b/pcilib/export.c @@ -10,13 +10,20 @@ const char *pcilib_data_types[] = { "default", "string", "double", "long" }; #include "protocols/default.h" #include "protocols/software.h" +#include "protocols/property.h" const pcilib_register_protocol_description_t pcilib_protocols[] = { { PCILIB_REGISTER_PROTOCOL_DEFAULT, &pcilib_default_protocol_api, NULL, NULL, "default", "" }, - { PCILIB_REGISTER_PROTOCOL_SOFTWARE, &pcilib_register_software_protocol_api, NULL, NULL, "software_registers", "" }, + { PCILIB_REGISTER_PROTOCOL_SOFTWARE, &pcilib_software_protocol_api, NULL, NULL, "software_registers", "" }, + { PCILIB_REGISTER_PROTOCOL_PROPERTY, &pcilib_property_protocol_api, NULL, NULL, "property_registers", "" }, { 0 } }; +const pcilib_register_bank_description_t pcilib_property_register_bank = + { PCILIB_REGISTER_BANK_PROPERTY, PCILIB_REGISTER_PROTOCOL_PROPERTY, PCILIB_BAR_NOBAR, 0, 0, 32, 0, PCILIB_HOST_ENDIAN, PCILIB_HOST_ENDIAN, "%lu", "property", "Computed registers interfacing properties"}; + + + #include "dma/nwl.h" #include "dma/ipe.h" -- cgit v1.2.3