aboutsummaryrefslogtreecommitdiffstats
path: root/include/misc/cxl.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/misc/cxl.h')
-rw-r--r--include/misc/cxl.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/include/misc/cxl.h b/include/misc/cxl.h
index 6a3711a2e217..74da2e440763 100644
--- a/include/misc/cxl.h
+++ b/include/misc/cxl.h
@@ -39,31 +39,6 @@
39bool cxl_slot_is_supported(struct pci_dev *dev, int flags); 39bool cxl_slot_is_supported(struct pci_dev *dev, int flags);
40 40
41 41
42#define CXL_BIMODE_CXL 1
43#define CXL_BIMODE_PCI 2
44
45/*
46 * Check the mode that the given bi-modal CXL adapter is currently in and
47 * change it if necessary. This does not apply to AFU drivers.
48 *
49 * If the mode matches the requested mode this function will return 0 - if the
50 * driver was expecting the generic CXL driver to have bound to the adapter and
51 * it gets this return value it should fail the probe function to give the CXL
52 * driver a chance to probe it.
53 *
54 * If the mode does not match it will start a background task to unplug the
55 * device from Linux and switch its mode, and will return -EBUSY. At this
56 * point the calling driver should make sure it has released the device and
57 * fail its probe function.
58 *
59 * The offset of the CXL VSEC can be provided to this function. If 0 is passed,
60 * this function will search for a CXL VSEC with ID 0x1280 and return -ENODEV
61 * if it is not found.
62 */
63#ifdef CONFIG_CXL_BIMODAL
64int cxl_check_and_switch_mode(struct pci_dev *dev, int mode, int vsec);
65#endif
66
67/* Get the AFU associated with a pci_dev */ 42/* Get the AFU associated with a pci_dev */
68struct cxl_afu *cxl_pci_to_afu(struct pci_dev *dev); 43struct cxl_afu *cxl_pci_to_afu(struct pci_dev *dev);
69 44