Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc64/dev add a new is_flags member to strut iomm...



details:   https://anonhg.NetBSD.org/src/rev/50793c46fb0e
branches:  trunk
changeset: 763460:50793c46fb0e
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Mar 20 20:47:10 2011 +0000

description:
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.

diffstat:

 sys/arch/sparc64/dev/iommuvar.h |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r eca583b49bee -r 50793c46fb0e sys/arch/sparc64/dev/iommuvar.h
--- a/sys/arch/sparc64/dev/iommuvar.h   Sun Mar 20 20:43:34 2011 +0000
+++ b/sys/arch/sparc64/dev/iommuvar.h   Sun Mar 20 20:47:10 2011 +0000
@@ -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 */
 



Home | Main Index | Thread Index | Old Index