aboutsummaryrefslogtreecommitdiff
path: root/include/libfdt.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-08-04 20:50:41 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2023-08-04 20:50:41 +0300
commite16f5f81dfb2e97a554ec19b941ec05a7942fd2d (patch)
tree46f0609b5be009d4d1057fa02ece4461732941e0 /include/libfdt.h
parent5f30284181fcfe5b16dfb94d4fba9a9ed4a2dc6a (diff)
downloadkmi-e16f5f81dfb2e97a554ec19b941ec05a7942fd2d.tar.gz
kmi-e16f5f81dfb2e97a554ec19b941ec05a7942fd2d.zip
add initial smp bringup
Diffstat (limited to 'include/libfdt.h')
-rw-r--r--include/libfdt.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/include/libfdt.h b/include/libfdt.h
index 58173f9..c603840 100644
--- a/include/libfdt.h
+++ b/include/libfdt.h
@@ -35,15 +35,6 @@ struct cell_info {
*/
struct cell_info get_cellinfo(const void *fdt, const int offset);
-/**
- * Get information about a register.
- *
- * @param fdt Pointer to the global fdt.
- * @param path Path to be searched.
- * @return Register information.
- */
-struct cell_info get_reginfo(const void *fdt, const char *path);
-
#if defined(DEBUG)
/**
* Print FDT node at specified location.
@@ -89,7 +80,7 @@ void __dbg_fdt(const void *fdt, int node_offset, int depth);
* Load int{32,64} from FDT at location specified by pointer.
*
* @param c Size of int, where 2 == int64 and everything else int32. Query int
- * size from FDT with \ref get_cellinfo() and \ref get_reginfo().
+ * size from FDT with \ref get_cellinfo().
* @param p Pointer to int{32,64} inside the global FDT.
* @return Value of integer at location p.
*/
@@ -105,7 +96,8 @@ void __dbg_fdt(const void *fdt, int node_offset, int depth);
* @param i Index of address to read.
* @return Address in reg cell.
*/
-static inline fdt64_t fdt_load_reg_addr(struct cell_info ci, void *p, size_t i)
+static inline fdt64_t fdt_load_reg_addr(struct cell_info ci, const void *p,
+ size_t i)
{
hard_assert(ci.addr_cells == 2 || ci.addr_cells == 1, 0);
size_t offset = i * (ci.addr_cells + ci.size_cells) * sizeof(fdt32_t);
@@ -121,7 +113,8 @@ static inline fdt64_t fdt_load_reg_addr(struct cell_info ci, void *p, size_t i)
* @param i Index of size to read.
* @return Size in reg cell.
*/
-static inline fdt64_t fdt_load_reg_size(struct cell_info ci, void *p, size_t i)
+static inline fdt64_t fdt_load_reg_size(struct cell_info ci, const void *p,
+ size_t i)
{
hard_assert(ci.size_cells == 2 || ci.size_cells == 1, 0);
size_t offset = i * (ci.addr_cells + ci.size_cells) * sizeof(fdt32_t);