lib/intel_* Use igt checks and macros

Various stuff all over. Most done with the igt.cocci spatch, but
with a few fixups by hand. And add igt_core.h includes where needed.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2014-08-26 15:13:06 +02:00
parent baa6f8b34f
commit 71ac5de5a4
6 changed files with 38 additions and 53 deletions
+3 -3
View File
@@ -29,8 +29,10 @@
#include <stdarg.h>
#include <stdlib.h>
#include <sys/types.h>
#include "intel_io.h"
#include "intel_chipset.h"
#include "igt_core.h"
static struct intel_register_range gen_bwcl_register_map[] = {
{0x00000000, 0x00000fff, INTEL_RANGE_RW},
@@ -141,9 +143,7 @@ intel_get_register_map(uint32_t devid)
map.map = gen4_register_map;
map.top = 0x80000;
} else {
fprintf(stderr, "Gen2/3 Ranges are not supported. Please use "
"unsafe access.");
abort();
igt_fail_on("Gen2/3 Ranges are not supported. Please use ""unsafe access.");
}
map.alignment_mask = 0x3;