~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/nios2/include/asm/registers.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-or-later */
  2 /*
  3  * Copyright (C) 2011 Tobias Klauser <tklauser@distanz.ch>
  4  */
  5 
  6 #ifndef _ASM_NIOS2_REGISTERS_H
  7 #define _ASM_NIOS2_REGISTERS_H
  8 
  9 #ifndef __ASSEMBLY__
 10 #include <asm/cpuinfo.h>
 11 #endif
 12 
 13 /* control register numbers */
 14 #define CTL_FSTATUS     0
 15 #define CTL_ESTATUS     1
 16 #define CTL_BSTATUS     2
 17 #define CTL_IENABLE     3
 18 #define CTL_IPENDING    4
 19 #define CTL_CPUID       5
 20 #define CTL_RSV1        6
 21 #define CTL_EXCEPTION   7
 22 #define CTL_PTEADDR     8
 23 #define CTL_TLBACC      9
 24 #define CTL_TLBMISC     10
 25 #define CTL_RSV2        11
 26 #define CTL_BADADDR     12
 27 #define CTL_CONFIG      13
 28 #define CTL_MPUBASE     14
 29 #define CTL_MPUACC      15
 30 
 31 /* access control registers using GCC builtins */
 32 #define RDCTL(r)        __builtin_rdctl(r)
 33 #define WRCTL(r, v)     __builtin_wrctl(r, v)
 34 
 35 /* status register bits */
 36 #define STATUS_PIE      (1 << 0)        /* processor interrupt enable */
 37 #define STATUS_U        (1 << 1)        /* user mode */
 38 #define STATUS_EH       (1 << 2)        /* Exception mode */
 39 
 40 /* estatus register bits */
 41 #define ESTATUS_EPIE    (1 << 0)        /* processor interrupt enable */
 42 #define ESTATUS_EU      (1 << 1)        /* user mode */
 43 #define ESTATUS_EH      (1 << 2)        /* Exception mode */
 44 
 45 /* tlbmisc register bits */
 46 #define TLBMISC_PID_SHIFT       4
 47 #ifndef __ASSEMBLY__
 48 #define TLBMISC_PID_MASK        ((1UL << cpuinfo.tlb_pid_num_bits) - 1)
 49 #endif
 50 #define TLBMISC_WAY_MASK        0xf
 51 #define TLBMISC_WAY_SHIFT       20
 52 
 53 #define TLBMISC_PID     (TLBMISC_PID_MASK << TLBMISC_PID_SHIFT) /* TLB PID */
 54 #define TLBMISC_WE      (1 << 18)       /* TLB write enable */
 55 #define TLBMISC_RD      (1 << 19)       /* TLB read */
 56 #define TLBMISC_WAY     (TLBMISC_WAY_MASK << TLBMISC_WAY_SHIFT) /* TLB way */
 57 
 58 #endif /* _ASM_NIOS2_REGISTERS_H */
 59 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php