summaryrefslogtreecommitdiffstats
path: root/src/include/buffer.h
diff options
context:
space:
mode:
authorMichael Brown2005-05-09 12:11:11 +0200
committerMichael Brown2005-05-09 12:11:11 +0200
commitef05a27f25485062e9f57816f7fd71af972f08bb (patch)
tree889b1558746a181f923bd60361bbb0c206b2667c /src/include/buffer.h
parentMake vga_font const to avoid warning about large symbol (diff)
downloadipxe-ef05a27f25485062e9f57816f7fd71af972f08bb.tar.gz
ipxe-ef05a27f25485062e9f57816f7fd71af972f08bb.tar.xz
ipxe-ef05a27f25485062e9f57816f7fd71af972f08bb.zip
Start of an implementation using doubly-linked lists and virtual
addresses. This will have to be reworked to use physical addresses thanks to the PXE spec.
Diffstat (limited to 'src/include/buffer.h')
-rw-r--r--src/include/buffer.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/buffer.h b/src/include/buffer.h
new file mode 100644
index 00000000..3c99bdef
--- /dev/null
+++ b/src/include/buffer.h
@@ -0,0 +1,16 @@
+#ifndef BUFFER_H
+#define BUFFER_H
+
+struct buffer_free_block {
+ struct buffer_free_block *next;
+ struct buffer_free_block *prev;
+ void *end;
+};
+
+struct buffer {
+ struct buffer_free_block free_blocks;
+ void *start;
+ void *end;
+};
+
+#endif /* BUFFER_H */