xref: /linux/drivers/gpu/drm/i915/selftests/mock_region.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1232a6ebaSMatthew Auld /* SPDX-License-Identifier: MIT */
2232a6ebaSMatthew Auld /*
3232a6ebaSMatthew Auld  * Copyright © 2019 Intel Corporation
4232a6ebaSMatthew Auld  */
5232a6ebaSMatthew Auld 
6232a6ebaSMatthew Auld #ifndef __MOCK_REGION_H
7232a6ebaSMatthew Auld #define __MOCK_REGION_H
8232a6ebaSMatthew Auld 
9ab11a927SMasahiro Yamada #include <linux/types.h>
10ab11a927SMasahiro Yamada 
11ab11a927SMasahiro Yamada struct drm_i915_private;
12ab11a927SMasahiro Yamada struct intel_memory_region;
13ab11a927SMasahiro Yamada 
14232a6ebaSMatthew Auld struct intel_memory_region *
15232a6ebaSMatthew Auld mock_region_create(struct drm_i915_private *i915,
16232a6ebaSMatthew Auld 		   resource_size_t start,
17232a6ebaSMatthew Auld 		   resource_size_t size,
18232a6ebaSMatthew Auld 		   resource_size_t min_page_size,
19*235582caSMatthew Auld 		   resource_size_t io_start,
20*235582caSMatthew Auld 		   resource_size_t io_size);
21232a6ebaSMatthew Auld 
22232a6ebaSMatthew Auld #endif /* !__MOCK_REGION_H */
23