blob: 9c7a9dec51ee2cba7cd56bf7a5386661cfc34ffd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef INITRD_H_
#define INITRD_H_
#include <stdint.h>
typedef struct
{
char signature[8];
} __attribute__ ((packed)) initrd_header;
typedef struct
{
char name[16];
uint8_t unused[32];
char size[10];
char sig[2];
} __attribute__ ((packed)) initrd_file;
uint8_t initrd_validate(void);
char *initrd_getfile(const char *name);
uint32_t initrd_getfilesize(const char *name);
#endif // INITRD_H_
|