Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cache-xsc3l2.c File Reference
#include <linux/init.h>
#include <linux/highmem.h>
#include <asm/cp15.h>
#include <asm/cputype.h>
#include <asm/cacheflush.h>

Go to the source code of this file.

Macros

#define CR_L2   (1 << 26)
 
#define CACHE_LINE_SIZE   32
 
#define CACHE_LINE_SHIFT   5
 
#define CACHE_WAY_PER_SET   8
 
#define CACHE_WAY_SIZE(l2ctype)   (8192 << (((l2ctype) >> 8) & 0xf))
 
#define CACHE_SET_SIZE(l2ctype)   (CACHE_WAY_SIZE(l2ctype) >> CACHE_LINE_SHIFT)
 

Functions

 core_initcall (xsc3_l2_init)
 

Macro Definition Documentation

#define CACHE_LINE_SHIFT   5

Definition at line 28 of file cache-xsc3l2.c.

#define CACHE_LINE_SIZE   32

Definition at line 27 of file cache-xsc3l2.c.

#define CACHE_SET_SIZE (   l2ctype)    (CACHE_WAY_SIZE(l2ctype) >> CACHE_LINE_SHIFT)

Definition at line 32 of file cache-xsc3l2.c.

#define CACHE_WAY_PER_SET   8

Definition at line 29 of file cache-xsc3l2.c.

#define CACHE_WAY_SIZE (   l2ctype)    (8192 << (((l2ctype) >> 8) & 0xf))

Definition at line 31 of file cache-xsc3l2.c.

#define CR_L2   (1 << 26)

Definition at line 25 of file cache-xsc3l2.c.

Function Documentation

core_initcall ( xsc3_l2_init  )