aboutsummaryrefslogtreecommitdiffstats
path: root/arch/xtensa/Kconfig
diff options
context:
space:
mode:
authorVictor Prupis <vnp@vnp_fc3.hq.tensilica.com>2008-05-19 17:50:38 -0400
committerChris Zankel <chris@zankel.net>2013-02-23 22:22:41 -0500
commitb6c7e873daf765e41233b9752083b66442703b7a (patch)
treef073ce1cf3f0ce32e4f4d177348d8aece9d8040b /arch/xtensa/Kconfig
parentc5a285bb1b54e8b636cb522a9eb9c9ad232a23f8 (diff)
xtensa: ISS: add host file-based simulated disk
Simdisk is a block device that maps to a file in the host file system. It is usable for testing in the simulated environment, like xt-sim or QEMU. Device binding to host file may be changed at runtime via proc interface provided the device is not in use. Number of block devices and initial binding to host files is controlled via kernel/module parameters, with defaults specified in the kernel configuration. Signed-off-by: Victor Prupis <vnp@tensilica.com> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'arch/xtensa/Kconfig')
-rw-r--r--arch/xtensa/Kconfig36
1 files changed, 36 insertions, 0 deletions
diff --git a/arch/xtensa/Kconfig b/arch/xtensa/Kconfig
index 79f0a2acf25d..f83780f8f290 100644
--- a/arch/xtensa/Kconfig
+++ b/arch/xtensa/Kconfig
@@ -203,6 +203,42 @@ config BUILTIN_DTB
203 string "DTB to build into the kernel image" 203 string "DTB to build into the kernel image"
204 depends on OF 204 depends on OF
205 205
206config BLK_DEV_SIMDISK
207 tristate "Host file-based simulated block device support"
208 default n
209 depends on XTENSA_PLATFORM_ISS
210 help
211 Create block devices that map to files in the host file system.
212 Device binding to host file may be changed at runtime via proc
213 interface provided the device is not in use.
214
215config BLK_DEV_SIMDISK_COUNT
216 int "Number of host file-based simulated block devices"
217 range 1 10
218 depends on BLK_DEV_SIMDISK
219 default 2
220 help
221 This is the default minimal number of created block devices.
222 Kernel/module parameter 'simdisk_count' may be used to change this
223 value at runtime. More file names (but no more than 10) may be
224 specified as parameters, simdisk_count grows accordingly.
225
226config SIMDISK0_FILENAME
227 string "Host filename for the first simulated device"
228 depends on BLK_DEV_SIMDISK = y
229 default ""
230 help
231 Attach a first simdisk to a host file. Conventionally, this file
232 contains a root file system.
233
234config SIMDISK1_FILENAME
235 string "Host filename for the second simulated device"
236 depends on BLK_DEV_SIMDISK = y && BLK_DEV_SIMDISK_COUNT != 1
237 default ""
238 help
239 Another simulated disk in a host file for a buildroot-independent
240 storage.
241
206source "mm/Kconfig" 242source "mm/Kconfig"
207 243
208source "drivers/pcmcia/Kconfig" 244source "drivers/pcmcia/Kconfig"