# drivers/pvc/Kconfig
#
# Copyright (c) 2020 Panasonic Corporation
# 2020-07-16 Modified
#
# This file may be used subject to the terms and conditions of the
# GNU General Public License Version 2, or any later version
# at your option, as published by the Free Software Foundation.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#

menu "Panasonic PVC Proprientary Modules"

config PVC
	bool "PVC platform"
	default y
	help
	  Select this option if you don't have magic firmware for drivers that
	  need it.

	  If unsure, say Y.

if PVC

source "drivers/pvc/buffer/Kconfig"

#-------------------------------------------------------------------------------


#
# SCSI extention for pvc
#
menuconfig PVC_SCSI
    bool "SCSI extention for pvc"
	depends on SCSI
    default n

if PVC_SCSI

# Extendig maximum number of the SCSI disk partition
config	PVC_SCSI_DISK_PAT_EX
	bool "Extend maximum number of the disk partition (16-->32)"
	default n
	help
		This option extending maximum number of the SCSI disk partition
		to 32 from 16.

# Enabling 16bytes CDB with SG_IO
config  PVC_SGIO_CDB16
	bool "Enabling 16bytes CDB with SG_IO"
	default n
	help
		This option enabling 16bytes CDB with SG_IO.

# Supporting SCSI Disk (USB/SATA)  hot-plug detection, disk maintenance
# functionalities, and data transfer beteen buffer and device.
# Modified 2008-sep-24:
config	PVC_SCSI_DISK_FUNC
	bool "Functionality extentions for PVC (SCSI Disk driver)"
	default n
	help
		Select this option enabling SCSI Disk (USB/SATA) hot-plug insertion
		and removal detection and other functionalities for user space
		applications.

		If unsure, say "N".

## We support two method of detecting a disk hotplug
##  *Use SCSI disk driver extention
##  *Use "sysfs" extention
#choice
#	bool "Select method of detecting hot-plug"
#	depends on PVC_SCSI_DISK_FUNC
#	default PVC_HOTPLUG_METH_SD
#	help
#		We support two method of detecting a disk hotplug, then
#		select one of two.
#
#config	PVC_HOTPLUG_METH_SD
#	boolean "Use SCSI driver extention (default)"
#	help
#		No help available.
#
#config	PVC_HOTPLUG_METH_SYSFS
#	boolean "Use sysfs extention (EXPERIMENTAL)"
#	help
#		No help available.
#
#endchoice

# detecting SCSI block device error
config PVC_SCSI_DISK_BLK_ERROR
    bool "Enable detecting SCSI block device error"
    default n
    depends on PVC_SCSI_DISK_FUNC
    help
	  Select this option if you would like to detect SCSI block device error.

	  If unsure, say Y.
        
# /proc file to debug SCSI DISK
config PVC_SCSI_DISK_PROC_FS
    bool "Enable /proc file to debug SCSI DISK"
    default n
    depends on PROC_FS && PVC_SCSI_DISK_FUNC
    help
	  Select this option if you need proc filesystem for scsi disk.

	  If unsure, say Y.


## 2013/12/16, added by Panasonic --->

# /proc file to debug SCSI DISK for USB-SDCARD device
config PVC_SCSI_DISK_PROC_FS_USBSDC
    bool "Enable /proc file to debug SCSI DISK for USB-SDCARD device"
    default n
    depends on PVC_SCSI_DISK_PROC_FS
    help
	  Select this option if you need proc filesystem for USB-SDCARD device.

if PVC_SCSI_DISK_PROC_FS_USBSDC

config PVC_SCSI_DISK_PROC_FS_USBSDC_VID
    hex "*** Vender ID of USB-SDCARD device"
    default 0x0000

config PVC_SCSI_DISK_PROC_FS_USBSDC_PID
    hex "*** Product ID of USB-SDCARD device"
    default 0x0000

config PVC_SCSI_DISK_PROC_FS_USBSDC_BUSNO
    int "*** Bus Number of USB-SDCARD device"
    default 0

config PVC_SCSI_DISK_PROC_FS_USBSDC_LEVEL
    int "*** Level of USB-SDCARD device"
    default 0

config PVC_SCSI_DISK_PROC_FS_USBSDC_PORT
    int "*** Port Number of USB-SDCARD device"
    default 0

endif # PVC_SCSI_DISK_PROC_FS_USBSDC

## <--- 2013/12/16, added by Panasonic


# ## 2010/6/3, Added by Panasonic ==>
#
# # USB port test
# config PVC_SCSI_DISK_USB_PORT_TEST
#    bool "Enable USB port test"
#    default n
#    depends on PVC_SCSI_DISK_FUNC
#    help
#      This option enables USB port test function.
#
#	  If unsure, say Y.
#
# ## <== 2010/6/3, Added by Panasonic

endif # PVC_SCSI

#-------------------------------------------------------------------------------

endif # PVC

endmenu


