summaryrefslogtreecommitdiffstats
path: root/register.h
diff options
context:
space:
mode:
Diffstat (limited to 'register.h')
-rw-r--r--register.h11
1 files changed, 11 insertions, 0 deletions
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 */