v2 initial commit
This commit is contained in:
parent
2c97dba9f7
commit
d2ef885e8d
118 changed files with 2420 additions and 9320 deletions
19
include/kernel/device.h
Normal file
19
include/kernel/device.h
Normal 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_ */
|
||||
Loading…
Reference in a new issue