/* * Copyright (c) 2007-2017 Allwinnertech Co., Ltd. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ #ifndef __DE_TR_H__ #define __DE_TR_H__ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "asm-generic/int-ll64.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int de_tr_set_base(uintptr_t reg_base); int de_tr_irq_enable(void); int de_tr_irq_query(void); int de_tr_init(void); int de_tr_exit(void); int de_tr_set_cfg(tr_info *info); int de_tr_reset(void); int de_tr_exception(void); unsigned int sunxi_tr_request(void); int sunxi_tr_release(unsigned int id); int sunxi_tr_commit(unsigned int id, tr_info *info); int sunxi_tr_query(unsigned int id); int sunxi_tr_set_timeout(unsigned int id, unsigned long timeout /* ms */); #endif