a cow based x86_64 operating system, using limine and stivale2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
379 B

#pragma once
#include "../lib/string_t.h"
typedef struct driver driver_t;
generic device:
every device should derive from this
typedef struct dev {
unsigned type;
string_t name;
driver_t* driver;
} dev_t;
void register_dev(struct dev*);
// this function does not
// remove the drivers!
// it only free the memory
void free_all_devices(void);