drm: move i915_gsc_proxy_mei_interface.h under include/drm/intel
authorJani Nikula <jani.nikula@intel.com>
Thu, 30 May 2024 13:19:03 +0000 (16:19 +0300)
committerJani Nikula <jani.nikula@intel.com>
Fri, 31 May 2024 13:10:56 +0000 (16:10 +0300)
Clean up the top level include/drm directory by grouping all the Intel
specific files under a common subdirectory.

Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Dave Airlie <airlied@gmail.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Tomas Winkler <tomas.winkler@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Acked-by: Lucas De Marchi <lucas.demarchi@intel.com>
Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/461662d528c3f327c81b764b7c883cd4519d8729.1717075103.git.jani.nikula@intel.com
drivers/gpu/drm/i915/gt/uc/intel_gsc_proxy.c
drivers/gpu/drm/xe/xe_gsc_proxy.c
drivers/misc/mei/gsc_proxy/mei_gsc_proxy.c
include/drm/i915_gsc_proxy_mei_interface.h [deleted file]
include/drm/intel/i915_gsc_proxy_mei_interface.h [new file with mode: 0644]

index a7d5465655f97a2ea1831e49f8fdc9b0d597747c..e7619d81353c830a893b9431eddd9a93404a2482 100644 (file)
@@ -6,7 +6,7 @@
 #include <linux/component.h>
 
 #include <drm/i915_component.h>
-#include <drm/i915_gsc_proxy_mei_interface.h>
+#include <drm/intel/i915_gsc_proxy_mei_interface.h>
 
 #include "gt/intel_gt.h"
 #include "gt/intel_gt_print.h"
index 1b908d238bd1a66a81efeaeddde32b91262d0264..bd5d2f65644108a90ed822037e45c6ba0249bce9 100644 (file)
@@ -10,7 +10,7 @@
 
 #include <drm/drm_managed.h>
 #include <drm/i915_component.h>
-#include <drm/i915_gsc_proxy_mei_interface.h>
+#include <drm/intel/i915_gsc_proxy_mei_interface.h>
 
 #include "abi/gsc_proxy_commands_abi.h"
 #include "regs/xe_gsc_regs.h"
index 89364bdbb1290f5726a34945679e341b17289493..d5fbaf5d0c8ec89006bead1d90d2dcb4e7a61675 100644 (file)
@@ -18,7 +18,7 @@
 #include <linux/uuid.h>
 #include <drm/drm_connector.h>
 #include <drm/i915_component.h>
-#include <drm/i915_gsc_proxy_mei_interface.h>
+#include <drm/intel/i915_gsc_proxy_mei_interface.h>
 
 /**
  * mei_gsc_proxy_send - Sends a proxy message to ME FW.
diff --git a/include/drm/i915_gsc_proxy_mei_interface.h b/include/drm/i915_gsc_proxy_mei_interface.h
deleted file mode 100644 (file)
index 850dfbf..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/* SPDX-License-Identifier: MIT */
-/*
- * Copyright (c) 2022-2023 Intel Corporation
- */
-
-#ifndef _I915_GSC_PROXY_MEI_INTERFACE_H_
-#define _I915_GSC_PROXY_MEI_INTERFACE_H_
-
-#include <linux/types.h>
-
-struct device;
-struct module;
-
-/**
- * struct i915_gsc_proxy_component_ops - ops for GSC Proxy services.
- * @owner: Module providing the ops
- * @send: sends a proxy message from GSC FW to ME FW
- * @recv: receives a proxy message for GSC FW from ME FW
- */
-struct i915_gsc_proxy_component_ops {
-       struct module *owner;
-
-       /**
-        * @send: Sends a proxy message to ME FW.
-        * @dev: device struct corresponding to the mei device
-        * @buf: message buffer to send
-        * @size: size of the message
-        * Return: bytes sent on success, negative errno value on failure
-        */
-       int (*send)(struct device *dev, const void *buf, size_t size);
-
-       /**
-        * @recv: Receives a proxy message from ME FW.
-        * @dev: device struct corresponding to the mei device
-        * @buf: message buffer to contain the received message
-        * @size: size of the buffer
-        * Return: bytes received on success, negative errno value on failure
-        */
-       int (*recv)(struct device *dev, void *buf, size_t size);
-};
-
-/**
- * struct i915_gsc_proxy_component - Used for communication between i915 and
- * MEI drivers for GSC proxy services
- * @mei_dev: device that provide the GSC proxy service.
- * @ops: Ops implemented by GSC proxy driver, used by i915 driver.
- */
-struct i915_gsc_proxy_component {
-       struct device *mei_dev;
-       const struct i915_gsc_proxy_component_ops *ops;
-};
-
-#endif /* _I915_GSC_PROXY_MEI_INTERFACE_H_ */
diff --git a/include/drm/intel/i915_gsc_proxy_mei_interface.h b/include/drm/intel/i915_gsc_proxy_mei_interface.h
new file mode 100644 (file)
index 0000000..850dfbf
--- /dev/null
@@ -0,0 +1,53 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright (c) 2022-2023 Intel Corporation
+ */
+
+#ifndef _I915_GSC_PROXY_MEI_INTERFACE_H_
+#define _I915_GSC_PROXY_MEI_INTERFACE_H_
+
+#include <linux/types.h>
+
+struct device;
+struct module;
+
+/**
+ * struct i915_gsc_proxy_component_ops - ops for GSC Proxy services.
+ * @owner: Module providing the ops
+ * @send: sends a proxy message from GSC FW to ME FW
+ * @recv: receives a proxy message for GSC FW from ME FW
+ */
+struct i915_gsc_proxy_component_ops {
+       struct module *owner;
+
+       /**
+        * @send: Sends a proxy message to ME FW.
+        * @dev: device struct corresponding to the mei device
+        * @buf: message buffer to send
+        * @size: size of the message
+        * Return: bytes sent on success, negative errno value on failure
+        */
+       int (*send)(struct device *dev, const void *buf, size_t size);
+
+       /**
+        * @recv: Receives a proxy message from ME FW.
+        * @dev: device struct corresponding to the mei device
+        * @buf: message buffer to contain the received message
+        * @size: size of the buffer
+        * Return: bytes received on success, negative errno value on failure
+        */
+       int (*recv)(struct device *dev, void *buf, size_t size);
+};
+
+/**
+ * struct i915_gsc_proxy_component - Used for communication between i915 and
+ * MEI drivers for GSC proxy services
+ * @mei_dev: device that provide the GSC proxy service.
+ * @ops: Ops implemented by GSC proxy driver, used by i915 driver.
+ */
+struct i915_gsc_proxy_component {
+       struct device *mei_dev;
+       const struct i915_gsc_proxy_component_ops *ops;
+};
+
+#endif /* _I915_GSC_PROXY_MEI_INTERFACE_H_ */