drm/ast: Only warn about unsupported TX chips on Gen4 and later
[drm/drm-misc.git] / arch / csky / include / asm / tcm.h
blobbd1e662ecdfaf4f75e6d4e826c01a984d11329a5
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