aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorChristophe Milard <christophe.milard@linaro.org>2016-02-11 15:21:43 +0100
committerMaxim Uvarov <maxim.uvarov@linaro.org>2016-03-04 13:24:49 +0300
commitfbde53e129a0d37d6c96f34ac1ee58d69cd02f87 (patch)
tree363d80099d552b15f67b2c26dd6db454318a4eb1 /doc
parent7fdb8ec2e4e4cc7e3aebcd81ecb50182e4f8d90a (diff)
doc: descr of structure for new interfaces
updates of the documentation to reflect the new structure allowing new interface addition. Signed-off-by: Christophe Milard <christophe.milard@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/implementers-guide/implementers-guide.adoc76
-rw-r--r--doc/users-guide/users-guide.adoc15
2 files changed, 54 insertions, 37 deletions
diff --git a/doc/implementers-guide/implementers-guide.adoc b/doc/implementers-guide/implementers-guide.adoc
index 133e4bb83..24bb3bfe8 100644
--- a/doc/implementers-guide/implementers-guide.adoc
+++ b/doc/implementers-guide/implementers-guide.adoc
@@ -19,44 +19,58 @@ The implementers view of the include source tree allows the common API
definitions and documentation to be reused by all the platforms defined in the
tree, but leave the actual definitions to be defined by the specific platform.
-.Implementers include structure
+.Implementers include structure (in repository)
----
./
├── include/
-│ ├── odp/
-│ │ └── api/ <1>
-│ │ └── The Public API and the documentation.
-│ │
-│ └── odp.h <4> This file should be the only file included by the application.
+│   ├── odp/
+│ │ └── api/
+│ │ └── spec/
+│ │ └── The Public API specification and its documentation. <1>
+│   │
+│ └── odp_api.h This file should be the only file included by the any ODP
+│ application. <4>
-├── platform/
-│ ├── <implementation name>/
-│ │ ├── include/
-│ │ │ ├── odp/ <2>
-│ │ │ │ ├── In-line function definitions of the public API for this
-│ │ │ │ │ platform seen by the application.
-│ │ │ │ │
-│ │ │ │ └── plat/ <3>
-│ │ │ │   └── Platform specific types, enums etc as seen by the
-│ │ │ │ application but require overriding by the
-│ │ │ │ implementation.
-│ │ │ │  
-│ │ │ └── Internal header files seen only by the implementation.
+└── platform/
+ └── <implementation name>/
+ └── include/
+ ├── Internal header files seen only by the implementation.
+ └── odp/
+ └── api/ <2>
+ ├── In-line function definitions of the public API for this
+ │ platform seen by the application.
+ │
+ └── plat/ <3>
+ └── Platform specific types, enums etc as seen by the
+ application but require overriding by the
+ implementation.
----
-
-<1> The doxygen description of the API definition is held in the public api file
-'include/odp/api'.
-<2> The public file is included by a counterpart in
-'platform/<implementation name>/include/odp'.
-The include of the public API is AFTER the platform specific definitions to
-allow the platform to provide definitions that match the underlying hardware.
-<3> The implementation code includes 'platform/<implementation name>/include/plat'
-and this then provides the source files with a complete definition the ODP API
-to be implemented.
-<4> Applications in turn include the include/odp.h file which includes the
-'platform/<implementation name>/include/plat' files to provide a complete
+<1> The specification, defining the ODP application programming interface (API)
+is held in 'include/odp/api/spec/'. The ODP API is defined by a set of '.h'
+files including doxygen documentation.
+<2> Each public specification file is included by a counterpart in
+'platform/<implementation name>/include/odp/api'.
+The include of the specification API is AFTER the platform specific definitions
+to allow the platform to provide definitions that match the underlying hardware.
+<3> The implementation code may include files from
+'platform/<implementation name>/include/odp/api/plat'
+<4> Applications in turn include the include/odp_api.h file which includes the
+'platform/<implementation name>/include/odp/api' files to provide a complete
definition of the API.
+After ODP installation (make install), the structure becomes as follows:
+
+.Installed ODP structure
+----
+./
+└── include/
+ ├── odp/
+ │ └── api/ API In-line for this platform.
+ │ ├── plat/ API Platform specific types.
+ │ └── spec/ The public API specification.
+ └── odp_api.h
+----
+
== The validation Suite ==
ODP provides a comprehensive set of API validation tests that are intended to be
diff --git a/doc/users-guide/users-guide.adoc b/doc/users-guide/users-guide.adoc
index b126da3be..50ecab18c 100644
--- a/doc/users-guide/users-guide.adoc
+++ b/doc/users-guide/users-guide.adoc
@@ -463,8 +463,8 @@ _synchronization_ mechanisms.
ODP provides APIs to assist in each of these areas.
=== The include structure
-Applications only include the 'include/odp.h' file, which includes the
-'platform/<implementation name>/include/odp' files to provide a complete
+Applications only include the 'include/odp_api.h' file, which includes the
+'platform/<implementation name>/include/odp/api' files to provide a complete
definition of the API on that platform. The doxygen documentation defining
the behavior of the ODP API is all contained in the public API files, and the
actual definitions for an implementation will be found in the per platform
@@ -476,11 +476,14 @@ visible to the application.
----
./
├── include/
-│ ├── odp/
-│ │ └── api/
-│ │ └── The Public API and the documentation.
+│   ├── odp/
+│   │   └── api/
+│ │ └── spec/
+│ │ └── The Public API and the documentation.
│ │
-│ └── odp.h This file should be the only file included by the application.
+│ │
+│ ├── odp_api.h This file should be the only file included by the
+│ │ application.
----
=== Initialization