swissChili | 8efa492 | 2021-03-02 16:34:49 -0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |
swissChili | b3abcd9 | 2021-03-02 20:00:44 -0800 | [diff] [blame] | 3 | #define INITRD_MAGIC 0xaa77dbf6 |
| 4 | |
swissChili | 8efa492 | 2021-03-02 16:34:49 -0800 | [diff] [blame] | 5 | struct initrd_global_header |
| 6 | { |
| 7 | unsigned int magic; |
| 8 | unsigned long num_files; |
| 9 | } __attribute__((packed)); |
| 10 | |
| 11 | struct initrd_file_header |
| 12 | { |
| 13 | char name[64]; |
| 14 | unsigned long size; |
swissChili | c2e62ed | 2021-03-10 17:04:18 -0800 | [diff] [blame] | 15 | } __attribute__((packed)); |
swissChili | 8efa492 | 2021-03-02 16:34:49 -0800 | [diff] [blame] | 16 | |
| 17 | /* that's it! */ |