summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2005-05-09 20:03:44 +0200
committerMichael Brown2005-05-09 20:03:44 +0200
commit73429d6da189f350e509fb1716e26bfa9282a015 (patch)
tree730df16078f7bd9f8bbcf5397002ee6fd6d57523 /src/include
parentInclude string.h, because we need to define copy_{to,from}_phys (diff)
downloadipxe-73429d6da189f350e509fb1716e26bfa9282a015.tar.gz
ipxe-73429d6da189f350e509fb1716e26bfa9282a015.tar.xz
ipxe-73429d6da189f350e509fb1716e26bfa9282a015.zip
Make "struct buffer"s reusable between sessions.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/buffer.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/include/buffer.h b/src/include/buffer.h
index b0de39df..a22b00dd 100644
--- a/src/include/buffer.h
+++ b/src/include/buffer.h
@@ -33,10 +33,12 @@ struct buffer_free_block {
physaddr_t end;
} __attribute__ (( packed ));
+/* This must be provided by the architecture-dependent load_buffer.c */
+extern struct buffer load_buffer;
+
/* Functions in buffer.c */
-extern void init_buffer ( struct buffer *buffer, physaddr_t start,
- size_t len );
+extern void init_buffer ( struct buffer *buffer );
extern int fill_buffer ( struct buffer *buffer, void *data,
off_t offset, size_t len );