diff options
author | Liu Aleaxander <Aleaxander@gmail.com> | 2009-05-11 04:48:26 +0800 |
---|---|---|
committer | Liu Aleaxander <Aleaxander@gmail.com> | 2009-05-11 04:48:26 +0800 |
commit | c884bf85b74b87db27359b4de22ccaf06a6ba933 (patch) | |
tree | f531bbee81452b26f79dded76e1dd66d5a01c58a /cache.h | |
download | devel-c884bf85b74b87db27359b4de22ccaf06a6ba933.tar.gz devel-c884bf85b74b87db27359b4de22ccaf06a6ba933.tar.xz devel-c884bf85b74b87db27359b4de22ccaf06a6ba933.zip |
The first version of v0.1
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -0,0 +1,30 @@ +#ifndef _CACHE_H +#define _CACHE_H + +#include "types.h" + + +#define CACHE_ENTRIES 0x04 /* just a test */ + + + +/* The cache structure */ +struct cache_struct { + /* + * This structure is based on secotr and I am thinking + * if we should make it based on block for performace. + */ + __u32 sector; + struct cache_struct *prev; + struct cache_struct *next; + void *data; +}; + + + +/* functions defined in cache.c */ +void cache_init(void); + +struct cache_struct *get_cache_sector( int ); + +#endif /* cache.h */ |