]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/bootstrap_custom/server/src/gunzip.h
fiasco: bootstrap: Segments' specifiaction was removed.
[l4.git] / l4 / pkg / bootstrap_custom / server / src / gunzip.h
1 #ifndef __BOOTSTRAP__GUNZIP_H__
2 #define __BOOTSTRAP__GUNZIP_H__
3
4 #include <l4/sys/l4int.h>
5 #include "panic.h"
6
7 typedef enum
8 {
9   ERR_NONE = 0,
10   ERR_BAD_GZIP_DATA,
11   ERR_BAD_GZIP_HEADER,
12
13 } grub_error_t;
14
15 l4_addr_t gunzip_upper_mem_linalloc(void);
16 #define UPPER_MEM_LINALLOC gunzip_upper_mem_linalloc()
17
18 #define RAW_ADDR(x) (x)
19 #define RAW_SEG(x) (x)
20
21 extern unsigned int filepos;
22 extern unsigned int filemax;
23 extern unsigned int fsmax;     /* max size of fs/readable media */
24 extern unsigned int compressed_file;
25 extern grub_error_t errnum;
26
27 /* Read LEN bytes into BUF from the file that was opened with
28    GRUB_OPEN.  If LEN is -1, read all the remaining data in the file.  */
29 int grub_read (unsigned char *buf, int len);
30
31 int gunzip_read (unsigned char *buf, int len);
32 int gunzip_test_header (void);
33
34 void *memmove(void *dest, const void *src, size_t n);
35
36 #endif /* ! __BOOTSTRAP__GUNZIP_H__ */