aboutsummaryrefslogtreecommitdiffstats
path: root/cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/cache.h b/cache.h
index 33e07b6..4b3abc6 100644
--- a/cache.h
+++ b/cache.h
@@ -4,17 +4,13 @@
#include "types.h"
-#define CACHE_ENTRIES 0x04 /* just a test */
+#define CACHE_ENTRIES 0x064 /* 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;
+ __u32 block;
struct cache_struct *prev;
struct cache_struct *next;
void *data;
@@ -25,6 +21,6 @@ struct cache_struct {
/* functions defined in cache.c */
void cache_init(void);
-struct cache_struct *get_cache_sector( int );
+struct cache_struct *get_cache_block(__u32 block);
#endif /* cache.h */