aboutsummaryrefslogtreecommitdiffstats
path: root/cache.h
blob: 24403d2dc778fe57eca9d4bcafb163abebf52855 (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
#ifndef _CACHE_H
#define _CACHE_H

#include "types.h"


#define MAX_CACHE_ENTRIES  0x064 /* I'm not sure it's the max */



/* The cache structure */
struct cache_struct {
        __u32 block;
        struct cache_struct *prev;
        struct cache_struct *next;
        void  *data;
};



/* functions defined in cache.c */
void cache_init(int block_size);

struct cache_struct *get_cache_block(__u32 block);

#endif /* cache.h */