summaryrefslogtreecommitdiffstats
path: root/include/asm-sparc/asi.h
blob: 4a404573d6ee01bf3d820a7684b1730e29f45fb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef _SPARC_ASI_H
#define _SPARC_ASI_H

/* asi.h:  Address Space Identifier values for the sparc.

   Copyright (C) 1994 David S. Miller (davem@caip.rutgers.edu)
*/

/* These are sun4c, beware on other architectures. Although things should
 * be similar under regular sun4's.
 */

#include <linux/config.h>
#ifdef CONFIG_SUN4M
#include "asi4m.h"
#else

#define ASI_NULL1        0x0
#define ASI_NULL2        0x1

/* sun4c and sun4 control registers and mmu/vac ops */
#define ASI_CONTROL          0x2
#define ASI_SEGMAP           0x3
#define ASI_PTE              0x4
#define ASI_HWFLUSHSEG       0x5      /* These are to initiate hw flushes of the cache */
#define ASI_HWFLUSHPAGE      0x6
#define ASI_HWFLUSHCONTEXT   0x7


#define ASI_USERTXT      0x8
#define ASI_KERNELTXT    0x9
#define ASI_USERDATA     0xa
#define ASI_KERNELDATA   0xb

/* VAC Cache flushing on sun4c and sun4 */

#define ASI_FLUSHSEG     0xc      /* These are for "software" flushes of the cache */
#define ASI_FLUSHPG      0xd
#define ASI_FLUSHCTX     0xe


#endif /* CONFIG_SUN4M */
#endif /* _SPARC_ASI_H */