^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef __MMU_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define __MMU_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) * Type for a context number. We declare it volatile to ensure proper
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) * ordering when it's accessed outside of spinlock'd critical sections
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) * (e.g., as done in activate_mm() and init_new_context()).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) typedef volatile unsigned long mm_context_t;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) typedef unsigned long nv_mm_context_t;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #endif