xref: /openbmc/linux/drivers/gpu/drm/i915/selftests/mock_gtt.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
13b5bb0a3SChris Wilson /*
23b5bb0a3SChris Wilson  * Copyright © 2016 Intel Corporation
33b5bb0a3SChris Wilson  *
43b5bb0a3SChris Wilson  * Permission is hereby granted, free of charge, to any person obtaining a
53b5bb0a3SChris Wilson  * copy of this software and associated documentation files (the "Software"),
63b5bb0a3SChris Wilson  * to deal in the Software without restriction, including without limitation
73b5bb0a3SChris Wilson  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
83b5bb0a3SChris Wilson  * and/or sell copies of the Software, and to permit persons to whom the
93b5bb0a3SChris Wilson  * Software is furnished to do so, subject to the following conditions:
103b5bb0a3SChris Wilson  *
113b5bb0a3SChris Wilson  * The above copyright notice and this permission notice (including the next
123b5bb0a3SChris Wilson  * paragraph) shall be included in all copies or substantial portions of the
133b5bb0a3SChris Wilson  * Software.
143b5bb0a3SChris Wilson  *
153b5bb0a3SChris Wilson  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
163b5bb0a3SChris Wilson  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
173b5bb0a3SChris Wilson  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
183b5bb0a3SChris Wilson  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
193b5bb0a3SChris Wilson  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
203b5bb0a3SChris Wilson  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
213b5bb0a3SChris Wilson  * IN THE SOFTWARE.
223b5bb0a3SChris Wilson  *
233b5bb0a3SChris Wilson  */
243b5bb0a3SChris Wilson 
253b5bb0a3SChris Wilson #ifndef __MOCK_GTT_H
263b5bb0a3SChris Wilson #define __MOCK_GTT_H
273b5bb0a3SChris Wilson 
28ab11a927SMasahiro Yamada struct drm_i915_private;
29ab11a927SMasahiro Yamada struct i915_ggtt;
30*cdeea858SAndi Shyti struct intel_gt;
31ab11a927SMasahiro Yamada 
32*cdeea858SAndi Shyti void mock_init_ggtt(struct intel_gt *gt);
33c95e7ce3SChris Wilson void mock_fini_ggtt(struct i915_ggtt *ggtt);
343b5bb0a3SChris Wilson 
35ab53497bSChris Wilson struct i915_ppgtt *mock_ppgtt(struct drm_i915_private *i915, const char *name);
363b5bb0a3SChris Wilson 
373b5bb0a3SChris Wilson #endif /* !__MOCK_GTT_H */
38