cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

mtk-mutex.h (758B)


      1/* SPDX-License-Identifier: GPL-2.0-only */
      2/*
      3 * Copyright (c) 2015 MediaTek Inc.
      4 */
      5
      6#ifndef MTK_MUTEX_H
      7#define MTK_MUTEX_H
      8
      9struct regmap;
     10struct device;
     11struct mtk_mutex;
     12
     13struct mtk_mutex *mtk_mutex_get(struct device *dev);
     14int mtk_mutex_prepare(struct mtk_mutex *mutex);
     15void mtk_mutex_add_comp(struct mtk_mutex *mutex,
     16			enum mtk_ddp_comp_id id);
     17void mtk_mutex_enable(struct mtk_mutex *mutex);
     18void mtk_mutex_disable(struct mtk_mutex *mutex);
     19void mtk_mutex_remove_comp(struct mtk_mutex *mutex,
     20			   enum mtk_ddp_comp_id id);
     21void mtk_mutex_unprepare(struct mtk_mutex *mutex);
     22void mtk_mutex_put(struct mtk_mutex *mutex);
     23void mtk_mutex_acquire(struct mtk_mutex *mutex);
     24void mtk_mutex_release(struct mtk_mutex *mutex);
     25
     26#endif /* MTK_MUTEX_H */