class DevicetreeChosenNodeMatcherBase

Defined at line 270 of file ../../zircon/kernel/phys/lib/boot-shim/include/lib/boot-shim/devicetree.h

This matcher parses the 'chosen' node, which is a child of the root node('/chosen'). This node

contains information about the commandline, ramdisk and UART.

* The cmdline is contained as part of the string block of the devicetree.

* The ramdisk is represented as a range in memory where the firmware loaded it, usually a ZBI.

* The UART on the other hand, is represented as path(which may be aliased). Is the job of this

item to bootstrap the UART, which means determining which drItemiver needs to be used.

For more details on the chosen node please see:

https://devicetree-specification.readthedocs.io/en/latest/chapter3-devicenodes.html#chosen-node

Public Methods

devicetree::ScanState OnNode (const devicetree::NodePath & path, const devicetree::PropertyDecoder & decoder)

Matcher API.

Defined at line 144 of file ../../zircon/kernel/phys/lib/boot-shim/devicetree-chosen-matcher.cc

void DevicetreeChosenNodeMatcherBase (const char * shim_name, FILE * log)

Defined at line 273 of file ../../zircon/kernel/phys/lib/boot-shim/include/lib/boot-shim/devicetree.h

void DevicetreeChosenNodeMatcherBase (const char * shim_name, FILE * log)

Defined at line 273 of file ../../zircon/kernel/phys/lib/boot-shim/include/lib/boot-shim/devicetree.h

devicetree::ScanState OnScan ()

Defined at line 279 of file ../../zircon/kernel/phys/lib/boot-shim/include/lib/boot-shim/devicetree.h

zbitl::ByteView ramdisk ()

Input ramdisk from devicetree.

Defined at line 306 of file ../../zircon/kernel/phys/lib/boot-shim/include/lib/boot-shim/devicetree.h

std::optional<std::string_view> cmdline ()

Command line arguments from devicetree.

Defined at line 309 of file ../../zircon/kernel/phys/lib/boot-shim/include/lib/boot-shim/devicetree.h

std::optional<devicetree::ResolvedPath> stdout_path ()

Resolved path for stdout device(e.g. uart) from the devicetree.

Defined at line 312 of file ../../zircon/kernel/phys/lib/boot-shim/include/lib/boot-shim/devicetree.h

Protected Methods

fit::inline_function<bool (const devicetree::PropertyDecoder &)> & uart_selector ()

Defined at line 315 of file ../../zircon/kernel/phys/lib/boot-shim/include/lib/boot-shim/devicetree.h

void set_uart_config (zbi_dcfg_simple_t * uart_config)

Defined at line 317 of file ../../zircon/kernel/phys/lib/boot-shim/include/lib/boot-shim/devicetree.h