summaryrefslogtreecommitdiffstats
path: root/contrib/syslinux-4.02/core/include/cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/syslinux-4.02/core/include/cache.h')
-rw-r--r--contrib/syslinux-4.02/core/include/cache.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/syslinux-4.02/core/include/cache.h b/contrib/syslinux-4.02/core/include/cache.h
new file mode 100644
index 0000000..1f451af
--- /dev/null
+++ b/contrib/syslinux-4.02/core/include/cache.h
@@ -0,0 +1,23 @@
+#ifndef _CACHE_H
+#define _CACHE_H
+
+#include <stdint.h>
+#include <com32.h>
+#include "disk.h"
+#include "fs.h"
+
+/* The cache structure */
+struct cache {
+ block_t block;
+ struct cache *prev;
+ struct cache *next;
+ void *data;
+};
+
+/* functions defined in cache.c */
+void cache_init(struct device *, int);
+const void *get_cache(struct device *, block_t);
+struct cache *_get_cache_block(struct device *, block_t);
+void cache_lock_block(struct cache *);
+
+#endif /* cache.h */