summaryrefslogtreecommitdiffstats
path: root/drivers/staging/sep/sep_dev.h
Commit message (Collapse)AuthorAgeFilesLines
* Staging: sep: kick out various fields we can prove are not neededAlan Cox2009-09-151-22/+8Star
| | | | | | | | | | | | | | | | | | | | | | | #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>
* Staging: sep: Implement some proper open/close methodsAlan Cox2009-09-151-0/+2
| | | | | | | | 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>
* Staging: sep: tidy firmware loadAlan Cox2009-09-151-1/+1
| | | | | | | | | | | 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>
* Staging: sep: Try and get kernel address and user address types rightAlan Cox2009-09-151-7/+7
| | | | | | | | 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>
* Staging: sep: Fix PCI irq usageAlan Cox2009-09-151-3/+0Star
| | | | | | | | 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>
* Staging: sep: rename some fieldsAlan Cox2009-09-151-21/+21
| | | | | | | 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>
* Staging: sep: use O_NDELAY instead of magic APIsAlan Cox2009-09-151-3/+0Star
| | | | | | | | 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>
* Staging: sep: make everything staticAlan Cox2009-09-151-1/+1
| | | | | | | 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>
* Staging: sep: indent passAlan Cox2009-09-151-5/+4Star
| | | | | | | | 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>
* Staging: sep: rework write_register/read_registerAlan Cox2009-09-151-5/+15
| | | | | | | | 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>
* Staging: sep: Create a structure to hold all the current crap spewed about ↵Alan Cox2009-09-151-0/+119
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>