mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
drm/{i915,xe}/dsb: make struct intel_dsb_buffer opaque
Move the definitions of struct intel_dsb_buffer to the driver specific files, hiding the implementation details from the shared DSB code. Reviewed-by: Animesh Manna <animesh.manna@intel.com> Link: https://patch.msgid.link/08a8a7745042afcffa647f82ae23ebbeda0234c9.1764155417.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
685d529fe1
commit
7e1113e1de
|
|
@ -9,6 +9,12 @@
|
|||
#include "i915_vma.h"
|
||||
#include "intel_dsb_buffer.h"
|
||||
|
||||
struct intel_dsb_buffer {
|
||||
u32 *cmd_buf;
|
||||
struct i915_vma *vma;
|
||||
size_t buf_size;
|
||||
};
|
||||
|
||||
u32 intel_dsb_buffer_ggtt_offset(struct intel_dsb_buffer *dsb_buf)
|
||||
{
|
||||
return i915_ggtt_offset(dsb_buf->vma);
|
||||
|
|
|
|||
|
|
@ -9,13 +9,7 @@
|
|||
#include <linux/types.h>
|
||||
|
||||
struct drm_device;
|
||||
struct i915_vma;
|
||||
|
||||
struct intel_dsb_buffer {
|
||||
u32 *cmd_buf;
|
||||
struct i915_vma *vma;
|
||||
size_t buf_size;
|
||||
};
|
||||
struct intel_dsb_buffer;
|
||||
|
||||
u32 intel_dsb_buffer_ggtt_offset(struct intel_dsb_buffer *dsb_buf);
|
||||
void intel_dsb_buffer_write(struct intel_dsb_buffer *dsb_buf, u32 idx, u32 val);
|
||||
|
|
|
|||
|
|
@ -9,6 +9,12 @@
|
|||
#include "xe_device.h"
|
||||
#include "xe_device_types.h"
|
||||
|
||||
struct intel_dsb_buffer {
|
||||
u32 *cmd_buf;
|
||||
struct i915_vma *vma;
|
||||
size_t buf_size;
|
||||
};
|
||||
|
||||
u32 intel_dsb_buffer_ggtt_offset(struct intel_dsb_buffer *dsb_buf)
|
||||
{
|
||||
return xe_bo_ggtt_addr(dsb_buf->vma->bo);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user