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.
This commit is contained in:
parent
a38cbfb289
commit
817ca0ac3d
|
@ -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 @@ struct iommu_state {
|
|||
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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue