blob: 78220336062cf50a7eb514c7a21d6c1dccb51a65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
/* SPDX-License-Identifier: MIT */
/*
* Copyright © 2022 Intel Corporation
*/
#ifndef _XE_LRC_TYPES_H_
#define _XE_LRC_TYPES_H_
#include "xe_hw_fence_types.h"
struct xe_bo;
/**
* struct xe_lrc - Logical ring context (LRC) and submission ring object
*/
struct xe_lrc {
/**
* @bo: buffer object (memory) for logical ring context, per process HW
* status page, and submission ring.
*/
struct xe_bo *bo;
/** @tile: tile which this LRC belongs to */
struct xe_tile *tile;
/** @flags: LRC flags */
u32 flags;
/** @ring: submission ring state */
struct {
/** @size: size of submission ring */
u32 size;
/** @tail: tail of submission ring */
u32 tail;
/** @old_tail: shadow of tail */
u32 old_tail;
} ring;
/** @desc: LRC descriptor */
u64 desc;
/** @fence_ctx: context for hw fence */
struct xe_hw_fence_ctx fence_ctx;
};
#endif
|