vbos/include/kernel/device.h
Michael Shaw 1e4b96e6fb device: add DEV_CLASS_BLK
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
2026-07-12 00:01:23 -04:00

21 lines
441 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _DEVICE_H_
#define _DEVICE_H_
#include <kernel/common.h>
#define DEV_CLASS_TTY 1
#define DEV_CLASS_BLK 2
typedef i64 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_ */