1.21. V4L2 Open Firmware kAPI¶
-
struct
v4l2_of_bus_mipi_csi2¶ MIPI CSI-2 bus data structure
Definition
struct v4l2_of_bus_mipi_csi2 {
unsigned int flags;
unsigned char data_lanes[4];
unsigned char clock_lane;
unsigned short num_data_lanes;
bool lane_polarities[5];
};
Members
unsigned int flags- media bus (V4L2_MBUS_*) flags
unsigned char data_lanes[4]- an array of physical data lane indexes
unsigned char clock_lane- physical lane index of the clock lane
unsigned short num_data_lanes- number of data lanes
bool lane_polarities[5]- polarity of the lanes. The order is the same of the physical lanes.
-
struct
v4l2_of_bus_parallel¶ parallel data bus data structure
Definition
struct v4l2_of_bus_parallel {
unsigned int flags;
unsigned char bus_width;
unsigned char data_shift;
};
Members
unsigned int flags- media bus (V4L2_MBUS_*) flags
unsigned char bus_width- bus width in bits
unsigned char data_shift- data shift in bits
-
struct
v4l2_of_endpoint¶ the endpoint data structure
Definition
struct v4l2_of_endpoint {
struct of_endpoint base;
enum v4l2_mbus_type bus_type;
union bus;
u64 * link_frequencies;
unsigned int nr_of_link_frequencies;
};
Members
struct of_endpoint base- struct of_endpoint containing port, id, and local of_node
enum v4l2_mbus_type bus_type- bus type
union bus- bus configuration data structure
u64 * link_frequencies- array of supported link frequencies
unsigned int nr_of_link_frequencies- number of elements in link_frequenccies array
-
struct
v4l2_of_link¶ a link between two endpoints
Definition
struct v4l2_of_link {
struct device_node * local_node;
unsigned int local_port;
struct device_node * remote_node;
unsigned int remote_port;
};
Members
struct device_node * local_node- pointer to device_node of this endpoint
unsigned int local_port- identifier of the port this endpoint belongs to
struct device_node * remote_node- pointer to device_node of the remote endpoint
unsigned int remote_port- identifier of the port the remote endpoint belongs to