drm/rockchip: Don't change hdmi reference clock rate
[drm/drm-misc.git] / arch / loongarch / include / asm / set_memory.h
blob55dfaefd02c8a6952ec59e70df5205fad77d0aba
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (C) 2024 Loongson Technology Corporation Limited
4 */
6 #ifndef _ASM_LOONGARCH_SET_MEMORY_H
7 #define _ASM_LOONGARCH_SET_MEMORY_H
9 /*
10 * Functions to change memory attributes.
12 int set_memory_x(unsigned long addr, int numpages);
13 int set_memory_nx(unsigned long addr, int numpages);
14 int set_memory_ro(unsigned long addr, int numpages);
15 int set_memory_rw(unsigned long addr, int numpages);
17 bool kernel_page_present(struct page *page);
18 int set_direct_map_default_noflush(struct page *page);
19 int set_direct_map_invalid_noflush(struct page *page);
20 int set_direct_map_valid_noflush(struct page *page, unsigned nr, bool valid);
22 #endif /* _ASM_LOONGARCH_SET_MEMORY_H */