WIP 2
This commit is contained in:
14
kernel/dev/dev.h
Normal file
14
kernel/dev/dev.h
Normal file
@ -0,0 +1,14 @@
|
||||
#ifndef DEV_DEV_H_
|
||||
#define DEV_DEV_H_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#define DEV_FNS_MAX 32
|
||||
|
||||
typedef int32_t (*DevFn)(uint8_t *buffer, size_t len, void *extra);
|
||||
|
||||
typedef struct {
|
||||
DevFn fns[DEV_FNS_MAX];
|
||||
} Dev;
|
||||
|
||||
#endif // DEV_DEV_H_
|
Reference in New Issue
Block a user