/* SPDX-License-Identifier: GPL-2.0 */12#ifndef __ASM_CSKY_TCM_H3#define __ASM_CSKY_TCM_H45#ifndef CONFIG_HAVE_TCM6#error "You should not be including tcm.h unless you have a TCM!"7#endif89#include <linux/compiler.h>1011/* Tag variables with this */12#define __tcmdata __section(".tcm.data")13/* Tag constants with this */14#define __tcmconst __section(".tcm.rodata")15/* Tag functions inside TCM called from outside TCM with this */16#define __tcmfunc __section(".tcm.text") noinline17/* Tag function inside TCM called from inside TCM with this */18#define __tcmlocalfunc __section(".tcm.text")1920void *tcm_alloc(size_t len);21void tcm_free(void *addr, size_t len);2223#endif242526