blob: d3b3d6f8d37ed5b2b229fdbc758b3e8ff6004789 [file] [log] [blame]
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
*/
struct dma_fence;
void *aml_sync_create_timeline(const char *tname);
int aml_sync_create_fence(void *timeline, unsigned int value);
int aml_sync_inc_timeline(void *timeline, unsigned int value);
struct dma_fence *aml_sync_get_fence(int syncfile_fd);
int aml_sync_wait_fence(struct dma_fence *syncfile, long timeout);
void aml_sync_put_fence(struct dma_fence *syncfile);