diff options
author | Paul Beesley <paul.beesley@arm.com> | 2019-03-13 15:11:04 +0000 |
---|---|---|
committer | Paul Beesley <paul.beesley@arm.com> | 2019-05-22 11:28:17 +0100 |
commit | 29c02529592fb2489edee6c92e418918e5732105 (patch) | |
tree | 9510a970fc1f7c0779ae1521303edfae4f55ff91 /docs/design | |
parent | 8f62ca7b3060b87ede0a55c1972e5d2146a23890 (diff) |
doc: Set correct syntax highlighting style
Several code blocks do not specify a language for syntax
highlighting. This results in Sphinx using a default highlighter
which is Python.
This patch adds the correct language to each code block that doesn't
already specify it.
Change-Id: Icce1949aabfdc11a334a42d49edf55fa673cddc3
Signed-off-by: Paul Beesley <paul.beesley@arm.com>
Diffstat (limited to 'docs/design')
-rw-r--r-- | docs/design/auth-framework.rst | 2 | ||||
-rw-r--r-- | docs/design/firmware-design.rst | 8 | ||||
-rw-r--r-- | docs/design/interrupt-framework-design.rst | 2 | ||||
-rw-r--r-- | docs/design/psci-pd-tree.rst | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/docs/design/auth-framework.rst b/docs/design/auth-framework.rst index 49f0def5..7a742d5f 100644 --- a/docs/design/auth-framework.rst +++ b/docs/design/auth-framework.rst @@ -408,7 +408,7 @@ An IPL must provide functions with the following prototypes: An IPL for each type must be registered using the following macro: -:: +.. code:: c REGISTER_IMG_PARSER_LIB(_type, _name, _init, _check_int, _get_param) diff --git a/docs/design/firmware-design.rst b/docs/design/firmware-design.rst index 27d09480..e9384e62 100644 --- a/docs/design/firmware-design.rst +++ b/docs/design/firmware-design.rst @@ -2304,7 +2304,7 @@ result in build error. Subscribing to an undefined event however won't. Subscribed handlers must be of type ``pubsub_cb_t``, with following function signature: -:: +.. code:: c typedef void* (*pubsub_cb_t)(const void *arg); @@ -2331,7 +2331,7 @@ A publisher that wants to publish event ``foo`` would: - Define the event ``foo`` in the ``pubsub_events.h``. - :: + .. code:: c REGISTER_PUBSUB_EVENT(foo); @@ -2467,7 +2467,7 @@ respectively. From outside TF-A, timestamps for individual CPUs can be retrieved by calling into ``pmf_smc_handler()``. -.. code:: c +:: Interface : pmf_smc_handler() Argument : unsigned int smc_fid, u_register_t x1, @@ -2597,7 +2597,7 @@ Platform may choose to not define straight the toolchain target architecture directive by defining ``MARCH32_DIRECTIVE``. I.e: -:: +.. code:: make MARCH32_DIRECTIVE := -mach=armv7-a diff --git a/docs/design/interrupt-framework-design.rst b/docs/design/interrupt-framework-design.rst index 6f692b2f..d4057ea4 100644 --- a/docs/design/interrupt-framework-design.rst +++ b/docs/design/interrupt-framework-design.rst @@ -48,7 +48,7 @@ the exception level(s) it is handled in. The following constants define the various interrupt types in the framework implementation. -:: +.. code:: c #define INTR_TYPE_S_EL1 0 #define INTR_TYPE_EL3 1 diff --git a/docs/design/psci-pd-tree.rst b/docs/design/psci-pd-tree.rst index e52da77c..56a6d6ff 100644 --- a/docs/design/psci-pd-tree.rst +++ b/docs/design/psci-pd-tree.rst @@ -109,7 +109,7 @@ separately. This tree is defined by the platform as the array described above as follows: -:: +.. code:: c #define PLAT_NUM_POWER_DOMAINS 20 #define PLATFORM_CORE_COUNT 13 @@ -219,7 +219,7 @@ to represent leaf and non-leaf power domain nodes in the tree. The power domain tree is implemented as a combination of the following data structures. -:: +.. code:: c non_cpu_pd_node_t psci_non_cpu_pd_nodes[PSCI_NUM_NON_CPU_PWR_DOMAINS]; cpu_pd_node_t psci_cpu_pd_nodes[PLATFORM_CORE_COUNT]; |