summaryrefslogtreecommitdiffstats
path: root/Documentation/media/uapi/dvb/ca-get-slot-info.rst
blob: 54e5dc78a2dc434116d87cc6ab8e2b540c8ec6bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
.. -*- coding: utf-8; mode: rst -*-

.. _CA_GET_SLOT_INFO:

================
CA_GET_SLOT_INFO
================

Name
----

CA_GET_SLOT_INFO


Synopsis
--------

.. c:function:: int ioctl(fd, CA_GET_SLOT_INFO, struct ca_slot_info *info)
    :name: CA_GET_SLOT_INFO


Arguments
---------

``fd``
  File descriptor returned by a previous call to :c:func:`open() <cec-open>`.

``info``
  Pointer to struct c:type:`ca_slot_info`.

.. _ca_slot_info_type:

.. flat-table:: ca_slot_info types
    :header-rows:  1
    :stub-columns: 0

    -
      - type
      - name
      - description
    -
       - CA_CI
       - 1
       - CI high level interface

    -
       - CA_CI_LINK
       - 2
       - CI link layer level interface

    -
       - CA_CI_PHYS
       - 4
       - CI physical layer level interface

    -
       - CA_DESCR
       - 8
       - built-in descrambler

    -
       - CA_SC
       - 128
       - simple smart card interface

.. _ca_slot_info_flag:

.. flat-table:: ca_slot_info flags
    :header-rows:  1
    :stub-columns: 0

    -
      - type
      - name
      - description

    -
       - CA_CI_MODULE_PRESENT
       - 1
       - module (or card) inserted

    -
       - CA_CI_MODULE_READY
       - 2
       -

.. c:type:: ca_slot_info

.. flat-table:: struct ca_slot_info
    :header-rows:  1
    :stub-columns: 0

    -
      - type
      - name
      - description

    -
       - int
       - num
       - slot number

    -
       - int
       - type
       - CA interface this slot supports, as defined at :ref:`ca_slot_info_type`.

    -
       - unsigned int
       - flags
       - flags as defined at :ref:`ca_slot_info_flag`.


Description
-----------

.. note:: This ioctl is undocumented. Documentation is welcome.


Return Value
------------

On success 0 is returned, on error -1 and the ``errno`` variable is set
appropriately. The generic error codes are described at the
:ref:`Generic Error Codes <gen-errors>` chapter.
OpenPOWER on IntegriCloud