summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1999-07-21 20:17:55 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1999-07-21 20:17:55 +0000
commit7510b42bb037a31f780c24a8643ea0b6551daa36 (patch)
tree97ed5cc6f120e0adf8065d1347376a31a1848d75 /sys
parentd8454c8791db4ed9ace7b4bd24f6769c5df76c70 (diff)
define some more cache-related pdc routines
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/hppa/include/pdc.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/sys/arch/hppa/include/pdc.h b/sys/arch/hppa/include/pdc.h
index 8d1da0b3d04..f0fc7a0c614 100644
--- a/sys/arch/hppa/include/pdc.h
+++ b/sys/arch/hppa/include/pdc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pdc.h,v 1.10 1999/04/20 19:47:04 mickey Exp $ */
+/* $OpenBSD: pdc.h,v 1.11 1999/07/21 20:17:54 mickey Exp $ */
/*
* Copyright (c) 1990 mt Xinu, Inc. All rights reserved.
@@ -125,7 +125,9 @@
#define PDC_MODEL_SETBOOTSTOPTS 9 /* set boot test options */
#define PDC_CACHE 5 /* return cache and TLB params */
-#define PDC_CACHE_DFLT 0
+#define PDC_CACHE_DFLT 0 /* return parameters */
+#define PDC_CACHE_SETCS 1 /* set coherence state */
+#define PDC_CACHE_GETSPIDB 2 /* get space-id bits */
#define PDC_HPA 6 /* return HPA of processor */
#define PDC_HPA_DFLT 0
@@ -352,6 +354,24 @@ struct pdc_cache { /* PDC_CACHE */
u_int filler[2];
};
+struct pdc_cst {
+ u_int cstR1 : 16;
+ u_int cst : 3;
+ u_int cstR2 : 13;
+};
+
+struct pdc_coherence { /* PDC_CACHE_SETCS */
+ struct pdc_cst ia;
+#define ia_cst ia.cst
+ struct pdc_cst da;
+#define da_cst da.cst
+ struct pdc_cst ita;
+#define ita_cst ita.cst
+ struct pdc_cst dta;
+#define dta_cst dta.cst
+ u_int filler[28];
+};
+
struct pdc_hpa { /* PDC_HPA */
hppa_hpa_t hpa; /* HPA of processor */
int filler1;