drm/nouveau: consume the return of large GSP message
[drm/drm-misc.git] / arch / loongarch / include / asm / dmi.h
blob605493417753c8b7a2d482a7ac2bb0a2d2eb62b1
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
4 */
5 #ifndef _ASM_DMI_H
6 #define _ASM_DMI_H
8 #include <linux/io.h>
9 #include <linux/memblock.h>
11 #define dmi_early_remap(x, l) dmi_remap(x, l)
12 #define dmi_early_unmap(x, l) dmi_unmap(x)
13 #define dmi_alloc(l) memblock_alloc(l, PAGE_SIZE)
15 static inline void *dmi_remap(u64 phys_addr, unsigned long size)
17 return ((void *)TO_CACHE(phys_addr));
20 static inline void dmi_unmap(void *addr)
24 #endif /* _ASM_DMI_H */