From 7af66933c5687fbba7a6ce3945475086bc67b97e Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 6 Jul 2011 02:35:58 +0200 Subject: Compilation fix --- pcilib.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pcilib.h b/pcilib.h index 6b535bf..314cca7 100644 --- a/pcilib.h +++ b/pcilib.h @@ -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; -- cgit v1.2.3