mirror of
https://github.com/ipxe/ipxe
synced 2025-12-19 11:00:27 +03:00
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.
This commit is contained in:
16
src/include/buffer.h
Normal file
16
src/include/buffer.h
Normal file
@@ -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 */
|
||||
Reference in New Issue
Block a user