All of lore.kernel.org
 help / color / mirror / Atom feed
From: Randy Dunlap <rdunlap@infradead.org>
To: Horia Geanta <horia.geanta@freescale.com>,
	Herbert Xu <herbert@gondor.apana.org.au>,
	linux-crypto@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>,
	Carmen Iorga <carmen.iorga@freescale.com>,
	Kim Phillips <kim.phillips@freescale.com>,
	Alexandru Porosanu <alexandru.porosanu@freescale.com>,
	Vakul Garg <vakul@freescale.com>,
	Ruchika Gupta <ruchika.gupta@freescale.com>
Subject: Re: [PATCH v2 12/12] crypto: caam - add Run Time Library (RTA) docbook
Date: Tue, 19 Aug 2014 13:54:50 -0700	[thread overview]
Message-ID: <53F3B99A.2020002@infradead.org> (raw)
In-Reply-To: <1408020874-2211-13-git-send-email-horia.geanta@freescale.com>

On 08/14/14 05:54, Horia Geanta wrote:
> Add SGML template for generating RTA docbook.
> Source code is in drivers/crypto/caam/flib
> 
> Cc: Randy Dunlap <rdunlap@infradead.org>
> Signed-off-by: Horia Geanta <horia.geanta@freescale.com>
> ---
>  Documentation/DocBook/Makefile         |   3 +-
>  Documentation/DocBook/rta-api.tmpl     | 261 ++++++++++++++++++++++
>  Documentation/DocBook/rta/.gitignore   |   1 +
>  Documentation/DocBook/rta/Makefile     |   5 +
>  Documentation/DocBook/rta/rta_arch.svg | 381 +++++++++++++++++++++++++++++++++
>  5 files changed, 650 insertions(+), 1 deletion(-)
>  create mode 100644 Documentation/DocBook/rta-api.tmpl
>  create mode 100644 Documentation/DocBook/rta/.gitignore
>  create mode 100644 Documentation/DocBook/rta/Makefile
>  create mode 100644 Documentation/DocBook/rta/rta_arch.svg

> diff --git a/Documentation/DocBook/rta-api.tmpl b/Documentation/DocBook/rta-api.tmpl
> new file mode 100644
> index 000000000000..90c5c5a8d9a7
> --- /dev/null
> +++ b/Documentation/DocBook/rta-api.tmpl
> @@ -0,0 +1,261 @@
> +<?xml version="1.0" encoding="UTF-8"?>
> +<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
> +        "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" []>
> +
> +<book id="RTAapi">
> + <bookinfo>
> +  <title>Writing descriptors for Freescale CAAM using RTA library</title>
> +  <authorgroup>
> +   <author>
> +    <firstname>Horia</firstname>
> +    <surname>Geanta</surname>
> +    <affiliation>
> +     <address><email>horia.geanta@freescale.com</email></address>
> +    </affiliation>
> +   </author>
> +  </authorgroup>
> +
> +  <copyright>
> +   <year>2008-2014</year>
> +   <holder>Freescale Semiconductor</holder>
> +  </copyright>
...
> +  <chapter id="intro">
> +    <title>Introduction</title>
> +    <sect1>
> +      <title>About</title>
> +!Pdrivers/crypto/caam/flib/rta.h About
> +!Pdrivers/crypto/caam/flib/rta.h Usage
> +      <mediaobject>
> +        <imageobject>
> +          <imagedata fileref="rta_arch.svg" format="SVG" align="CENTER"/>
> +        </imageobject>
> +        <caption><para>RTA Integration Overview</para></caption>
> +      </mediaobject>
> +    </sect1>
> +    <sect1>
> +      <title>Using RTA</title>
> +      <para>
> +        RTA can be used in an application just by including the following header file:
> +	#include flib/rta.h

Needs quotation marks or angle brackets?

> +      </para>
> +      <para>
> +        The files in drivers/crypto/caam/desc directory contain several
> +	real-world descriptors written with RTA. You can use them as-is or adapt
> +	them to your needs.
> +      </para>
> +      <para>
> +        RTA routines take as first parameter a pointer to a "struct program"
> +        variable. It contains several housekeeping information that are used

       drop:                     several         &      change:        is

> +        during descriptor creation.
> +      </para>
> +      <para>
> +        RTA creates the descriptors and saves them in buffers. It is the user's
> +	job to allocate memory for these buffers before passing them to RTA
> +	program initialization call.
> +      </para>
> +      <para>
> +        A RTA program must start with a call to PROGRAM_CNTXT_INIT and end with

           An

> +	PROGRAM_FINALIZE. PROGRAM_CNTXT_INIT will initialze the members of

                                                  initialize

> +	'program' structure with user information (pointer to user's buffer, and
> +	the SEC subversion). The PROGRAM_FINALIZE call checks the descriptor's
> +	validity.
> +      </para>

[snip]


-- 
~Randy

  reply	other threads:[~2014-08-19 20:54 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-14 12:54 [PATCH v2 00/12] crypto: caam - Add RTA descriptor creation library Horia Geanta
2014-08-14 12:54 ` [PATCH v2 01/12] crypto: caam - completely remove error propagation handling Horia Geanta
2014-08-14 12:54 ` [PATCH v2 02/12] crypto: caam - desc.h fixes Horia Geanta
2014-08-14 12:54 ` [PATCH v2 03/12] crypto: caam - code cleanup Horia Geanta
2014-08-14 12:54 ` [PATCH v2 04/12] crypto: caam - move sec4_sg_entry to sg_sw_sec4.h Horia Geanta
2014-08-14 12:54 ` [PATCH v2 05/12] crypto: caam - add Run Time Library (RTA) - part 1 Horia Geanta
2014-08-14 12:54 ` [PATCH v2 06/12] crypto: caam - add Run Time Library (RTA) - part 2 Horia Geanta
2014-08-14 12:54 ` [PATCH v2 07/12] crypto: caam - add Run Time Library (RTA) - part 3 Horia Geanta
2014-08-14 12:54 ` [PATCH v2 08/12] crypto: caam - use RTA instead of inline append Horia Geanta
2014-08-14 12:54 ` [PATCH v2 09/12] crypto: caam - completely remove " Horia Geanta
2014-08-14 12:54 ` [PATCH v2 10/12] crypto: caam - refactor descriptor creation Horia Geanta
2014-08-14 12:54 ` [PATCH v2 11/12] crypto: caam - move caamalg shared descs in RTA library Horia Geanta
2014-08-14 12:54 ` [PATCH v2 12/12] crypto: caam - add Run Time Library (RTA) docbook Horia Geanta
2014-08-19 20:54   ` Randy Dunlap [this message]
2014-08-16 11:16 ` [PATCH v2 00/12] crypto: caam - Add RTA descriptor creation library Kim Phillips
2014-09-03  9:59   ` Horia Geantă
2014-09-03 23:54     ` Kim Phillips

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53F3B99A.2020002@infradead.org \
    --to=rdunlap@infradead.org \
    --cc=alexandru.porosanu@freescale.com \
    --cc=carmen.iorga@freescale.com \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=horia.geanta@freescale.com \
    --cc=kim.phillips@freescale.com \
    --cc=linux-crypto@vger.kernel.org \
    --cc=ruchika.gupta@freescale.com \
    --cc=vakul@freescale.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.