From: Randy Dunlap Subject: Re: [PATCH v2 12/12] crypto: caam - add Run Time Library (RTA) docbook Date: Tue, 19 Aug 2014 13:54:50 -0700 Message-ID: <53F3B99A.2020002@infradead.org> References: <1408020874-2211-1-git-send-email-horia.geanta@freescale.com> <1408020874-2211-13-git-send-email-horia.geanta@freescale.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: "David S. Miller" , Carmen Iorga , Kim Phillips , Alexandru Porosanu , Vakul Garg , Ruchika Gupta To: Horia Geanta , Herbert Xu , linux-crypto@vger.kernel.org Return-path: Received: from casper.infradead.org ([85.118.1.10]:42074 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750809AbaHSUy5 (ORCPT ); Tue, 19 Aug 2014 16:54:57 -0400 In-Reply-To: <1408020874-2211-13-git-send-email-horia.geanta@freescale.com> Sender: linux-crypto-owner@vger.kernel.org List-ID: 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 > Signed-off-by: Horia Geanta > --- > 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 @@ > + > + + "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" []> > + > + > + > + Writing descriptors for Freescale CAAM using RTA library > + > + > + Horia > + Geanta > + > +
horia.geanta@freescale.com
> +
> +
> +
> + > + > + 2008-2014 > + Freescale Semiconductor > + ... > + > + Introduction > + > + About > +!Pdrivers/crypto/caam/flib/rta.h About > +!Pdrivers/crypto/caam/flib/rta.h Usage > + > + > + > + > + RTA Integration Overview > + > + > + > + Using RTA > + > + RTA can be used in an application just by including the following header file: > + #include flib/rta.h Needs quotation marks or angle brackets? > + > + > + 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. > + > + > + 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. > + > + > + 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. > + > + > + 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. > + [snip] -- ~Randy