Namespaces
Enumerations
enum class RegisterType : uint8_t
| Name | Value | Comments |
|---|---|---|
| kMmio | 0 |
Default. Parsed by the mmio visitor. |
| kI2c | 1 |
Register used to represent i2c device address. |
| kSpi | 2 |
Register used to represent spi device address. |
| kSpmi | 3 |
Register used to represent spmi target id and device registers (sub target id). |
Represents who provides the `reg` property for this node. This information will be set and used
by the visitors. By default `reg` property of all nodes are considered mmio.
Defined at line 46 of file ../../sdk/lib/driver/devicetree/manager/node.h
Records
-
class BindPropertyVisitor -
class BoardChildNode -
class BoolProperty -
class BootMetadataElement -
class BootMetadataVisitor -
class BtiVisitor -
class ChildNode -
class CompositeNodeSpecInfo -
class DriverHostVisitor -
class DriverVisitor -
class GetPropertyReturn -
class GetPropertyReturn -
class InterruptParser -
class IommuCell -
class Manager -
class ManagerHostTest -
class ManagerHostTest_BasicPropertiesTest_Test -
class ManagerHostTest_SimpleDtbTest_Test -
class MmioVisitor -
class MultiVisitor -
class Node -
class NodeManager -
class ParentNode -
class ParsedProperties -
class PbusNode -
class Property -
class PropertyParser -
class PublisherDev -
class PublisherHost -
class PublisherInterface -
class Reference -
class ReferenceNode -
class ReferenceProperty -
class SmcElement -
class SmcVisitor -
class StringListProperty -
class StringProperty -
class Uint32Array -
class Uint32ArrayProperty -
class Uint32Property -
class Uint64Array -
class Uint64Property -
class Visitor -
class VisitorRegistry
Functions
-
zx::result<> LoadVisitorsHost (VisitorRegistry & registry, const std::vector<std::string> & library_paths)Host-side helper to load devicetree visitors from shared library files.
|library_paths| is a list of paths to .so files containing visitors.
Defined at line 12 of file ../../sdk/lib/driver/devicetree/visitors/load-visitors-host.cc
-
zx::result<std::unique_ptr<VisitorRegistry>> LoadVisitors (const std::optional<std::vector<fuchsia_driver_framework::NodeSymbol>> & symbols)Find all devicetree visitor shared libraries under the incoming namespace's
`/pkg/lib/visitors` directory. Instantiate all visitor objects and return a
registry of visitors which includes the default devicetree visitors.
Defined at line 17 of file ../../sdk/lib/driver/devicetree/visitors/load-visitors.cc
-
std::string StringifyIrqMode (fuchsia_hardware_platform_bus::ZirconInterruptMode mode)Defined at line 25 of file ../../sdk/lib/driver/devicetree/manager/dump-parsed/dump-parsed.h
-
std::string StringifyProtocol (uint64_t val)These values are based on the legacy Banjo protocol IDs used by devicetree
(see src/lib/ddk/include/lib/ddk/protodefs.h).
Ideally we should use generated FIDL bindings, but these are maintained
manually for the dumper tool as it is simpler.
Defined at line 48 of file ../../sdk/lib/driver/devicetree/manager/dump-parsed/dump-parsed.h
-
std::string StringifyVid (uint64_t val)Defined at line 108 of file ../../sdk/lib/driver/devicetree/manager/dump-parsed/dump-parsed.h
-
std::string StringifyPid (uint64_t vid, uint64_t val)Defined at line 138 of file ../../sdk/lib/driver/devicetree/manager/dump-parsed/dump-parsed.h
-
std::string StringifyDid (uint64_tvid,uint64_tpid,uint64_tval)Defined at line 206 of file ../../sdk/lib/driver/devicetree/manager/dump-parsed/dump-parsed.h
-
uint32_t GetVid (const std::vector<fuchsia_driver_framework::NodeProperty2> & props)Defined at line 220 of file ../../sdk/lib/driver/devicetree/manager/dump-parsed/dump-parsed.h
-
uint32_t GetPid (const std::vector<fuchsia_driver_framework::NodeProperty2> & props)Defined at line 230 of file ../../sdk/lib/driver/devicetree/manager/dump-parsed/dump-parsed.h
-
uint32_t GetVid (const std::vector<fuchsia_driver_framework::BindRule2> & rules)Defined at line 240 of file ../../sdk/lib/driver/devicetree/manager/dump-parsed/dump-parsed.h
-
uint32_t GetPid (const std::vector<fuchsia_driver_framework::BindRule2> & rules)Defined at line 253 of file ../../sdk/lib/driver/devicetree/manager/dump-parsed/dump-parsed.h
-
std::string StringifyPropertyValue (const fuchsia_driver_framework::NodePropertyValue &value,const std::string &key,uint32_tvid,uint32_tpid)Defined at line 266 of file ../../sdk/lib/driver/devicetree/manager/dump-parsed/dump-parsed.h
-
void StringifyProperties (const std::vector<fuchsia_driver_framework::NodeProperty2> &props,std::ostream &os,const std::string &indent)Defined at line 299 of file ../../sdk/lib/driver/devicetree/manager/dump-parsed/dump-parsed.h
-
void StringifyParentSpec (const fuchsia_driver_framework::ParentSpec2 &spec,std::ostream &os,const std::string &indent)Defined at line 310 of file ../../sdk/lib/driver/devicetree/manager/dump-parsed/dump-parsed.h
-
std::vector<uint8_t> LoadBlob (const std::string & path)Defined at line 354 of file ../../sdk/lib/driver/devicetree/manager/dump-parsed/dump-parsed.h
-
template <typename T>std::string StringifyFidl (const T & val)Defined at line 390 of file ../../sdk/lib/driver/devicetree/manager/dump-parsed/dump-parsed.h
-
template <>std::string StringifyFidl<fuchsia_hardware_platform_bus::Iommu> (const fuchsia_hardware_platform_bus::Iommu & iommu)Defined at line 394 of file ../../sdk/lib/driver/devicetree/manager/dump-parsed/dump-parsed.h
-
template <>std::string StringifyFidl<fuchsia_driver_framework::BusInfo> (const fuchsia_driver_framework::BusInfo & val)Defined at line 412 of file ../../sdk/lib/driver/devicetree/manager/dump-parsed/dump-parsed.h
-
void StringifyPbusNode (const fuchsia_hardware_platform_bus::Node &node,const std::vector<std::optional<std::string>> &metadata_text,const std::vector<std::optional<std::string>> &power_config_text,std::ostream &os)Defined at line 424 of file ../../sdk/lib/driver/devicetree/manager/dump-parsed/dump-parsed.h
-
void StringifyBoardChildNode (const fdf_devicetree::BoardChildNode & node, std::ostream & os)Defined at line 576 of file ../../sdk/lib/driver/devicetree/manager/dump-parsed/dump-parsed.h
-
void StringifyCompositeNodeSpec (const fdf_devicetree::CompositeNodeSpecInfo & spec_meta, std::ostream & os)Defined at line 590 of file ../../sdk/lib/driver/devicetree/manager/dump-parsed/dump-parsed.h