gpio: rcar: Fix runtime PM imbalance on error
[linux/fpc-iii.git] / arch / csky / include / asm / tcm.h
blob2b135cefb73f2f49684cd5e9b92f403740f21a37
1 /* SPDX-License-Identifier: GPL-2.0 */
3 #ifndef __ASM_CSKY_TCM_H
4 #define __ASM_CSKY_TCM_H
6 #ifndef CONFIG_HAVE_TCM
7 #error "You should not be including tcm.h unless you have a TCM!"
8 #endif
10 #include <linux/compiler.h>
12 /* Tag variables with this */
13 #define __tcmdata __section(.tcm.data)
14 /* Tag constants with this */
15 #define __tcmconst __section(.tcm.rodata)
16 /* Tag functions inside TCM called from outside TCM with this */
17 #define __tcmfunc __section(.tcm.text) noinline
18 /* Tag function inside TCM called from inside TCM with this */
19 #define __tcmlocalfunc __section(.tcm.text)
21 void *tcm_alloc(size_t len);
22 void tcm_free(void *addr, size_t len);
24 #endif