xref: /openbsd-src/sys/dev/pci/drm/i915/selftests/mock_gtt.h (revision 1bb76ff151c0aba8e3312a604e4cd2e5195cf4b7)
1c349dbc7Sjsg /*
2c349dbc7Sjsg  * Copyright © 2016 Intel Corporation
3c349dbc7Sjsg  *
4c349dbc7Sjsg  * Permission is hereby granted, free of charge, to any person obtaining a
5c349dbc7Sjsg  * copy of this software and associated documentation files (the "Software"),
6c349dbc7Sjsg  * to deal in the Software without restriction, including without limitation
7c349dbc7Sjsg  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8c349dbc7Sjsg  * and/or sell copies of the Software, and to permit persons to whom the
9c349dbc7Sjsg  * Software is furnished to do so, subject to the following conditions:
10c349dbc7Sjsg  *
11c349dbc7Sjsg  * The above copyright notice and this permission notice (including the next
12c349dbc7Sjsg  * paragraph) shall be included in all copies or substantial portions of the
13c349dbc7Sjsg  * Software.
14c349dbc7Sjsg  *
15c349dbc7Sjsg  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16c349dbc7Sjsg  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17c349dbc7Sjsg  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
18c349dbc7Sjsg  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19c349dbc7Sjsg  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20c349dbc7Sjsg  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21c349dbc7Sjsg  * IN THE SOFTWARE.
22c349dbc7Sjsg  *
23c349dbc7Sjsg  */
24c349dbc7Sjsg 
25c349dbc7Sjsg #ifndef __MOCK_GTT_H
26c349dbc7Sjsg #define __MOCK_GTT_H
27c349dbc7Sjsg 
28c349dbc7Sjsg struct drm_i915_private;
29c349dbc7Sjsg struct i915_ggtt;
30*1bb76ff1Sjsg struct intel_gt;
31c349dbc7Sjsg 
32*1bb76ff1Sjsg void mock_init_ggtt(struct intel_gt *gt);
33c349dbc7Sjsg void mock_fini_ggtt(struct i915_ggtt *ggtt);
34c349dbc7Sjsg 
35c349dbc7Sjsg struct i915_ppgtt *mock_ppgtt(struct drm_i915_private *i915, const char *name);
36c349dbc7Sjsg 
37c349dbc7Sjsg #endif /* !__MOCK_GTT_H */
38