v2 initial commit

This commit is contained in:
Michael Shaw 2026-04-11 11:35:31 -04:00
commit d2ef885e8d
118 changed files with 2420 additions and 9320 deletions

19
include/kernel/device.h Normal file
View file

@ -0,0 +1,19 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _DEVICE_H_
#define _DEVICE_H_
#include <kernel/common.h>
typedef u64 dev_t;
typedef u64 dev_class_t;
dev_t device_create(void *private, dev_class_t class, const char *name);
void device_destroy(dev_t device);
dev_class_t device_class(dev_t dev);
void *device_private_info(dev_t dev);
void device_layer_init();
#endif /* _DEVICE_H_ */