cxl: Add cxl_check_and_switch_mode() API to switch bi-modal cards
[cascardo/linux.git] / drivers / misc / cxl / Kconfig
1 #
2 # IBM Coherent Accelerator (CXL) compatible devices
3 #
4
5 config CXL_BASE
6         bool
7         default n
8         select PPC_COPRO_BASE
9
10 config CXL_KERNEL_API
11         bool
12         default n
13
14 config CXL_EEH
15         bool
16         default n
17
18 config CXL_AFU_DRIVER_OPS
19         bool
20         default n
21
22 config CXL
23         tristate "Support for IBM Coherent Accelerators (CXL)"
24         depends on PPC_POWERNV && PCI_MSI && EEH
25         select CXL_BASE
26         select CXL_KERNEL_API
27         select CXL_EEH
28         select CXL_AFU_DRIVER_OPS
29         default m
30         help
31           Select this option to enable driver support for IBM Coherent
32           Accelerators (CXL).  CXL is otherwise known as Coherent Accelerator
33           Processor Interface (CAPI).  CAPI allows accelerators in FPGAs to be
34           coherently attached to a CPU via an MMU.  This driver enables
35           userspace programs to access these accelerators via /dev/cxl/afuM.N
36           devices.
37
38           CAPI adapters are found in POWER8 based systems.
39
40           If unsure, say N.
41
42 config CXL_BIMODAL
43         bool "Support for bi-modal CAPI cards"
44         depends on HOTPLUG_PCI_POWERNV = y && CXL || HOTPLUG_PCI_POWERNV = m && CXL = m
45         default y
46         help
47           Select this option to enable support for bi-modal CAPI cards, such as
48           the Mellanox CX-4.