diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-04-20 22:01:04 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-04-20 22:01:04 +0200 |
commit | 77c4d6e67debf0e729734d882df033c4c0f5b0c3 (patch) | |
tree | 4a59e86332d6cc78fc5c97110ecba281b0f67bc9 /model.h | |
parent | 0002c0cc260a6a8e2b6c53f19ae99a625eca4355 (diff) | |
download | pcitool-77c4d6e67debf0e729734d882df033c4c0f5b0c3.tar.gz pcitool-77c4d6e67debf0e729734d882df033c4c0f5b0c3.tar.bz2 pcitool-77c4d6e67debf0e729734d882df033c4c0f5b0c3.tar.xz pcitool-77c4d6e67debf0e729734d882df033c4c0f5b0c3.zip |
Big redign of model structures
Diffstat (limited to 'model.h')
-rw-r--r-- | model.h | 31 |
1 files changed, 31 insertions, 0 deletions
@@ -0,0 +1,31 @@ +#ifndef _PCILIB_MODEL_H +#define _PCILIB_MODEL_H + +#include <bank.h> +#include <register.h> +#include <dma.h> +#include <event.h> + +typedef struct { + uint8_t access; + pcilib_endianess_t endianess; + + const pcilib_register_description_t *registers; + const pcilib_register_bank_description_t *banks; + const pcilib_register_protocol_description_t *protocols; + const pcilib_register_range_t *ranges; + + const pcilib_event_description_t *events; + const pcilib_event_data_type_description_t *data_types; + + const pcilib_dma_description_t *dma; + const pcilib_event_api_description_t *api; + + const char *name; + const char *description; +} pcilib_model_description_t; + + +const pcilib_model_description_t *pcilib_get_model_description(pcilib_t *ctx); + +#endif /* _PCILIB_MODEL_H */ |