summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_wedge.h
blob: 3b5499dfc30d5a0a1a79f3e1377b8eb5f7b79f76 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* SPDX-License-Identifier: MIT */
/*
 * Copyright © 2026 Intel Corporation
 */

#ifndef _XE_WEDGE_H_
#define _XE_WEDGE_H_

#include <linux/atomic.h>
#include <linux/types.h>

#include "xe_device_types.h"
#include "xe_wedge_types.h"

static inline bool xe_wedged(struct xe_device *xe)
{
	return atomic_read(&xe->wedged.flag);
}

void xe_wedge_declare(struct xe_device *xe, unsigned long method);
int xe_wedge_init(struct xe_device *xe);
int xe_wedge_set_mode(struct xe_device *xe, enum xe_wedged_mode mode);

#endif