patch uio-implement-a-uio-interface-for-the-smx-cryptengine.patch added to gregkh-2.6 tree

Previous thread: 2.6.25 -- long standing bug with usb after resume with 4GB ram by Pavel Machek on Thursday, March 13, 2008 - 4:01 am. (4 messages)

Next thread: [PATCH] Shmem: compilation fix for !NUMA case by Pavel Emelyanov on Thursday, March 13, 2008 - 4:32 am. (1 message)
From: Ben Nizette
Date: Thursday, March 13, 2008 - 4:27 am

This patch implements a UIO interface for the SMX Cryptengine.

The Cryptengine found on the Nias Digital SMX board is best suited
for a UIO interface.  It is not wired in to the cryptographic API
as the engine handles it's own keys, algorithms, everything.  All
that we know about is that if there's room in the buffer, you can
write data to it and when there's data ready, you read it out again.

There isn't necessarily even any direct correlation between data
going in and data coming out again, the engine may consume or
generate data all on its own.

This driver is for proprietary hardware but we're always told to
submit the drivers anyway; here you are.  :-)

This is version 4 of this patch and addresses all issues raised by
Hans-Jürgen Koch and Paul Mundt in their reviews.  Slightly altered
is Paul's suggestion to use DRV_NAME and DRV_VERSION as the UIO
version and name.  While at the moment they are the same, there
is no reason for them to stay that way.  Nevertheless we now at
least provide a MODULE_VERSION macro to keep modinfo happy.

Signed-off-by: Ben Nizette <bn@niasdigital.com>
---
diff --git a/MAINTAINERS b/MAINTAINERS
index 2cdb591..480fd44 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -3554,6 +3554,11 @@ M:	mhoffman@lightlink.com
 L:	lm-sensors@lm-sensors.org
 S:	Maintained
 
+SMX UIO Interface
+P:	Ben Nizette
+M:	bn@niasdigital.com
+S:	Maintained
+
 SOFTMAC LAYER (IEEE 802.11)
 P:	Daniel Drake
 M:	dsd@gentoo.org
diff --git a/drivers/uio/Kconfig b/drivers/uio/Kconfig
index b778ed7..f57b347 100644
--- a/drivers/uio/Kconfig
+++ b/drivers/uio/Kconfig
@@ -26,4 +26,16 @@ config UIO_CIF
 	  To compile this driver as a module, choose M here: the module
 	  will be called uio_cif.
 
+config UIO_SMX
+	tristate "SMX cryptengine UIO interface"
+	depends on UIO
+	default n
+	help
+	  Userspace IO interface to the Cryptography engine found on the
+	  Nias Digital SMX boards.  These will be available from Q4 2008
+	  from http://www.niasdigital.com.  The ...
From: Paul Mundt
Date: Thursday, March 13, 2008 - 6:21 am

Looks good to me.
--

From: Hans-Jürgen
Date: Thursday, March 13, 2008 - 7:31 am

Am Thu, 13 Mar 2008 22:27:30 +1100
schrieb Ben Nizette <bn@niasdigital.com>:



--

From: gregkh
Date: Thursday, March 13, 2008 - 1:54 pm

This is a note to let you know that I've just added the patch titled

     Subject: UIO: Implement a UIO interface for the SMX Cryptengine

to my gregkh-2.6 tree.  Its filename is

     uio-implement-a-uio-interface-for-the-smx-cryptengine.patch

This tree can be found at 
    http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/


From bn@niasdigital.com  Thu Mar 13 13:40:45 2008
From: Ben Nizette <bn@niasdigital.com>
Date: Thu, 13 Mar 2008 22:27:30 +1100
Subject: UIO: Implement a UIO interface for the SMX Cryptengine
To: Hans-J
Previous thread: 2.6.25 -- long standing bug with usb after resume with 4GB ram by Pavel Machek on Thursday, March 13, 2008 - 4:01 am. (4 messages)

Next thread: [PATCH] Shmem: compilation fix for !NUMA case by Pavel Emelyanov on Thursday, March 13, 2008 - 4:32 am. (1 message)