mem: improve device memory mapping

MMIO ports will no longer directly map to HHDM addresses and will need
to be searched for in the memory mapping tree
This commit is contained in:
Michael Shaw 2023-10-24 22:16:33 -04:00
commit 4dc4f07dc6
10 changed files with 111 additions and 16 deletions

View file

@ -25,11 +25,15 @@ struct rbnode {
struct rbtree {
struct rbnode *root;
spinlock_t lock;
size_t num_nodes;
};
struct rbnode *rbt_insert(struct rbtree *tree, uint64_t key);
void rbt_delete(struct rbtree *tree, struct rbnode *del);
struct rbnode *rbt_search(struct rbtree *tree, uint64_t key);
struct rbnode *rbt_successor(struct rbnode *node);
void rbt_slab_init();
#endif /* _RBTREE_H_ */