Module Name: src
Committed By: mrg
Date: Sun Mar 20 20:47:10 UTC 2011
Modified Files:
src/sys/arch/sparc64/dev: iommuvar.h
Log Message:
add a new is_flags member to strut iommu_state. add two flags:
IOMMU_FLUSH_CACHE - extra flushes needed for some pyro
IOMMU_TSBSIZE_IN_PTSB - different ptsb assignment for pyro
partly from openbsd.
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/sparc64/dev/iommuvar.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sparc64/dev/iommuvar.h
diff -u src/sys/arch/sparc64/dev/iommuvar.h:1.19 src/sys/arch/sparc64/dev/iommuvar.h:1.20
--- src/sys/arch/sparc64/dev/iommuvar.h:1.19 Wed Mar 16 05:49:43 2011
+++ src/sys/arch/sparc64/dev/iommuvar.h Sun Mar 20 20:47:10 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: iommuvar.h,v 1.19 2011/03/16 05:49:43 mrg Exp $ */
+/* $NetBSD: iommuvar.h,v 1.20 2011/03/20 20:47:10 mrg Exp $ */
/*
* Copyright (c) 1999 Matthew R. Green
@@ -55,6 +55,9 @@
u_int is_dvmaend;
int64_t is_cr; /* IOMMU control regiter value */
struct extent *is_dvmamap; /* DVMA map for this instance */
+ int is_flags;
+#define IOMMU_FLUSH_CACHE 0x00000001
+#define IOMMU_TSBSIZE_IN_PTSB 0x00000002 /* PCIe */
struct strbuf_ctl *is_sb[2]; /* Streaming buffers if any */