diff options
Diffstat (limited to 'lib/igt_gt.h')
-rw-r--r-- | lib/igt_gt.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/igt_gt.h b/lib/igt_gt.h index 4f8eff50..3d81ec95 100644 --- a/lib/igt_gt.h +++ b/lib/igt_gt.h @@ -30,9 +30,21 @@ void igt_require_hang_ring(int fd, int ring); typedef struct igt_hang_ring { unsigned handle; + unsigned ctx; unsigned ban; + unsigned flags; } igt_hang_ring_t; +#define HANG_POISON 0xc5c5c5c5 + +struct igt_hang_ring igt_hang_ctx(int fd, + uint32_t ctx, + int ring, + unsigned flags, + uint64_t *offset); +#define HANG_ALLOW_BAN 1 +#define HANG_ALLOW_CAPTURE 2 + struct igt_hang_ring igt_hang_ring(int fd, int ring); void igt_post_hang_ring(int fd, struct igt_hang_ring arg); |