From e407b8dc73e1bb9c2f5cad4dedf255ca431b1f06 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 25 Feb 2020 22:57:26 -0500 Subject: driver: internals: added tpax_get_driver_anon_map_addr(). --- src/internal/tpax_driver_impl.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/internal/tpax_driver_impl.h b/src/internal/tpax_driver_impl.h index 56c40b2..7e610d0 100644 --- a/src/internal/tpax_driver_impl.h +++ b/src/internal/tpax_driver_impl.h @@ -80,6 +80,15 @@ static inline struct tpax_driver_ctx_impl * tpax_get_driver_ictx( return 0; } +static inline void * tpax_get_driver_anon_map_addr( + const struct tpax_driver_ctx * dctx, + size_t * size) +{ + struct tpax_driver_ctx_impl * ictx = tpax_get_driver_ictx(dctx); + *size = ictx->bufsize; + return ictx->bufaddr; +} + static inline void tpax_driver_set_ectx( const struct tpax_driver_ctx * dctx, const struct tpax_unit_ctx * uctx, -- cgit v1.2.3