summaryrefslogtreecommitdiff
path: root/drivers/core/root.c
diff options
context:
space:
mode:
authorJanne Grunau <j@jannau.net>2024-11-11 07:56:33 +0100
committerTom Rini <trini@konsulko.com>2024-11-11 07:26:44 -0600
commitf6999cb554954c9fde2070cd70919d2d714daf64 (patch)
treed83a2aec040884c0b2ca411752a6e74b98b15f33 /drivers/core/root.c
parent174f53d2f2f466f67719c84f24ae49d0ffd5ecc0 (diff)
lmb: Add basic io_lmb functionality
These functions can be used with struct lmb pointers and will be used to manage IOVA space in the apple_dart iommu driver. This restores part of the pointer base struct lmb API from before commit ed17a33fed29 ("lmb: make LMB memory map persistent and global"). io_lmb_add() and io_lmb_free() can trivially reuse exisiting lmb functions. io_lmb_setup() is separate for unique error log messages. io_lmb_alloc() is a simplified copy of _lmb_alloc_base() since the later has unused features and internal use of the global LMB memory map. Signed-off-by: Janne Grunau <j@jannau.net>
Diffstat (limited to 'drivers/core/root.c')
0 files changed, 0 insertions, 0 deletions