X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=UDI%2Finclude%2Fudi_physio.h;h=7023687b5f695ff26de7d0e66167ee91a49410cc;hb=07e446727e54a17327b53928ce8582ba10eec619;hp=f5c3ab1525b50ee858f0a3ca54aa45b2852bb543;hpb=9e64659133d3c12fb6e315ae8de74d9b912f90dd;p=tpg%2Facess2.git diff --git a/UDI/include/udi_physio.h b/UDI/include/udi_physio.h index f5c3ab15..7023687b 100644 --- a/UDI/include/udi_physio.h +++ b/UDI/include/udi_physio.h @@ -6,19 +6,22 @@ #include -//#ifndef UDI_PHYSIO_VERSION -//# error "UDI_PHYSIO_VERSION must be defined" -//#endif +#ifndef UDI_PHYSIO_VERSION +# error "UDI_PHYSIO_VERSION must be defined" +#endif + +#define UDI_DL_PIO_HANDLE_T 200 +#define UDI_DL_DMA_CONSTRAINTS_T 201 // === TYPEDEFS === // DMA Core -typedef _udi_handle_t udi_dma_handle_t; +typedef struct udi_dma_handle_s *udi_dma_handle_t; #define UDI_NULL_DMA_HANDLE _NULL_HANDLE typedef uint64_t udi_busaddr64_t; //!< \note Opaque typedef struct udi_scgth_element_32_s udi_scgth_element_32_t; typedef struct udi_scgth_element_64_s udi_scgth_element_64_t; typedef struct udi_scgth_s udi_scgth_t; -typedef _udi_handle_t udi_dma_constraints_t; +typedef struct udi_dma_constraints_s *udi_dma_constraints_t; #define UDI_NULL_DMA_CONSTRAINTS _NULL_HANDLE /** * \name DMA constraints attributes @@ -66,9 +69,6 @@ typedef udi_ubit8_t udi_dma_constraints_attr_t; */ // DMA Constraints Management typedef struct udi_dma_constraints_attr_spec_s udi_dma_constraints_attr_spec_t; -typedef void udi_dma_constraints_attr_set_call_t( - udi_cb_t *gcb, udi_dma_constraints_t new_constraints, udi_status_t status - ); typedef struct udi_dma_limits_s udi_dma_limits_t; @@ -128,6 +128,4 @@ struct udi_scgth_s #include #include "physio/pio.h" -#include "physio/pci.h" - #endif