summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@imgtec.com>2016-05-17 07:43:25 +0100
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2016-05-25 23:13:38 +0200
commit49717b18be6760cc560767ed3a0c72ecfd3cb076 (patch)
tree18f7134fc6413b68b4548b0572bf24a12794423b
parent0a222d53d81cbd4f7a440a6f83e243a7b4e80544 (diff)
downloadu-boot-imx-49717b18be6760cc560767ed3a0c72ecfd3cb076.zip
u-boot-imx-49717b18be6760cc560767ed3a0c72ecfd3cb076.tar.gz
u-boot-imx-49717b18be6760cc560767ed3a0c72ecfd3cb076.tar.bz2
fdt: Document the rest of struct of_bus
Provide some documentation for the fields of struct of_bus, for consistency with that provided for the new match field. Signed-off-by: Paul Burton <paul.burton@imgtec.com> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--common/fdt_support.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/common/fdt_support.c b/common/fdt_support.c
index 96b5d0a..5d8eb12 100644
--- a/common/fdt_support.c
+++ b/common/fdt_support.c
@@ -966,10 +966,29 @@ static void of_dump_addr(const char *s, const fdt32_t *addr, int na) { }
/**
* struct of_bus - Callbacks for bus specific translators
+ * @name: A string used to identify this bus in debug output.
+ * @addresses: The name of the DT property from which addresses are
+ * to be read, typically "reg".
* @match: Return non-zero if the node whose parent is at
* parentoffset in the FDT blob corresponds to a bus
* of this type, otherwise return zero. If NULL a match
* is assumed.
+ * @count_cells:Count how many cells (be32 values) a node whose parent
+ * is at parentoffset in the FDT blob will require to
+ * represent its address (written to *addrc) & size
+ * (written to *sizec).
+ * @map: Map the address addr from the address space of this
+ * bus to that of its parent, making use of the ranges
+ * read from DT to an array at range. na and ns are the
+ * number of cells (be32 values) used to hold and address
+ * or size, respectively, for this bus. pna is the number
+ * of cells used to hold an address for the parent bus.
+ * Returns the address in the address space of the parent
+ * bus.
+ * @translate: Update the value of the address cells at addr within an
+ * FDT by adding offset to it. na specifies the number of
+ * cells used to hold the address being translated. Returns
+ * zero on success, non-zero on error.
*
* Each bus type will include a struct of_bus in the of_busses array,
* providing implementations of some or all of the functions used to