devfs initial implementation

This commit is contained in:
Matheus
2022-08-07 16:38:08 -03:00
parent bdc19f90ef
commit 7ec69a219c
6 changed files with 112 additions and 2 deletions
+8
View File
@@ -0,0 +1,8 @@
#ifndef _SYSMACROS_H_INCLUDE
#define _SYSMACROS_H_INCLUDE
#define makedev(major,minor) (((major & 0xFFF) << 8) + (minor & 0xFF))
#define major(dev) ((dev >> 8) & 0xFFF)
#define minor(dev) (dev & 0xFF)
#endif