xref: /linux/drivers/gpu/drm/xe/tests/xe_pci_test.h (revision 220994d61cebfc04f071d69049127657c7e8191b)
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 
11 #include "xe_platform_types.h"
12 #include "xe_sriov_types.h"
13 
14 struct xe_device;
15 
16 struct xe_pci_fake_data {
17 	enum xe_sriov_mode sriov_mode;
18 	enum xe_platform platform;
19 	enum xe_subplatform subplatform;
20 	u32 graphics_verx100;
21 	u32 media_verx100;
22 	u32 graphics_step;
23 	u32 media_step;
24 };
25 
26 int xe_pci_fake_device_init(struct xe_device *xe);
27 
28 const void *xe_pci_graphics_ip_gen_param(const void *prev, char *desc);
29 const void *xe_pci_media_ip_gen_param(const void *prev, char *desc);
30 const void *xe_pci_id_gen_param(const void *prev, char *desc);
31 const void *xe_pci_live_device_gen_param(const void *prev, char *desc);
32 
33 #endif
34