MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / drivers / net / ks8695 / ks8695_cache.h
bloba99dfce087012143ef4d948d3119ee6dec82dade
1 /*
2 Copyright (c) 2002, Micrel Kendin Operations
4 Written 2002 by LIQUN RUAN
6 This software may be used and distributed according to the terms of
7 the GNU General Public License (GPL), incorporated herein by reference.
8 Drivers based on or derived from this code fall under the GPL and must
9 retain the authorship, copyright and license notice. This file is not
10 a complete program and may only be used when the entire operating
11 system is licensed under the GPL.
13 The author may be reached as lruan@kendin.com
14 Micrel Kendin Operations
15 486 Mercury Dr.
16 Sunnyvale, CA 94085
18 This driver is for Kendin's KS8695 SOHO Router Chipset as ethernet driver.
20 Support and updates available at
21 www.kendin.com/ks8695/
24 #ifndef __KS8695_CACHE_H
25 #define __KS8695_CACHE_H
27 #include <linux/types.h>
28 #include <linux/errno.h>
29 #include <linux/kernel.h>
30 #include <linux/string.h>
32 #include "ks8695_drv.h"
34 /* start ICache lockdown at ICACHE_VICTIM_BASE */
35 #define ICACHE_VICTIM_BASE 0
36 #define ICACHE_VICTIM_INDEX 26 /* victim index bit, specific to ARM922T */
37 #define ICACHE_ASSOCITIVITY 64 /* 64-WAY, specific to ARM922T */
38 #define ICACHE_BYTES_PER_LINE 128 /* 8 * 4 * 4, specific to ARM922T */
40 extern void ks8695_icache_change_policy(int bRoundRobin);
41 /*extern int ks8695_icache_lock(void *icache_start, void *icache_end);*/
42 extern void ks8695_icache_unlock(void);
43 extern int ks8695_icache_is_locked(void);
44 extern void ks8695_icache_read_c9(void);
45 void ks8695_power_saving(int bSaving);
46 void ks8695_enable_power_saving(int bEnablePowerSaving);
48 #endif /* __KS8695_CACHE_H */