mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-06 21:09:18 +00:00
Added filesystem
This commit is contained in:
31
include/filesystem/initrd.hpp
Normal file
31
include/filesystem/initrd.hpp
Normal file
@ -0,0 +1,31 @@
|
||||
#ifndef __FENNIX_KERNEL_FILESYSTEM_INITRD_H__
|
||||
#define __FENNIX_KERNEL_FILESYSTEM_INITRD_H__
|
||||
|
||||
#include <types.h>
|
||||
|
||||
#include <filesystem.hpp>
|
||||
|
||||
namespace FileSystem
|
||||
{
|
||||
class Initrd
|
||||
{
|
||||
public:
|
||||
struct InitrdHeader
|
||||
{
|
||||
uint32_t nfiles;
|
||||
};
|
||||
|
||||
struct InitrdFileHeader
|
||||
{
|
||||
uint8_t magic;
|
||||
char name[64];
|
||||
uint32_t offset;
|
||||
uint32_t length;
|
||||
};
|
||||
|
||||
Initrd(uint64_t Address);
|
||||
~Initrd();
|
||||
};
|
||||
}
|
||||
|
||||
#endif // !__FENNIX_KERNEL_FILESYSTEM_INITRD_H__
|
Reference in New Issue
Block a user