]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
xshm: Makefile and Kconfig for M7400 Shared Memory Drivers
authorSjur Brændeland <sjur.brandeland@stericsson.com>
Fri, 18 Nov 2011 14:25:02 +0000 (15:25 +0100)
committerLinus Walleij <linus.walleij@stericsson.com>
Sun, 18 Dec 2011 21:05:36 +0000 (22:05 +0100)
CONFIG_XSHM should be selected from architectures supporting
C2C, this will enable the XSHM configuration.

Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
drivers/Kconfig
drivers/Makefile
drivers/xshm/Kconfig [new file with mode: 0644]
drivers/xshm/Makefile [new file with mode: 0644]

index b5e6f243f7498b2e757f2ce503ed9d91f45e03d6..c91a13cc8c8f7384bcaa2511d57cc887ae51eef1 100644 (file)
@@ -136,4 +136,6 @@ source "drivers/hv/Kconfig"
 
 source "drivers/devfreq/Kconfig"
 
+source "drivers/xshm/Kconfig"
+
 endmenu
index 1b3142127bf5f7308f3e7fc9fb83ff88a4730f2e..eedd8e5d4af12ffc26789b6333bdcd12c416b926 100644 (file)
@@ -120,6 +120,7 @@ obj-$(CONFIG_VLYNQ)         += vlynq/
 obj-$(CONFIG_STAGING)          += staging/
 obj-y                          += platform/
 obj-y                          += ieee802154/
+obj-$(CONFIG_XSHM)             += xshm/
 #common clk code
 obj-y                          += clk/
 
diff --git a/drivers/xshm/Kconfig b/drivers/xshm/Kconfig
new file mode 100644 (file)
index 0000000..0993346
--- /dev/null
@@ -0,0 +1,61 @@
+#
+# XSHM Framework
+#
+
+config XSHM
+       tristate
+       default n
+       depends on EXPERIMENTAL
+
+if XSHM && NET
+
+menu "XSHM drivers and interfaces"
+
+config DUMMY_C2C
+       tristate "Dummy C2C GENIO driver"
+       depends on !C2C
+       default XSHM
+       ---help---
+       Say "Y" or "M" if you want to compile a dummy C2C driver.
+       Use this if you want to compile without the real
+       C2C driver available.
+
+config XSHM_BUS
+       tristate
+       default XSHM_DEV
+
+config XSHM_BOOT
+       tristate
+       depends on XSHM_DEV
+       default XSHM_DEV
+
+config XSHM_DEV
+       tristate "XSHM Channels for External Shared Memory (XSHM)"
+       depends on DUMMY_C2C || C2C
+       select XSHM_BUS
+       select XSHM_BOOT
+       default XSHM
+       ---help---
+       Say "Y" to use External Shared Memory (XSHM) IPC mechanism.
+       XSHM is an IPC protocol used to talk to external device such
+       as modem over a shared memory (e.g. Chip to Chip).
+       Only say "M" here if you want to test XSHM and need to load
+       and unload its module.
+       If unsure say N.
+
+config XSHM_CHR
+       tristate "Character device for External Shared Memory (XSHM)"
+       depends on XSHM_DEV
+       default XSHM_DEV
+       ---help---
+       Say "Y" to use a character device for the External Shared
+       Memory (XSHM) IPC mechanism. XSHM is an IPC protocol used to
+       talk to external device such as modem over a shared memory
+       (e.g. Chip to Chip).
+       Only say "M" here if you want to test XSHM and need to load
+       and unload its module.
+       If unsure say N.
+
+endmenu
+
+endif
diff --git a/drivers/xshm/Makefile b/drivers/xshm/Makefile
new file mode 100644 (file)
index 0000000..001cd79
--- /dev/null
@@ -0,0 +1,5 @@
+obj-$(CONFIG_XSHM_BUS) += xshm_bus.o
+obj-$(CONFIG_XSHM_BOOT) += xshm_boot.o
+obj-$(CONFIG_XSHM_DEV) += xshm_dev.o
+obj-$(CONFIG_XSHM_CHR) +=  xshm_chr.o
+obj-$(CONFIG_DUMMY_C2C) +=  dummy_c2c_genio.o