XenevaOS
Loading...
Searching...
No Matches
set_memory.h
Go to the documentation of this file.
1/*
2 * DCL asm/set_memory.h -- cache/RO page attribute calls are accepted and
3 * ignored. drm_gem_shmem_helper.c includes this for mainline's WC/UC
4 * mappings of dumb buffers; DCL has no per-page attribute tracking, and
5 * its write-combine behaviour is a property of the mapping, not the page.
6 */
7#ifndef _DCL_ASM_SET_MEMORY_H
8#define _DCL_ASM_SET_MEMORY_H
9
10static inline int set_memory_wc(unsigned long addr, int numpages)
11{
12 (void)addr; (void)numpages;
13 return 0;
14}
15
16static inline int set_memory_uc(unsigned long addr, int numpages)
17{
18 (void)addr; (void)numpages;
19 return 0;
20}
21
22static inline int set_memory_wb(unsigned long addr, int numpages)
23{
24 (void)addr; (void)numpages;
25 return 0;
26}
27
28static inline int set_memory_x(unsigned long addr, int numpages)
29{
30 (void)addr; (void)numpages;
31 return 0;
32}
33
34static inline int set_memory_ro(unsigned long addr, int numpages)
35{
36 (void)addr; (void)numpages;
37 return 0;
38}
39
40static inline int set_memory_rw(unsigned long addr, int numpages)
41{
42 (void)addr; (void)numpages;
43 return 0;
44}
45
46#endif /* _DCL_ASM_SET_MEMORY_H */