summaryrefslogtreecommitdiff
path: root/util/getpir/checkpir.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/getpir/checkpir.c')
-rw-r--r--util/getpir/checkpir.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/util/getpir/checkpir.c b/util/getpir/checkpir.c
index efcc9182cc..2a738e78a4 100644
--- a/util/getpir/checkpir.c
+++ b/util/getpir/checkpir.c
@@ -4,23 +4,11 @@
*/
#include <stdio.h>
-
-#include <device/pci.h>
#include <arch/pirq_routing.h>
-struct irq_info se_arr[50];
-struct irq_routing_table *rt;
-
-int calc_checksum(struct irq_routing_table *rt)
-{
- long sum = 0, i;
- uint8_t *addr, sum2 = 0;
+#include "checksum.h"
- addr = (uint8_t *) rt;
- for (i = 0; i < rt->size; i++)
- sum2 += addr[i];
- return (sum2);
-}
+struct irq_routing_table *rt;
main()
{