summaryrefslogtreecommitdiff
path: root/util/getpir/getpir.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/getpir/getpir.c')
-rw-r--r--util/getpir/getpir.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/util/getpir/getpir.c b/util/getpir/getpir.c
index 8c868fe028..110eef9645 100644
--- a/util/getpir/getpir.c
+++ b/util/getpir/getpir.c
@@ -3,15 +3,10 @@
Aug 26 2001 , Nikolai Vladychevski, <niko@isl.net.mx>
*/
-#include <unistd.h>
#include <stdio.h>
-#include <string.h>
#include <device/pci.h>
-#include <pirq_routing.h>
-
-#define PIRQ_SIGNATURE (('$' << 0) + ('P' << 8) + ('I' << 16) + ('R' << 24))
-#define PIRQ_VERS 0x0100
+#include <arch/pirq_routing.h>
struct irq_info se_arr[50];
struct irq_routing_table rt;
@@ -65,7 +60,7 @@ main()
count = count + rcount;
printf("Version is:%d Table size:%d\n",
rt.version, rt.size);
- if (rt.version != PIRQ_VERS) {
+ if (rt.version != PIRQ_VERSION) {
printf("Invalid version\n");
valid = 0;
}