Rewrite resource subsystem
This commit is contained in:
19
include/m/resource_buffer.h
Normal file
19
include/m/resource_buffer.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef _M_RESOURCE_BUFFER_H
|
||||
#define _M_RESOURCE_BUFFER_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
struct resource_buffer_mem {
|
||||
uintptr_t paddr;
|
||||
size_t pages;
|
||||
};
|
||||
|
||||
struct resource_buffer {
|
||||
int type;
|
||||
union {
|
||||
struct resource_buffer_mem mem;
|
||||
} u;
|
||||
};
|
||||
|
||||
#endif // _M_RESOURCE_BUFFER_H
|
||||
Reference in New Issue
Block a user