brintos

brintos / linux-shallow public Read only

0
0
Text · 2.4 KiB · 0e19855 Raw
107 lines · plain
1.. SPDX-License-Identifier: GPL-2.02..3.. Copyright 2019 Google LLC4..5.. c:namespace:: CEC6 7.. _CEC_ADAP_G_CONNECTOR_INFO:8 9*******************************10ioctl CEC_ADAP_G_CONNECTOR_INFO11*******************************12 13Name14====15 16CEC_ADAP_G_CONNECTOR_INFO - Query HDMI connector information17 18Synopsis19========20 21.. c:macro:: CEC_ADAP_G_CONNECTOR_INFO22 23``int ioctl(int fd, CEC_ADAP_G_CONNECTOR_INFO, struct cec_connector_info *argp)``24 25Arguments26=========27 28``fd``29    File descriptor returned by :c:func:`open()`.30 31``argp``32 33Description34===========35 36Using this ioctl an application can learn which HDMI connector this CEC37device corresponds to. While calling this ioctl the application should38provide a pointer to a cec_connector_info struct which will be populated39by the kernel with the info provided by the adapter's driver. This ioctl40is only available if the ``CEC_CAP_CONNECTOR_INFO`` capability is set.41 42.. tabularcolumns:: |p{1.0cm}|p{4.4cm}|p{2.5cm}|p{9.2cm}|43 44.. c:type:: cec_connector_info45 46.. flat-table:: struct cec_connector_info47    :header-rows:  048    :stub-columns: 049    :widths:       1 1 850 51    * - __u3252      - ``type``53      - The type of connector this adapter is associated with.54    * - union {55      - ``(anonymous)``56    * - ``struct cec_drm_connector_info``57      - drm58      - :ref:`cec-drm-connector-info`59    * - }60      -61 62.. tabularcolumns:: |p{4.4cm}|p{2.5cm}|p{10.4cm}|63 64.. _connector-type:65 66.. flat-table:: Connector types67    :header-rows:  068    :stub-columns: 069    :widths:       3 1 870 71    * .. _`CEC-CONNECTOR-TYPE-NO-CONNECTOR`:72 73      - ``CEC_CONNECTOR_TYPE_NO_CONNECTOR``74      - 075      - No connector is associated with the adapter/the information is not76        provided by the driver.77    * .. _`CEC-CONNECTOR-TYPE-DRM`:78 79      - ``CEC_CONNECTOR_TYPE_DRM``80      - 181      - Indicates that a DRM connector is associated with this adapter.82        Information about the connector can be found in83	:ref:`cec-drm-connector-info`.84 85.. tabularcolumns:: |p{4.4cm}|p{2.5cm}|p{10.4cm}|86 87.. c:type:: cec_drm_connector_info88 89.. _cec-drm-connector-info:90 91.. flat-table:: struct cec_drm_connector_info92    :header-rows:  093    :stub-columns: 094    :widths:       3 1 895 96    * .. _`CEC-DRM-CONNECTOR-TYPE-CARD-NO`:97 98      - __u3299      - ``card_no``100      - DRM card number: the number from a card's path, e.g. 0 in case of101        /dev/card0.102    * .. _`CEC-DRM-CONNECTOR-TYPE-CONNECTOR_ID`:103 104      - __u32105      - ``connector_id``106      - DRM connector ID.107