+
+/*
+ * Cache control information.
+ */
+struct cacheinfo {
+ int c_totalsize; /* total size, in bytes */
+ int c_enabled; /* true => cache is enabled */
+ int c_hwflush; /* true => have hardware flush */
+ int c_linesize; /* line size, in bytes */
+ int c_l2linesize; /* log2(linesize) */
+};
+extern struct cacheinfo cacheinfo;
+
+/*
+ * Cache control statistics.
+ */
+struct cachestats {
+ int cs_npgflush; /* # page flushes */
+ int cs_nsgflush; /* # seg flushes */
+ int cs_ncxflush; /* # context flushes */
+ int cs_nraflush; /* # range flushes */
+#ifdef notyet
+ int cs_ra[65]; /* pages/range */
+#endif
+};