Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
init.cpp
Go to the documentation of this file.
1#include "atapi/atapi.hpp"
2#include "ioforge/ioforge.h"
4
6
9
13
16
18
19 log(mod, "Module Loaded");
20
23 [this](struct ioforge_block_device* dev) {
24 log(mod, "found SATAPI device at %d", dev->port);
25 probe(dev);
26 });
27
28 log(mod, "Device found, calling setup");
29}
static AHCIModule instance
Definition init.cpp:5
void load() override
Definition init.cpp:17
void unload() override
Definition init.cpp:14
ATAPIModule()
Definition init.cpp:7
static ATAPIModule * getInstance()
Definition init.cpp:10
void probe(struct ioforge_block_device *block)
Definition atapi.cpp:45
void foreach_by_type(ioforge_device *node, uint8_t type, T &&callback)
IOForgeBlock(const char *mod)
const char * mod
Definition ioforge.hpp:65
struct ioforge_device * ioforge_get_block_devices_root()
#define log(mod, fmt,...)
Definition ioforge.hpp:12
#define IoForgeModuleConstructor(Class)
Definition ioforge.hpp:7
@ IOFORGE_BLOCK_TYPE_SATAPI