xref: /linux/drivers/gpu/drm/xe/tests/xe_pci_test.h (revision c652dc44192d96820d73a7ecd89d275ca7e4355d)
1 /* SPDX-License-Identifier: GPL-2.0 AND MIT */
2 /*
3  * Copyright © 2023 Intel Corporation
4  */
5 
6 #ifndef _XE_PCI_TEST_H_
7 #define _XE_PCI_TEST_H_
8 
9 #include <linux/types.h>
10 #include <kunit/test.h>
11 
12 #include "xe_platform_types.h"
13 #include "xe_sriov_types.h"
14 
15 struct xe_device;
16 
17 struct xe_pci_fake_data {
18 	enum xe_sriov_mode sriov_mode;
19 	enum xe_platform platform;
20 	enum xe_subplatform subplatform;
21 	u32 graphics_verx100;
22 	u32 media_verx100;
23 	u32 graphics_step;
24 	u32 media_step;
25 };
26 
27 int xe_pci_fake_device_init(struct xe_device *xe);
28 
29 const void *xe_pci_graphics_ip_gen_param(struct kunit *test, const void *prev, char *desc);
30 const void *xe_pci_media_ip_gen_param(struct kunit *test, const void *prev, char *desc);
31 const void *xe_pci_id_gen_param(struct kunit *test, const void *prev, char *desc);
32 const void *xe_pci_live_device_gen_param(struct kunit *test, const void *prev, char *desc);
33 
34 #endif
35