2007-04-11 20:44:42 +02:00
|
|
|
#include "pirq_routing.h"
|
2004-04-15 00:24:50 +02:00
|
|
|
#include "checksum.h"
|
|
|
|
|
|
|
|
int calc_checksum(struct irq_routing_table *rt)
|
|
|
|
{
|
|
|
|
long i;
|
|
|
|
uint8_t *addr, sum = 0;
|
|
|
|
|
|
|
|
addr = (uint8_t *) rt;
|
|
|
|
for (i = 0; i < rt->size; i++)
|
|
|
|
sum += addr[i];
|
|
|
|
return (sum);
|
|
|
|
}
|