aboutsummaryrefslogtreecommitdiffstats
path: root/cache.h
blob: 33e07b68609be3abb4ffb4cb38d9ea9b339e8edc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 */