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
- Lines: 20
- Date:
Mon Oct 12 11:40:13 1998
- Orig file:
v2.1.125/linux/include/asm-alpha/hwrpb.h
- Orig date:
Wed Sep 9 14:51:10 1998
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