diff options
| author | Greg Kroah-Hartman <gregkh@suse.de> | 2011-04-05 00:41:20 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-04-05 00:41:20 -0400 |
| commit | 4dd2b32f3c48112da2ffe55279aedc10c3784f90 (patch) | |
| tree | bcf9cd8019f030cb825bea7fceaed77ccc974a4f | |
| parent | 00838d4f507ae73f2b5a260c826f6275bd2d4ba7 (diff) | |
staging: memrar: remove driver from tree
It's no longer needed at all.
Cc: Ossama Othman <ossama.othman@intel.com>
Cc: Eugene Epshteyn <eugene.epshteyn@intel.com>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| -rw-r--r-- | drivers/staging/Kconfig | 2 | ||||
| -rw-r--r-- | drivers/staging/Makefile | 1 | ||||
| -rw-r--r-- | drivers/staging/memrar/Kconfig | 15 | ||||
| -rw-r--r-- | drivers/staging/memrar/Makefile | 2 | ||||
| -rw-r--r-- | drivers/staging/memrar/TODO | 43 | ||||
| -rw-r--r-- | drivers/staging/memrar/memrar-abi | 89 | ||||
| -rw-r--r-- | drivers/staging/memrar/memrar.h | 174 | ||||
| -rw-r--r-- | drivers/staging/memrar/memrar_allocator.c | 432 | ||||
| -rw-r--r-- | drivers/staging/memrar/memrar_allocator.h | 149 | ||||
| -rw-r--r-- | drivers/staging/memrar/memrar_handler.c | 1007 |
10 files changed, 0 insertions, 1914 deletions
diff --git a/drivers/staging/Kconfig b/drivers/staging/Kconfig index 18b43fcb4171..dca4a0bb6ca9 100644 --- a/drivers/staging/Kconfig +++ b/drivers/staging/Kconfig | |||
| @@ -117,8 +117,6 @@ source "drivers/staging/hv/Kconfig" | |||
| 117 | 117 | ||
| 118 | source "drivers/staging/vme/Kconfig" | 118 | source "drivers/staging/vme/Kconfig" |
| 119 | 119 | ||
| 120 | source "drivers/staging/memrar/Kconfig" | ||
| 121 | |||
| 122 | source "drivers/staging/sep/Kconfig" | 120 | source "drivers/staging/sep/Kconfig" |
| 123 | 121 | ||
| 124 | source "drivers/staging/iio/Kconfig" | 122 | source "drivers/staging/iio/Kconfig" |
diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile index cfd13cd55efb..eb93012b6f59 100644 --- a/drivers/staging/Makefile +++ b/drivers/staging/Makefile | |||
| @@ -40,7 +40,6 @@ obj-$(CONFIG_VT6655) += vt6655/ | |||
| 40 | obj-$(CONFIG_VT6656) += vt6656/ | 40 | obj-$(CONFIG_VT6656) += vt6656/ |
| 41 | obj-$(CONFIG_HYPERV) += hv/ | 41 | obj-$(CONFIG_HYPERV) += hv/ |
| 42 | obj-$(CONFIG_VME_BUS) += vme/ | 42 | obj-$(CONFIG_VME_BUS) += vme/ |
| 43 | obj-$(CONFIG_MRST_RAR_HANDLER) += memrar/ | ||
| 44 | obj-$(CONFIG_DX_SEP) += sep/ | 43 | obj-$(CONFIG_DX_SEP) += sep/ |
| 45 | obj-$(CONFIG_IIO) += iio/ | 44 | obj-$(CONFIG_IIO) += iio/ |
| 46 | obj-$(CONFIG_CS5535_GPIO) += cs5535_gpio/ | 45 | obj-$(CONFIG_CS5535_GPIO) += cs5535_gpio/ |
diff --git a/drivers/staging/memrar/Kconfig b/drivers/staging/memrar/Kconfig deleted file mode 100644 index cbeebc550904..000000000000 --- a/drivers/staging/memrar/Kconfig +++ /dev/null | |||
| @@ -1,15 +0,0 @@ | |||
| 1 | config MRST_RAR_HANDLER | ||
| 2 | tristate "RAR handler driver for Intel Moorestown platform" | ||
| 3 | depends on RAR_REGISTER | ||
| 4 | ---help--- | ||
| 5 | This driver provides a memory management interface to | ||
| 6 | restricted access regions (RAR) available on the Intel | ||
| 7 | Moorestown platform. | ||
| 8 | |||
| 9 | Once locked down, restricted access regions are only | ||
| 10 | accessible by specific hardware on the platform. The x86 | ||
| 11 | CPU is typically not one of those platforms. As such this | ||
| 12 | driver does not access RAR, and only provides a buffer | ||
| 13 | allocation/bookkeeping mechanism. | ||
| 14 | |||
| 15 | If unsure, say N. | ||
diff --git a/drivers/staging/memrar/Makefile b/drivers/staging/memrar/Makefile deleted file mode 100644 index a3336c00cc5f..000000000000 --- a/drivers/staging/memrar/Makefile +++ /dev/null | |||
| @@ -1,2 +0,0 @@ | |||
| 1 | obj-$(CONFIG_MRST_RAR_HANDLER) += memrar.o | ||
| 2 | memrar-y := memrar_allocator.o memrar_handler.o | ||
diff --git a/drivers/staging/memrar/TODO b/drivers/staging/memrar/TODO deleted file mode 100644 index 435e09ba44c5..000000000000 --- a/drivers/staging/memrar/TODO +++ /dev/null | |||
| @@ -1,43 +0,0 @@ | |||
| 1 | RAR Handler (memrar) Driver TODO Items | ||
| 2 | ====================================== | ||
| 3 | |||
| 4 | Maintainer: Eugene Epshteyn <eugene.epshteyn@intel.com> | ||
| 5 | |||
| 6 | memrar.h | ||
| 7 | -------- | ||
| 8 | 1. This header exposes the driver's user space and kernel space | ||
| 9 | interfaces. It should be moved to <linux/rar/memrar.h>, or | ||
| 10 | something along those lines, when this memrar driver is moved out | ||
| 11 | of `staging'. | ||
| 12 | a. It would be ideal if staging/rar_register/rar_register.h was | ||
| 13 | moved to the same directory. | ||
| 14 | |||
| 15 | memrar_allocator.[ch] | ||
| 16 | --------------------- | ||
| 17 | 1. Address potential fragmentation issues with the memrar_allocator. | ||
| 18 | |||
| 19 | 2. Hide struct memrar_allocator details/fields. They need not be | ||
| 20 | exposed to the user. | ||
| 21 | a. Forward declare struct memrar_allocator. | ||
| 22 | b. Move all three struct definitions to `memrar_allocator.c' | ||
| 23 | source file. | ||
| 24 | c. Add a memrar_allocator_largest_free_area() function, or | ||
| 25 | something like that to get access to the value of the struct | ||
| 26 | memrar_allocator "largest_free_area" field. This allows the | ||
| 27 | struct memrar_allocator fields to be completely hidden from | ||
| 28 | the user. The memrar_handler code really only needs this for | ||
| 29 | statistic gathering on-demand. | ||
| 30 | d. Do the same for the "capacity" field as the | ||
| 31 | "largest_free_area" field. | ||
| 32 | |||
| 33 | 3. Move memrar_allocator.* to kernel `lib' directory since it is HW | ||
| 34 | neutral. | ||
| 35 | a. Alternatively, use lib/genalloc.c instead. | ||
| 36 | b. A kernel port of Doug Lea's malloc() implementation may also | ||
| 37 | be an option. | ||
| 38 | |||
| 39 | memrar_handler.c | ||
| 40 | ---------------- | ||
| 41 | 1. Split user space interface (ioctl code) from core/kernel code, | ||
| 42 | e.g.: | ||
| 43 | memrar_handler.c -> memrar_core.c, memrar_user.c | ||
diff --git a/drivers/staging/memrar/memrar-abi b/drivers/staging/memrar/memrar-abi deleted file mode 100644 index c23fc996a435..000000000000 --- a/drivers/staging/memrar/memrar-abi +++ /dev/null | |||
| @@ -1,89 +0,0 @@ | |||
| 1 | What: /dev/memrar | ||
| 2 | Date: March 2010 | ||
| 3 | KernelVersion: 2.6.34 | ||
| 4 | Contact: Eugene Epshteyn <eugene.epshteyn@intel.com> | ||
| 5 | Description: The Intel Moorestown Restricted Access Region (RAR) | ||
| 6 | Handler driver exposes an ioctl() based interface that | ||
| 7 | allows a user to reserve and release blocks of RAR | ||
| 8 | memory. | ||
| 9 | |||
| 10 | Note: A sysfs based one was not appropriate for the | ||
| 11 | RAR handler's usage model. | ||
| 12 | |||
| 13 | ========================================================= | ||
| 14 | ioctl() Requests | ||
| 15 | ========================================================= | ||
| 16 | RAR_HANDLER_RESERVE | ||
| 17 | ------------------- | ||
| 18 | Description: Reserve RAR block. | ||
| 19 | Type: struct RAR_block_info | ||
| 20 | Direction: in/out | ||
| 21 | Errors: EINVAL (invalid RAR type or size) | ||
| 22 | ENOMEM (not enough RAR memory) | ||
| 23 | |||
| 24 | RAR_HANDLER_STAT | ||
| 25 | ---------------- | ||
| 26 | Description: Get RAR statistics. | ||
| 27 | Type: struct RAR_stat | ||
| 28 | Direction: in/out | ||
| 29 | Errors: EINVAL (invalid RAR type) | ||
| 30 | |||
| 31 | RAR_HANDLER_RELEASE | ||
| 32 | ------------------- | ||
| 33 | Description: Release previously reserved RAR block. | ||
| 34 | Type: 32 bit unsigned integer | ||
| 35 | (e.g. uint32_t), i.e the RAR "handle". | ||
| 36 | Direction: in | ||
| 37 | Errors: EINVAL (invalid RAR handle) | ||
| 38 | |||
| 39 | |||
| 40 | ========================================================= | ||
| 41 | ioctl() Request Parameter Types | ||
| 42 | ========================================================= | ||
| 43 | The structures referred to above are defined as | ||
| 44 | follows: | ||
| 45 | |||
| 46 | /** | ||
| 47 | * struct RAR_block_info - user space struct that | ||
| 48 | * describes RAR buffer | ||
| 49 | * @type: Type of RAR memory (e.g., | ||
| 50 | * RAR_TYPE_VIDEO or RAR_TYPE_AUDIO) [in] | ||
| 51 | * @size: Requested size of a block in bytes to | ||
| 52 | * be reserved in RAR. [in] | ||
| 53 | * @handle: Handle that can be used to refer to | ||
| 54 | * reserved block. [out] | ||
| 55 | * | ||
| 56 | * This is the basic structure exposed to the user | ||
| 57 | * space that describes a given RAR buffer. It used | ||
| 58 | * as the parameter for the RAR_HANDLER_RESERVE ioctl. | ||
| 59 | * The buffer's underlying bus address is not exposed | ||
| 60 | * to the user. User space code refers to the buffer | ||
| 61 | * entirely by "handle". | ||
| 62 | */ | ||
| 63 | struct RAR_block_info { | ||
| 64 | __u32 type; | ||
| 65 | __u32 size; | ||
| 66 | __u32 handle; | ||
| 67 | }; | ||
| 68 | |||
| 69 | /** | ||
| 70 | * struct RAR_stat - RAR statistics structure | ||
| 71 | * @type: Type of RAR memory (e.g., | ||
| 72 | * RAR_TYPE_VIDEO or | ||
| 73 | * RAR_TYPE_AUDIO) [in] | ||
| 74 | * @capacity: Total size of RAR memory | ||
| 75 | * region. [out] | ||
| 76 | * @largest_block_size: Size of the largest reservable | ||
| 77 | * block. [out] | ||
| 78 | * | ||
| 79 | * This structure is used for RAR_HANDLER_STAT ioctl. | ||
| 80 | */ | ||
| 81 | struct RAR_stat { | ||
| 82 | __u32 type; | ||
| 83 | __u32 capacity; | ||
| 84 | |||
