From 430ccdbcb9155c6f3f73451047ee70f4f10f7ae5 Mon Sep 17 00:00:00 2001 From: Gurkirpal Singh Date: Sat, 20 Jan 2018 06:06:59 +0530 Subject: st/omx/tizonia: Add entrypoint Adds base files for adding components Acked-by: Leo Liu Reviewed-by: Julien Isorce --- src/gallium/state_trackers/omx/meson.build | 4 ++- .../state_trackers/omx/tizonia/Makefile.sources | 4 ++- .../state_trackers/omx/tizonia/entrypoint.c | 37 ++++++++++++++++++++++ .../state_trackers/omx/tizonia/entrypoint.h | 35 ++++++++++++++++++++ 4 files changed, 78 insertions(+), 2 deletions(-) create mode 100644 src/gallium/state_trackers/omx/tizonia/entrypoint.c create mode 100644 src/gallium/state_trackers/omx/tizonia/entrypoint.h (limited to 'src') diff --git a/src/gallium/state_trackers/omx/meson.build b/src/gallium/state_trackers/omx/meson.build index 40f7284032a..f6690222190 100644 --- a/src/gallium/state_trackers/omx/meson.build +++ b/src/gallium/state_trackers/omx/meson.build @@ -28,7 +28,9 @@ files_omx = files( 'bellagio/vid_enc.c' ) elif gallium_omx == 'tizonia' -files_omx = files() +files_omx = files( + 'tizonia/entrypoint.c', +) endif libomx_st = static_library( diff --git a/src/gallium/state_trackers/omx/tizonia/Makefile.sources b/src/gallium/state_trackers/omx/tizonia/Makefile.sources index 9103ca899db..de6fcf926bd 100644 --- a/src/gallium/state_trackers/omx/tizonia/Makefile.sources +++ b/src/gallium/state_trackers/omx/tizonia/Makefile.sources @@ -1 +1,3 @@ -C_SOURCES := +C_SOURCES := \ + entrypoint.c \ + entrypoint.h diff --git a/src/gallium/state_trackers/omx/tizonia/entrypoint.c b/src/gallium/state_trackers/omx/tizonia/entrypoint.c new file mode 100644 index 00000000000..c89bdfdb10a --- /dev/null +++ b/src/gallium/state_trackers/omx/tizonia/entrypoint.c @@ -0,0 +1,37 @@ +/************************************************************************** + * + * Copyright 2013 Advanced Micro Devices, Inc. + * All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sub license, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice (including the + * next paragraph) shall be included in all copies or substantial portions + * of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. + * IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR + * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + **************************************************************************/ + +#include +#include +#include + +#include "entrypoint.h" + +OMX_ERRORTYPE OMX_ComponentInit (OMX_HANDLETYPE ap_hdl) +{ + return OMX_ErrorNone; +} diff --git a/src/gallium/state_trackers/omx/tizonia/entrypoint.h b/src/gallium/state_trackers/omx/tizonia/entrypoint.h new file mode 100644 index 00000000000..740a89dbffc --- /dev/null +++ b/src/gallium/state_trackers/omx/tizonia/entrypoint.h @@ -0,0 +1,35 @@ +/************************************************************************** + * + * Copyright 2013 Advanced Micro Devices, Inc. + * All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sub license, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice (including the + * next paragraph) shall be included in all copies or substantial portions + * of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS + * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. + * IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR + * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + **************************************************************************/ + +#ifndef OMX_TIZ_ENTRYPOINT_H +#define OMX_TIZ_ENTRYPOINT_H + +#include "vl/vl_winsys.h" + +PUBLIC OMX_ERRORTYPE OMX_ComponentInit(OMX_HANDLETYPE ap_hdl); + +#endif -- cgit v1.2.3