mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-03 01:10:39 -05:00
iommu: dmar: Provide helper to copy shared irte fields
Instead of open coding, provide a helper function to copy the shared irte fields. Signed-off-by: Thomas Gleixner <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
This commit is contained in:
parent
3bf1747222
commit
bf56027ff4
1 changed files with 12 additions and 0 deletions
|
|
@ -249,6 +249,18 @@ struct irte {
|
|||
};
|
||||
};
|
||||
|
||||
static inline void dmar_copy_shared_irte(struct irte *dst, struct irte *src)
|
||||
{
|
||||
dst->present = src->present;
|
||||
dst->fpd = src->fpd;
|
||||
dst->avail = src->avail;
|
||||
dst->pst = src->pst;
|
||||
dst->vector = src->vector;
|
||||
dst->sid = src->sid;
|
||||
dst->sq = src->sq;
|
||||
dst->svt = src->svt;
|
||||
}
|
||||
|
||||
#define PDA_LOW_BIT 26
|
||||
#define PDA_HIGH_BIT 32
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue