summaryrefslogtreecommitdiffstats
path: root/include/device/initrd.h
blob: eaf315779af26b090686231624bbdc9c083bcc51 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef _JOVE_DEV_INITRD_H
#define _JOVE_DEV_INITRD_H 1

#include <stddef.h>

typedef struct tarHeader
{
    char name[100];
    char mode[8];
    char owner[8];
    char group[8];
    char size[12];
    char modified[12];
    char checksum[8];
    char link;
    char linkname[100];
} tar_header_t;

typedef union tarBlock {
    tar_header_t header;
    char data[512];
} tar_block_t;

void initrd_setup(void);

tar_header_t *initrd_find_file(const char *filename);
int initrd_file_size(tar_header_t *header);

#endif