This source file includes following definitions.
- of_graph_parse_endpoint
- of_graph_get_next_endpoint
- of_graph_get_remote_port_parent
- of_graph_get_remote_port
#ifndef __LINUX_OF_GRAPH_H
#define __LINUX_OF_GRAPH_H
struct of_endpoint {
unsigned int port;
unsigned int id;
const struct device_node *local_node;
};
#ifdef CONFIG_OF
int of_graph_parse_endpoint(const struct device_node *node,
struct of_endpoint *endpoint);
struct device_node *of_graph_get_next_endpoint(const struct device_node *parent,
struct device_node *previous);
struct device_node *of_graph_get_remote_port_parent(
const struct device_node *node);
struct device_node *of_graph_get_remote_port(const struct device_node *node);
#else
static inline int of_graph_parse_endpoint(const struct device_node *node,
struct of_endpoint *endpoint)
{
return -ENOSYS;
}
static inline struct device_node *of_graph_get_next_endpoint(
const struct device_node *parent,
struct device_node *previous)
{
return NULL;
}
static inline struct device_node *of_graph_get_remote_port_parent(
const struct device_node *node)
{
return NULL;
}
static inline struct device_node *of_graph_get_remote_port(
const struct device_node *node)
{
return NULL;
}
#endif
#endif