1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (C) 2001 Mike Corrigan & Dave Engebretsen, IBM Corporation
8 #ifndef _ASM_POWERPC_TCE_H
9 #define _ASM_POWERPC_TCE_H
12 #include <asm/iommu.h>
15 * Tces come in two formats, one for the virtual bus and a different
16 * format for PCI. PCI TCEs can have hardware or software maintianed
22 #define TCE_ENTRY_SIZE 8 /* each TCE is 64 bits */
23 #define TCE_VALID 0x800 /* TCE valid */
24 #define TCE_ALLIO 0x400 /* TCE valid for all lpars */
25 #define TCE_PCI_WRITE 0x2 /* write from PCI allowed */
26 #define TCE_PCI_READ 0x1 /* read from PCI allowed */
27 #define TCE_VB_WRITE 0x1 /* write from VB allowed */
29 #endif /* __KERNEL__ */
30 #endif /* _ASM_POWERPC_TCE_H */