summaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/lib/banal.h
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-11-22 13:54:48 -0800
committerJosh Blum <josh@joshknows.com>2010-12-11 18:43:09 -0800
commit95499e2e132b1c619704b6fbc452e661633b3233 (patch)
tree963a1e67d8a4cd2c24547272a812ba762cfb0e77 /firmware/microblaze/lib/banal.h
parent6004410a7b73a52d95b8f5f0cf0fa969bef4e910 (diff)
downloaduhd-95499e2e132b1c619704b6fbc452e661633b3233.tar.gz
uhd-95499e2e132b1c619704b6fbc452e661633b3233.tar.bz2
uhd-95499e2e132b1c619704b6fbc452e661633b3233.zip
packet_router: dont register mac, also reorganized some tidbits
Diffstat (limited to 'firmware/microblaze/lib/banal.h')
-rw-r--r--firmware/microblaze/lib/banal.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/firmware/microblaze/lib/banal.h b/firmware/microblaze/lib/banal.h
index 634234350..eb7ed509a 100644
--- a/firmware/microblaze/lib/banal.h
+++ b/firmware/microblaze/lib/banal.h
@@ -19,27 +19,9 @@
#define INCLUDED_BANAL_H
#include <stdint.h>
-#include <lwip/ip_addr.h>
#define dimof(x) (sizeof(x)/sizeof(x[0]))
-/*
- * 1's complement sum for IP and UDP headers
- *
- * init chksum to zero to start.
- */
-static inline unsigned int
-CHKSUM(unsigned int x, unsigned int *chksum)
-{
- *chksum += x;
- *chksum = (*chksum & 0xffff) + (*chksum>>16);
- *chksum = (*chksum & 0xffff) + (*chksum>>16);
- return x;
-}
-
-unsigned int
-chksum_buffer(unsigned short *buf, int nshorts, unsigned int initial_chksum);
-
//-------------- unsigned get_int 8, 16, 32, 64 --------------//
static inline uint8_t