summaryrefslogtreecommitdiff
path: root/Documentation
AgeCommit message (Collapse)AuthorFilesLines
2016-07-08doc-rst: remove an invalid include from the docsMauro Carvalho Chehab1-2/+0
I suspect that this is a left over from Markus tests. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-08doc-rst: linux_tv/Makefile: Honor quiet make O=dirMarkus Heiser9-10/+12
To honor the: make O=dir [targets] Locate all output files in "dir" * activate kernel-include directive * export BUILDDIR=$(BUILDDIR) * linux_tv: replace '.. include::' with '.. kernel-include:: $BUILDDIR/<foo.h.rst>' Signed-off-by: Markus Heiser <markus.heiser@darmarIT.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-08doc-rst: add kernel-include directiveMarkus Heiser1-0/+183
The kernel-include directive is needed to include the auto generated rst content from a build (pre-) process. E.g. the linux_tv Makefile generates intermediate reST-files from header files. Since there is a O= option: make O=dir [targets] Locate all output files in "dir" We need to include intermediate reST files from arbitrary (O=/tmp/foo) locations: The 'kernel-include' reST-directive is a replacement for the 'include' directive. The 'kernel-include' directive expand environment variables in the path name and allows to include files from arbitrary locations. .. hint:: Including files from arbitrary locations (e.g. from '/etc') is a security risk for builders. This is why the 'include' directive from docutils *prohibit* pathnames pointing to locations *above* the filesystem tree where the reST document with the include directive is placed. Substrings of the form $name or ${name} are replaced by the value of environment variable name. Malformed variable names and references to non-existing variables are left unchanged. Signed-off-by: Markus Heiser <markus.heiser@darmarIT.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-08doc-rst: auto-generate: fixed include "output/*.h.rst" contentMarkus Heiser8-37/+12
Include auto-generate reST header files. BTW fixed linux_tv/Makefile. Signed-off-by: Markus Heiser <markus.heiser@darmarIT.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-08doc-rst: linux_tv/Makefile: Honor quiet modeMauro Carvalho Chehab2-18/+33
Cleanup the Makefile and handle the V=1 flag and make it to work when specifying an output directory with O=dir Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-08doc-rst: videodev2.h: add cross-references for definesMauro Carvalho Chehab3-285/+367
Remove most of ignore stuff for defines, pointing them to the proper tables/sections. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-08doc-rst: document enum symbolsMauro Carvalho Chehab1-89/+115
After checking that all enum fields are documented at the corresponding table on the rst file, let's point to the table, instead of ignore the symbols. A few symbols are not meant to be documented, as they're deprecated stuff. keep ignoring them. One enum field is not documented. Either it is obsolete or a documentation gap. So, produce warnings for it. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-08doc-rst: videodev2.h: don't ignore V4L2_STD macrosMauro Carvalho Chehab1-46/+48
The content of those macros are all declared at the v4l2-std-id table. So, point to it. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-08doc-rst: linux_tv: Don't ignore pix formatsMauro Carvalho Chehab17-144/+29
Now that the reference problems were solved, let's not ignore anymore the pix formats, as all of them are already documented. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-08doc-rst: fix some badly converted referencesMauro Carvalho Chehab16-379/+379
Several references were not converted right. That's why so many symbols were lost when parsing videodev2.h header. Fix them. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-07doc-rst: autogenerate videodev2.h.rst fileMauro Carvalho Chehab7-2310/+605
This file comes from the uAPI definitions for V4L2, with is dynamic and updated on almost every Kernel version. So, this file needs to be auto-updated, as otherwise the documentation will become obsolete too early. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-07doc-rst: parse-headers: don't do substituition referencesMauro Carvalho Chehab1-1/+1
Add one extra escape character to avoid those warnings: Documentation/linux_tv/videodev2.h.rst:6: WARNING: Inline substitution_reference start-string without end-string. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-07doc-rst: parse-headers: add an option to ignore enum symbolsMauro Carvalho Chehab1-0/+4
At videodev2.h, we have hundreds of symbols that don't currently have a reference yet. Let's ignore for how, while we don't improve those cross-refs. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-07doc-rst: parse-headers: better handle comments at the source codeMauro Carvalho Chehab1-3/+14
We should not let comments to mangle with the symbols parsing. Unfortunately, videodev2.h has lots of those in the middle of enums and structs. So, we need to improve our parser to discard them. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-07doc-rst: auto-generate video.h.rstMauro Carvalho Chehab3-281/+44
This file comes from the uAPI definition header, and should be auto-generated, to be in sync with Kernel changes. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-07doc-rst: auto-generate net.h.rstMauro Carvalho Chehab3-62/+18
This file comes from the uAPI definition header, and should be auto-generated, to be in sync with Kernel changes. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-07doc-rst: auto-generate ca.h.rstMauro Carvalho Chehab3-98/+28
This file comes from the uAPI definition header, and should be auto-generated, to be in sync with Kernel changes. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-07doc-rst: auto-generate audio.h.rstMauro Carvalho Chehab3-145/+26
This is an auto-generated header. Remove the hardcoded one and do the right thing here. NOTE: this is a deprecated API. So, we won't make any effort to try identifying the meaning of this obscure API that is used only on a legacy driver. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-07doc-rst: auto-generate dmx.h.rstMauro Carvalho Chehab3-163/+67
This file should be auto-generated from the header files, and not hardcoded. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-07doc-rst: parse-headers: fix multiline typedef handlerMauro Carvalho Chehab1-3/+4
The typedef handler should do two things to be generic: 1) parse typedef enums; 2) accept both possible syntaxes: typedef struct foo { .. } foo_t; typedef struct { .. } foo_t; Unfortunately, this is needed to parse some legacy DVB files, like dvb/audio.h. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-07doc-rst: parse-headers: better handle typedefsMauro Carvalho Chehab1-2/+7
When typedef is used on its multiline format, we need to also parse enum and struct in the same line. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-07doc-rst: parse-headers: be more formal about the valid symbolsMauro Carvalho Chehab1-8/+8
Be more formal about the valid symbols that are expected by the parser, to match what c language expects. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-07doc-rst: fix parsing comments and '{' on a separate lineMauro Carvalho Chehab1-6/+11
The dmx.h header has two things that causes the parser to break while handling enums: per-header enums and the '{' starts on a new line Both makes the parser to get lexical marks to be detected as if they were symbols. Fix it. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-07doc-dst: parse-headers: highlight deprecated commentsMauro Carvalho Chehab1-0/+2
When something is deprecated, highlight it, as we want it to be clearer to the reader. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-07doc-rst: parse-headers: improve delimiters to detect symbolsMauro Carvalho Chehab1-13/+14
As we had to escape the symbols for the ReST markup to not do the wrong thing, the logic to discover start/end of strings are not trivial. Improve the end delimiter detection, in order to highlight more occurrences of the strings. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-07doc-rst: auto-build the frontend.h.rstMauro Carvalho Chehab4-609/+60
This file is auto-generated with DocBook, from the uapi header. Do the same with Sphinx. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-07doc-rst: add parse-headers.pl scriptMauro Carvalho Chehab1-0/+290
This script parses a header file and converts it into a parsed-literal block, creating references for ioctls, defines, typedefs, enums and structs. It also allow an external file to modify the rules, in order to fix the expressions. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-06doc-rst: linux_tv/index: Rename the book nameMauro Carvalho Chehab1-1/+1
There's no need for all caps at its name. As the book title is now showing at the top of each page, let's use Camel Case, to make it less bold. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-06doc-rst: v4l2: Rename the V4L2 API titleMauro Carvalho Chehab1-3/+5
The V4L2 is the only part of the doc that has the word "Specification" and mentions its version on the title. Having the version there was important in the past, while we were getting rid of V4L version 1. But, as v1 is long gone, all it lasts is history (with is, btw, covered on the spec). So, no need to keep the version on its title. So, rename it, to be more generic and look like the remaining of the document. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-06doc-rst: Rename the title of the Digital TV sectionMauro Carvalho Chehab1-3/+6
The Digital TV section is ackward for two reasons: 1) it is the only one with everything in upper case; 2) its name is associated with the European digital TV standard. Rename the part name, and add a notice that it refers to what's known as "DVB API". Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-06doc-rst: remote_controllers: fix conversion issuesMauro Carvalho Chehab1-4/+12
Make it look like V4L, DVB and MC docbooks initial page. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-06doc-rst: gen-errors: Improve table layoutMauro Carvalho Chehab1-0/+1
Add a :widths: at the flat-table, to make it to look nicer. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-06doc-rst: media-ioc-enum-entities: better format the tableMauro Carvalho Chehab1-0/+1
Add a :widths: at the flat-table, to improve the visual. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-06doc-rst: media-ioc-g-topology: Fix tablesMauro Carvalho Chehab1-57/+6
The tables were not properly converted. It looked a little ackward already at DocBook, but the conversion made it worse. Fix them. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-05doc-rst: mediactl: fix some wrong cross referencesMauro Carvalho Chehab3-4/+4
Those cross references should point to media control syscalls, and not to V4L ones. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-05doc-rst: media-controller-model: fix a typoMauro Carvalho Chehab1-1/+1
Remove a 'm' at the end of the last phrase. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-05doc-rst: media-controller.rst: add missing copy symbolMauro Carvalho Chehab1-2/+5
Just like V4L and DVB parts, add the copyright symbol. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-05doc-rst: media-controller: missing creditsMauro Carvalho Chehab1-0/+7
When I wrote the MC next gen patches, I also improved the media controller documentation and added documentation for MEDIA_IOC_G_TOPOLOGY, but I forgot to add the credits on that time. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-05doc-rst: media-controller: fix conversion issuesMauro Carvalho Chehab1-3/+9
Make it look just like v4l and DVB parts. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-05doc-rst: intro: remove obsolete headersMauro Carvalho Chehab1-5/+0
The video, audio and OSD APIs are obsolete. V4L2 should be used instead. So, remove them from this intro item. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-05doc-rst: dvb/intro: Better show the needed include blocksMauro Carvalho Chehab1-18/+0
The include blocks were not properly displayed. Fix it. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-05doc-rst: fix intro_files/dvbstb.png imageMauro Carvalho Chehab1-0/+0
The png image was not base64 decoded correctly. Fix it. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-05doc-rst: dvbapi: Fix conversion issuesMauro Carvalho Chehab1-9/+16
The conversion of this file didn't happen too well. We want the items numbered, and format it just like what we did with part 1 of the document. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-05doc-rst: dev-overlay: fix the last warningMauro Carvalho Chehab1-1/+1
Fixes this warning: Documentation/linux_tv/media/v4l/dev-overlay.rst:247: WARNING: Title underline too short. struct v4l2_clip [4]_ ---------------- Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-05doc-rst: dmabuf: Fix the cross-referenceMauro Carvalho Chehab1-1/+1
Fixes this warning: Documentation/linux_tv/media/v4l/dmabuf.rst:150: WARNING: undefined label: vidioc_dqbuf (if the link has no caption the label must precede a section header) Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-05doc-rst: linux_tv: use :cpp:function:: on all syscallsMauro Carvalho Chehab84-93/+95
Now that we have one syscall per page, using :cpp:function:: cleans up almost all warnings, with is a great thing. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-05doc-rst: linux_tv: don't use uppercases for syscall sectionsMauro Carvalho Chehab182-913/+1107
On the syscall conversions, we used uppercase for the sections, but this is too bold. So, convert them to Camel Case, as it looks visually better. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-05doc-rst: customize RTD theme, captions & inline literalMarkus Heiser1-0/+25
The layout of (table) captions in the RTD theme is a bit ugly and the bordered, red colored of inline literals is a bit to gaudy. The requirements has been discussed in the ML [1]. captions: - captions should have 100% (not 85%) font size - hide the permalink symbol as long as link is not hovered inline literal: - drop the borderbox and red color [1] http://article.gmane.org/gmane.linux.drivers.video-input-infrastructure/101099 Signed-off-by: Markus Heiser <markus.heiser@darmarIT.de>
2016-07-05doc-rst: customize RTD theme, table & full widthMarkus Heiser1-1/+20
The default table layout of the RTD theme does not fit for vast tables, like the ones we have in the linux_tv project. This has been discussed on the ML [1]. The RTD theme is a two column layout, with a navigation column on the left and a content column on the right: content column RTD theme's default is 800px as max width for the content, but we have tables with tons of columns, which need the full width of the view-port (BTW: *full width* is what DocBook's HTML is). table - sequences of whitespace should collapse into a single whitespace. - make the overflow auto (scrollbar if needed) - align caption "left" ("center" is unsuitable on vast tables) [1] http://article.gmane.org/gmane.linux.kernel/2216509 Signed-off-by: Markus Heiser <markus.heiser@darmarIT.de>
2016-07-05doc-rst: remove Documentation/linux_tv/conf.py fileMauro Carvalho Chehab1-221/+0
This file is actually not used to build the media uAPI docbook. So, remove it. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>