From d98d86bd6b0d861462698e5bcfc8f712f8e350c7 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 6 Jul 2011 02:10:24 +0200 Subject: Support FIFO reading/writting, code restructurization, few fixes --- register.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 register.h (limited to 'register.h') diff --git a/register.h b/register.h new file mode 100644 index 0000000..1a8daef --- /dev/null +++ b/register.h @@ -0,0 +1,11 @@ +#ifndef _PCILIB_REGISTER_H +#define _PCILIB_REGISTER_H + +#include "pcilib.h" + +struct pcilib_protocol_description_s { + int (*read)(pcilib_t *ctx, pcilib_register_bank_description_t *bank, pcilib_register_addr_t addr, uint8_t bits, pcilib_register_value_t *value); + int (*write)(pcilib_t *ctx, pcilib_register_bank_description_t *bank, pcilib_register_addr_t addr, uint8_t bits, pcilib_register_value_t value); +}; + +#endif /* _PCILIB_REGISTER_H */ -- cgit v1.2.3