From ef05a27f25485062e9f57816f7fd71af972f08bb Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 9 May 2005 10:11:11 +0000 Subject: 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. --- src/include/buffer.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/include/buffer.h (limited to 'src/include') diff --git a/src/include/buffer.h b/src/include/buffer.h new file mode 100644 index 000000000..3c99bdefb --- /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 */ -- cgit v1.2.3-55-g7522