patch-2.1.126 linux/include/asm-alpha/hwrpb.h

Next file: linux/include/asm-alpha/io.h
Previous file: linux/include/asm-alpha/hardirq.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.125/linux/include/asm-alpha/hwrpb.h linux/include/asm-alpha/hwrpb.h
@@ -185,6 +185,19 @@
 	unsigned long dsr_offset;	/* "Dynamic System Recognition Data Block Table" */
 };
 
+#ifdef __KERNEL__
+
 extern struct hwrpb_struct *hwrpb;
+
+static inline void
+hwrpb_update_checksum(struct hwrpb_struct *h)
+{
+	unsigned long sum = 0, *l;
+        for (l = (unsigned long *) h; l < (unsigned long *) &h->chksum; ++l)
+                sum += *l;
+        h->chksum = sum;
+}
+
+#endif /* __KERNEL__ */
 
 #endif /* __ALPHA_HWRPB_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov