diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2008-09-16 13:48:51 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-10-11 11:18:52 -0400 |
commit | 384740dc49ea651ba350704d13ff6be9976e37fe (patch) | |
tree | a6e80cad287ccae7a86d81bfa692fc96889c88ed /include/asm-mips/bcache.h | |
parent | e8c7c482347574ecdd45c43e32c332d5fc2ece61 (diff) |
MIPS: Move headfiles to new location below arch/mips/include
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips/bcache.h')
-rw-r--r-- | include/asm-mips/bcache.h | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/include/asm-mips/bcache.h b/include/asm-mips/bcache.h deleted file mode 100644 index 0ba9d6ef76a7..000000000000 --- a/include/asm-mips/bcache.h +++ /dev/null | |||
@@ -1,60 +0,0 @@ | |||
1 | /* | ||
2 | * This file is subject to the terms and conditions of the GNU General Public | ||
3 | * License. See the file "COPYING" in the main directory of this archive | ||
4 | * for more details. | ||
5 | * | ||
6 | * Copyright (c) 1997, 1999 by Ralf Baechle | ||
7 | * Copyright (c) 1999 Silicon Graphics, Inc. | ||
8 | */ | ||
9 | #ifndef _ASM_BCACHE_H | ||
10 | #define _ASM_BCACHE_H | ||
11 | |||
12 | |||
13 | /* Some R4000 / R4400 / R4600 / R5000 machines may have a non-dma-coherent, | ||
14 | chipset implemented caches. On machines with other CPUs the CPU does the | ||
15 | cache thing itself. */ | ||
16 | struct bcache_ops { | ||
17 | void (*bc_enable)(void); | ||
18 | void (*bc_disable)(void); | ||
19 | void (*bc_wback_inv)(unsigned long page, unsigned long size); | ||
20 | void (*bc_inv)(unsigned long page, unsigned long size); | ||
21 | }; | ||
22 | |||
23 | extern void indy_sc_init(void); | ||
24 | |||
25 | #ifdef CONFIG_BOARD_SCACHE | ||
26 | |||
27 | extern struct bcache_ops *bcops; | ||
28 | |||
29 | static inline void bc_enable(void) | ||
30 | { | ||
31 | bcops->bc_enable(); | ||
32 | } | ||
33 | |||
34 | static inline void bc_disable(void) | ||
35 | { | ||
36 | bcops->bc_disable(); | ||
37 | } | ||
38 | |||
39 | static inline void bc_wback_inv(unsigned long page, unsigned long size) | ||
40 | { | ||
41 | bcops->bc_wback_inv(page, size); | ||
42 | } | ||
43 | |||
44 | static inline void bc_inv(unsigned long page, unsigned long size) | ||
45 | { | ||
46 | bcops->bc_inv(page, size); | ||
47 | } | ||
48 | |||
49 | #else /* !defined(CONFIG_BOARD_SCACHE) */ | ||
50 | |||
51 | /* Not R4000 / R4400 / R4600 / R5000. */ | ||
52 | |||
53 | #define bc_enable() do { } while (0) | ||
54 | #define bc_disable() do { } while (0) | ||
55 | #define bc_wback_inv(page, size) do { } while (0) | ||
56 | #define bc_inv(page, size) do { } while (0) | ||
57 | |||
58 | #endif /* !defined(CONFIG_BOARD_SCACHE) */ | ||
59 | |||
60 | #endif /* _ASM_BCACHE_H */ | ||