diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-04-29 21:13:14 +0000 |
---|---|---|
committer | <ralf@linux-mips.org> | 1997-04-29 21:13:14 +0000 |
commit | 19c9bba94152148523ba0f7ef7cffe3d45656b11 (patch) | |
tree | 40b1cb534496a7f1ca0f5c314a523c69f1fee464 /include/asm-ppc/io.h | |
parent | 7206675c40394c78a90e74812bbdbf8cf3cca1be (diff) |
Import of Linux/MIPS 2.1.36
Diffstat (limited to 'include/asm-ppc/io.h')
-rw-r--r-- | include/asm-ppc/io.h | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/include/asm-ppc/io.h b/include/asm-ppc/io.h index 35cd7e2f2..581d51643 100644 --- a/include/asm-ppc/io.h +++ b/include/asm-ppc/io.h @@ -1,16 +1,28 @@ #ifndef _PPC_IO_H #define _PPC_IO_H -/* Define the particulars of outb/outw/outl "instructions" */ +#include <asm/page.h> + +/* from the Carolina Technical Spec -- Cort */ +#define IBM_ACORN 0x82A +#define SIO_CONFIG_RA 0x398 +#define SIO_CONFIG_RD 0x399 + +#define IBM_HDD_LED 0x808 +#define IBM_EQUIP_PRESENT 0x80c +#define IBM_L2_STATUS 0x80d +#define IBM_L2_INVALIDATE 0x814 +#define IBM_SYS_CTL 0x81c + + +/* Define the particulars of outb/outw/outl "instructions" */ #define SLOW_DOWN_IO #ifndef PCI_DRAM_OFFSET #define PCI_DRAM_OFFSET 0x80000000 #endif -#ifndef KERNELBASE -#define KERNELBASE 0x90000000 -#endif + /* * The PCI bus is inherently Little-Endian. The PowerPC is being @@ -39,11 +51,11 @@ extern inline void * bus_to_virt(unsigned long address) #define readb(addr) (*(volatile unsigned char *) (addr)) #define readw(addr) (*(volatile unsigned short *) (addr)) #define readl(addr) (*(volatile unsigned int *) (addr)) - #define writeb(b,addr) ((*(volatile unsigned char *) (addr)) = (b)) #define writew(b,addr) ((*(volatile unsigned short *) (addr)) = (b)) #define writel(b,addr) ((*(volatile unsigned int *) (addr)) = (b)) + /* * Change virtual addresses to physical addresses and vv. * These are trivial on the 1:1 Linux/i386 mapping (but if we ever |