[MIPS] Delete unused prom_getchar implementations.
[linux-2.6/linux-mips.git] / include / asm-mips / bcache.h
blob3646a3f2ed3863240ecd86b97b84de3a4533ab11
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.
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
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);
23 extern void indy_sc_init(void);
24 extern void sni_pcimt_sc_init(void);
26 #ifdef CONFIG_BOARD_SCACHE
28 extern struct bcache_ops *bcops;
30 static inline void bc_enable(void)
32 bcops->bc_enable();
35 static inline void bc_disable(void)
37 bcops->bc_disable();
40 static inline void bc_wback_inv(unsigned long page, unsigned long size)
42 bcops->bc_wback_inv(page, size);
45 static inline void bc_inv(unsigned long page, unsigned long size)
47 bcops->bc_inv(page, size);
50 #else /* !defined(CONFIG_BOARD_SCACHE) */
52 /* Not R4000 / R4400 / R4600 / R5000. */
54 #define bc_enable() do { } while (0)
55 #define bc_disable() do { } while (0)
56 #define bc_wback_inv(page, size) do { } while (0)
57 #define bc_inv(page, size) do { } while (0)
59 #endif /* !defined(CONFIG_BOARD_SCACHE) */
61 #endif /* _ASM_BCACHE_H */