1 /* checkpir.c : This software is released under GPL
2 * For coreboot use only
3 * Aug 26 2001 , Nikolai Vladychevski, <niko@isl.net.mx>
7 #include "pirq_routing.h"
10 struct irq_routing_table
*rt
;
16 rt
= (struct irq_routing_table
*) &intel_irq_routing_table
;
17 sum
= calc_checksum(rt
);
19 printf("Validating checksum, file: irq_tables.c that was in ./ at compile time...\n");
20 printf("(no other tests are done)\n");
23 printf("Checksum for IRQ Routing table is ok. You can use irq_tables.c in coreboot now.\n");
25 newsum
= rt
->checksum
- sum
;
26 printf("BAD CHECKSUM for IRQ Routing table !!!!\n");
27 printf("If you want to make it valid, change the checksum to: %#x\n",