Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / ipxe / src / arch / i386 / include / initrd.h
1 #ifndef _INITRD_H
2 #define _INITRD_H
3
4 /** @file
5  *
6  * Initial ramdisk (initrd) reshuffling
7  *
8  */
9
10 FILE_LICENCE ( GPL2_OR_LATER );
11
12 #include <ipxe/uaccess.h>
13
14 /** Minimum alignment for initrds
15  *
16  * Some versions of Linux complain about initrds that are not
17  * page-aligned.
18  */
19 #define INITRD_ALIGN 4096
20
21 /** Minimum free space required to reshuffle initrds
22  *
23  * Chosen to avoid absurdly long reshuffling times
24  */
25 #define INITRD_MIN_FREE_LEN ( 512 * 1024 )
26
27 extern void initrd_reshuffle ( userptr_t bottom );
28 extern int initrd_reshuffle_check ( size_t len, userptr_t bottom );
29
30 #endif /* _INITRD_H */