static int _get_render_node(int is_master);
-#ifdef TGL_GET_VERSION
-static inline int
-_tgl_get_version(int fd)
-{
- struct tgl_ver_data data;
- int err;
- char buf[STRERR_BUFSIZE];
-
- err = ioctl(fd, TGL_IOCTL_GET_VERSION, &data);
- if (err) {
- TBM_ERR("error(%s) %s:%d\n",
- strerror_r(errno, buf, STRERR_BUFSIZE));
- return 0;
- }
-
- TBM_DBG("tgl version is (%u, %u).\n", data.major, data.minor);
-
- return 1;
-}
-#endif
-
static inline int
_tgl_init(int fd, unsigned int key)
{
}
}
-#ifdef TGL_GET_VERSION
- if (!_tgl_get_version(bufmgr_exynos->tgl_fd)) {
- TBM_ERR("fail to get tgl_version. tgl init failed.\n");
- close(bufmgr_exynos->tgl_fd);
- return 0;
- }
-#endif
-
if (!_tgl_init(bufmgr_exynos->tgl_fd, GLOBAL_KEY)) {
TBM_ERR("fail to initialize the tgl\n");
close(bufmgr_exynos->tgl_fd);