diff options
Diffstat (limited to 'include/asm-ia64/sn/addrs.h')
-rw-r--r-- | include/asm-ia64/sn/addrs.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/asm-ia64/sn/addrs.h b/include/asm-ia64/sn/addrs.h index c916bd22767a..960d626ee589 100644 --- a/include/asm-ia64/sn/addrs.h +++ b/include/asm-ia64/sn/addrs.h | |||
@@ -154,8 +154,9 @@ | |||
154 | * the chiplet id is zero. If we implement TIO-TIO dma, we might need | 154 | * the chiplet id is zero. If we implement TIO-TIO dma, we might need |
155 | * to insert a chiplet id into this macro. However, it is our belief | 155 | * to insert a chiplet id into this macro. However, it is our belief |
156 | * right now that this chiplet id will be ICE, which is also zero. | 156 | * right now that this chiplet id will be ICE, which is also zero. |
157 | * Nasid starts on bit 40. | ||
157 | */ | 158 | */ |
158 | #define PHYS_TO_TIODMA(x) ( (((u64)(x) & NASID_MASK) << 2) | NODE_OFFSET(x)) | 159 | #define PHYS_TO_TIODMA(x) ( (((u64)(NASID_GET(x))) << 40) | NODE_OFFSET(x)) |
159 | #define PHYS_TO_DMA(x) ( (((u64)(x) & NASID_MASK) >> 2) | NODE_OFFSET(x)) | 160 | #define PHYS_TO_DMA(x) ( (((u64)(x) & NASID_MASK) >> 2) | NODE_OFFSET(x)) |
160 | 161 | ||
161 | 162 | ||
@@ -168,7 +169,10 @@ | |||
168 | #define TIO_BWIN_SIZE_BITS 30 /* big window size: 1G */ | 169 | #define TIO_BWIN_SIZE_BITS 30 /* big window size: 1G */ |
169 | #define NODE_SWIN_BASE(n, w) ((w == 0) ? NODE_BWIN_BASE((n), SWIN0_BIGWIN) \ | 170 | #define NODE_SWIN_BASE(n, w) ((w == 0) ? NODE_BWIN_BASE((n), SWIN0_BIGWIN) \ |
170 | : RAW_NODE_SWIN_BASE(n, w)) | 171 | : RAW_NODE_SWIN_BASE(n, w)) |
172 | #define TIO_SWIN_BASE(n, w) (TIO_IO_BASE(n) + \ | ||
173 | ((u64) (w) << TIO_SWIN_SIZE_BITS)) | ||
171 | #define NODE_IO_BASE(n) (GLOBAL_MMR_SPACE | NASID_SPACE(n)) | 174 | #define NODE_IO_BASE(n) (GLOBAL_MMR_SPACE | NASID_SPACE(n)) |
175 | #define TIO_IO_BASE(n) (UNCACHED | NASID_SPACE(n)) | ||
172 | #define BWIN_SIZE (1UL << BWIN_SIZE_BITS) | 176 | #define BWIN_SIZE (1UL << BWIN_SIZE_BITS) |
173 | #define NODE_BWIN_BASE0(n) (NODE_IO_BASE(n) + BWIN_SIZE) | 177 | #define NODE_BWIN_BASE0(n) (NODE_IO_BASE(n) + BWIN_SIZE) |
174 | #define NODE_BWIN_BASE(n, w) (NODE_BWIN_BASE0(n) + ((u64) (w) << BWIN_SIZE_BITS)) | 178 | #define NODE_BWIN_BASE(n, w) (NODE_BWIN_BASE0(n) + ((u64) (w) << BWIN_SIZE_BITS)) |