diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-07-06 02:35:58 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-07-06 02:35:58 +0200 |
commit | 7af66933c5687fbba7a6ce3945475086bc67b97e (patch) | |
tree | 398fcd2ec716a4331edefd507ddd7243b949217d /pcilib.h | |
parent | aeb8640bfb36a27cf31945a8b479f833aebf8fdc (diff) | |
download | pcitool-7af66933c5687fbba7a6ce3945475086bc67b97e.tar.gz pcitool-7af66933c5687fbba7a6ce3945475086bc67b97e.tar.bz2 pcitool-7af66933c5687fbba7a6ce3945475086bc67b97e.tar.xz pcitool-7af66933c5687fbba7a6ce3945475086bc67b97e.zip |
Compilation fix
Diffstat (limited to 'pcilib.h')
-rw-r--r-- | pcilib.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -33,14 +33,11 @@ typedef uint8_t pcilib_register_bank_t; /**< Type holding the register bank num typedef uint8_t pcilib_register_bank_addr_t; /**< Type holding the register bank number */ typedef uint8_t pcilib_register_size_t; /**< Type holding the size in bits of the register */ typedef uint32_t pcilib_register_value_t; /**< Type holding the register value */ -typedef uint64_t pcilib_event_id_t; typedef uint8_t pcilib_dma_engine_addr_t; typedef uint8_t pcilib_dma_engine_t; +typedef uint64_t pcilib_event_id_t; typedef uint32_t pcilib_event_t; -typedef int (*pcilib_dma_callback_t)(void *ctx, pcilib_dma_flags_t flags, size_t bufsize, void *buf); -typedef int (*pcilib_event_callback_t)(pcilib_event_t event, pcilib_event_id_t event_id, void *user); - typedef enum { PCILIB_HOST_ENDIAN = 0, PCILIB_LITTLE_ENDIAN, @@ -101,6 +98,9 @@ typedef enum { #define PCILIB_TIMEOUT_INFINITE ((size_t)-1) #define PCILIB_TIMEOUT_IMMEDIATE 0 +typedef int (*pcilib_dma_callback_t)(void *ctx, pcilib_dma_flags_t flags, size_t bufsize, void *buf); +typedef int (*pcilib_event_callback_t)(pcilib_event_t event, pcilib_event_id_t event_id, void *user); + typedef struct { pcilib_register_bank_addr_t addr; |