aboutsummaryrefslogtreecommitdiffstats
path: root/cache.h
diff options
context:
space:
mode:
authorLiu Aleaxander <Aleaxander@gmail.com>2009-05-11 04:48:26 +0800
committerLiu Aleaxander <Aleaxander@gmail.com>2009-05-11 04:48:26 +0800
commitc884bf85b74b87db27359b4de22ccaf06a6ba933 (patch)
treef531bbee81452b26f79dded76e1dd66d5a01c58a /cache.h
downloaddevel-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.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/cache.h b/cache.h
new file mode 100644
index 0000000..33e07b6
--- /dev/null
+++ b/cache.h
@@ -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 */