1 /*
2  * Copyright © 2020 Google LLC.
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a
5  * copy of this software and associated documentation files (the "Software"),
6  * to deal in the Software without restriction, including without limitation
7  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8  * and/or sell copies of the Software, and to permit persons to whom the
9  * Software is furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice (including the next
12  * paragraph) shall be included in all copies or substantial portions of the
13  * Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
18  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21  * IN THE SOFTWARE.
22  */
23 
24 /**
25  * SECTION:igt_dummy
26  * @short_description: GT support library for non-GT devices
27  * @title: GT
28  * @include: igt.h
29  *
30  * This library provides various auxiliary helper functions to stub out general
31  * interactions like forcewake handling, injecting hangs or stopping engines
32  * that some tests rely on, but which a non-GT device does not support.
33  */
34 
35 #include "igt_gt.h"
36 
igt_hang_ring(int fd,int ring)37 igt_hang_t igt_hang_ring(int fd, int ring) {
38     return (igt_hang_t) { NULL, 0, 0, 0 };
39 }
40 
igt_post_hang_ring(int fd,igt_hang_t arg)41 void igt_post_hang_ring(int fd, igt_hang_t arg) {
42 }
43 
igt_allow_hang(int fd,unsigned ctx,unsigned flags)44 igt_hang_t igt_allow_hang(int fd, unsigned ctx, unsigned flags) {
45     return (igt_hang_t) { NULL, 0, 0, 0 };
46 }
47 
igt_disallow_hang(int fd,igt_hang_t arg)48 void igt_disallow_hang(int fd, igt_hang_t arg) {
49 }
50