get memory mapped i/o working

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1347 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Greg Watson 2004-01-22 00:09:10 +00:00
parent 7a186938b0
commit 49ad3fe4c3
1 changed files with 3 additions and 10 deletions

View File

@ -11,16 +11,9 @@
#define SLOW_DOWN_IO #define SLOW_DOWN_IO
#define PMAC_ISA_MEM_BASE 0 #ifndef _IO_BASE
#define PMAC_PCI_DRAM_OFFSET 0 #define _IO_BASE 0
#define CHRP_ISA_IO_BASE 0xf8000000 #endif
#define CHRP_ISA_MEM_BASE 0xf7000000
#define CHRP_PCI_DRAM_OFFSET 0
#define PREP_ISA_IO_BASE 0x80000000
#define PREP_ISA_MEM_BASE 0xc0000000
#define PREP_PCI_DRAM_OFFSET 0x80000000
#define _IO_BASE 0
#define readb(addr) in_8((volatile uint8_t *)(addr)) #define readb(addr) in_8((volatile uint8_t *)(addr))
#define writeb(b,addr) out_8((volatile uint8_t *)(addr), (b)) #define writeb(b,addr) out_8((volatile uint8_t *)(addr), (b))