diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-11-18 13:31:16 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-11-18 13:31:16 +0000 |
commit | 5147a4f3f13245820c19f0e9def77756b45b7735 (patch) | |
tree | dd59ab083c6aae8714e9826f46075e4373000a3b /include | |
parent | d523832cf12007b3242e50bb77d0c9e63e0b6518 (diff) |
More Atlas & Malta bits from Carsten's patch.
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-mips/mips-boards/generic.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/asm-mips/mips-boards/generic.h b/include/asm-mips/mips-boards/generic.h index 51154083a..f1955e01e 100644 --- a/include/asm-mips/mips-boards/generic.h +++ b/include/asm-mips/mips-boards/generic.h @@ -54,12 +54,17 @@ #define MIPS_GT_BASE (KSEG1ADDR(0x1be00000)) /* - * Because of an error/peculiarity in the Galileo chip, we need to swap the - * bytes when running bigendian. + * Because of the way the internal register works on the Galileo chip, + * we need to swap the bytes when running bigendian. */ #define GT_WRITE(ofs, data) \ *(volatile u32 *)(MIPS_GT_BASE+ofs) = cpu_to_le32(data) #define GT_READ(ofs, data) \ data = le32_to_cpu(*(volatile u32 *)(MIPS_GT_BASE+ofs)) +#define GT_PCI_WRITE(ofs, data) \ + *(volatile u32 *)(MIPS_GT_BASE+ofs) = data +#define GT_PCI_READ(ofs, data) \ + data = *(volatile u32 *)(MIPS_GT_BASE+ofs) + #endif /* !(_MIPS_GENERIC_H) */ |