History log of /drivers/staging/sep/sep_dev.h
Revision Date Author Comments
9196dc1129fbb3ecf93027224a6bdbc86d086e3a 10-Feb-2012 Mark A. Allyn <mark.a.allyn@intel.com> staging: sep: reworked crypto layer

This gets the SEP crypto layer up and running with things like dmcrypt.
It's a fairly big set of changes because it has to rework the whole context
handling system.

[This is picked out of the differences between the upstream driver and
the staging driver. I'm resolving the differences as a series of updates -AC]

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
ff3d9c3c90c6edcb975c390db3671713899c2842 28-Dec-2011 Mark Allyn <mark.a.allyn@intel.com> staging: sep: SEP update

This is basically a rewrite so there isn't a nice easy to present way of
providing this as a patch series. This patch is a pull of Mark's new driver into
the upstream staging area. On top of that are a series of patches by
Andy Shevchenko to make it build on the current tree, fix a few things and
even get it passed sparse.

The new driver supports the kernel crypto layer, passes the coding style checks,
passes human taste checks and has proper kernel-doc formatted comments.

I've then folded back in some later fixes it was missing that got applied to
to the kernel tree.

This should be ready for more serious review with a view to migration from
the staging tree shortly.

Signed-off-by: Mark Allyn <mark.a.allyn@intel.com>
[Forward port and some bug fixing]
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
[Fold and tweaks for 3.2]
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1254a459a376962ba771618742af47c8a1b92a6e 04-Mar-2011 Mark Allyn <mark.a.allyn@intel.com> staging: sep: remove unused ioctls

Also remove associated functions, structures, and defines

Signed-off-by: Mark Allyn <mark.a.allyn@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
eb6b420da13fee2edc30b7bde67c0c8993c4c30d 02-Dec-2010 Peter Huewe <peterhuewe@gmx.de> staging/sep: Fix sparse warning 'do-while statement is not a compound statement'

This patch fixes the warning generated by sparse: 'do-while statement is
not a compound statement' by adding the necessary brackets around the do
block

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
4856ab33eb5c33bdf17a5a1bd8d720bffe5f6110 18-Nov-2010 Mark Allyn <mark.a.allyn@intel.com> Staging: sep: Introduce sep driver

This driver is for the Security Processor, a dedicated encryption
and decryption driver that is used on the Intel mobile platform.

This has been checked with checkpatch and there are four
warnings for lines over 80 charactors.

There is one compile warning. This is for a function that is
only used if the rar register driver is needed. There is an
ifdef in a header file that stubs out the rar register driver
if the rar register is not configured.

This driver does add a configuration, which is CONFIG_DX_SEP.

Signed-off-by: Mark Allyn <mark.a.allyn@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
d49824c06778830c82906884b94d94354c3bbdc8 23-Aug-2010 Greg Kroah-Hartman <gregkh@suse.de> Staging: sep: remove driver

It's currently stalled and the original submitter recommended that it
just be dropped at this point in time due.

Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
70ae04e6cc38454187c9ade023f2bdce474e6936 14-Aug-2009 Alan Cox <alan@linux.intel.com> Staging: sep: kick out various fields we can prove are not needed

#1: sep->cache_addr is assigned to sep->rar_addr and never changed
sep->rar_addr is never assigned after this point

#2: sep->cache_bus ditto for sep->rar_bus

#3 sep->rar_region_addr is assigned but necer used

#4 sep->io_addr is in fact private to the probe function and
the same as the reg_addr

#5 The remainig sep->io fields are in fact function locals

#6 sep->message_shared_area is assigned once from sep->shared_area
sep->shared_area does not then change

#7 sep->shared_addr and sep->shared_area_addr are the same thing, ditto
for the bus addresses.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
4c29e9799878b6a5fc9ec37d40132c2380911e0f 14-Aug-2009 Alan Cox <alan@linux.intel.com> Staging: sep: Implement some proper open/close methods

Use the mutex as a protection for open close rather than leaving it hanging
invalidly across userspace.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
6f13ea3df5de2af5c50e15218553c2434e455be9 14-Aug-2009 Alan Cox <alan@linux.intel.com> Staging: sep: tidy firmware load

Start by removing unused fields and then work this back to eliminate unused
chunks of the firmware loading ioctl (ie almost all of it)

Also fix the wrong handling of shared allocations and allocate the rar
region properly with dma_alloc_coherent not kmalloc, as it is device shared.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
790cf1b912d3166746c8a1e1e807019a397d85d9 07-Aug-2009 Alan Cox <alan@linux.intel.com> Staging: sep: Try and get kernel address and user address types right

We will need to tackle this in order to begin doing something about the
bus handled and shared memory object mess.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
6343cefdc8174f2d00abf8201ecd17d354e5ddf7 07-Aug-2009 Alan Cox <alan@linux.intel.com> Staging: sep: Fix PCI irq usage

Don't read the IRQ from the device, the device has no idea what is going on
in the full bus topology and remapping above PCI. Use the pdev->irq field.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
904290c0b7b48e757b3dc9451f4b014f42c25098 07-Aug-2009 Alan Cox <alan@linux.intel.com> Staging: sep: rename some fields

Make them more Linuxlike - also favour _bus over _phys

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
577092ac155005ecb3a1385d628ef27fc9b52b72 07-Aug-2009 Alan Cox <alan@linux.intel.com> Staging: sep: use O_NDELAY instead of magic APIs

Open is still completely bogus in this driver but we'll tackle that later -
for now fix the bogus API

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
b10b483efe9f232d5d33bec2bbf91b359be590bd 07-Aug-2009 Alan Cox <alan@linux.intel.com> Staging: sep: make everything static

Now we have it in one file we can make it all static and see what falls out

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
d19cf32fddeb05a13799fd766fced4204cc9164d 06-Aug-2009 Alan Cox <alan@linux.intel.com> Staging: sep: indent pass

Ok time to indent and get the code in vague shape. No other changes in this
patch.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
79de99e864fb731392bec78f251ce0310fed5d9a 06-Aug-2009 Alan Cox <alan@linux.intel.com> Staging: sep: rework write_register/read_register

Replace the macros with an inline to get type safety and pass sep_dev
instead of the reg pointer

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
f5e3980f9b28b703bc009af9dfa33ae2236503da 06-Aug-2009 Alan Cox <alan@linux.intel.com> Staging: sep: Create a structure to hold all the current crap spewed about as globals

For now keep the field names matching the variable names

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>