Changeset 438b5388 in rtems
- Timestamp:
- 05/14/02 17:07:42 (22 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 3ce2907
- Parents:
- 6fae458
- Location:
- c/src/lib/libcpu/powerpc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libcpu/powerpc/ChangeLog
r6fae458 r438b5388 1 2001-05-14 Till Straumann <strauman@slac.stanford.edu> 2 3 * shared/include/io.h: Per PR215 address the following issues: 4 - _IO_BASE, _ISA_MEM_BASE and PCI_DRAM_OFFSET 5 are no longer defined by libcpu (powerpc/shared/include/io.h) 6 but by the BSP (who is the only one to know the values) 7 - the affected BSP (shared/motorola) headers have been fixed 8 in a separate "libbsp/powerpc/shared" patch. 9 - the DEC 21140 driver (libchip/network/dec21140.c) has been 10 fixed to use PCI_DRAM_OFFSET instead of PREP_PCI_DRAM_OFFSET. 11 and PCI_MEM_BASE instead of PREP_ISA_MEM_BASE. PCI_MEM_BASE 12 is to be defined by the BSP who is using this driver. 13 - the DEC driver also has been fixed to use the newer 14 rtems_bsp_delay_in_bus_cycles() instead of the obsolete 15 delay_in_bus_cycles(). 16 1 17 2001-05-14 Till Straumann <strauman@slac.stanford.edu> 2 18 -
c/src/lib/libcpu/powerpc/shared/include/io.h
r6fae458 r438b5388 24 24 #define PREP_PCI_DRAM_OFFSET 0x80000000 25 25 26 #define _IO_BASE PREP_ISA_IO_BASE 27 #define _ISA_MEM_BASE PREP_ISA_MEM_BASE 28 #define PCI_DRAM_OFFSET PREP_PCI_DRAM_OFFSET 26 #define CHRP_ISA_IO_BASE 0xfe000000 27 #define CHRP_ISA_MEM_BASE 0xfd000000 28 #define CHRP_PCI_DRAM_OFFSET 0x00000000 29 30 /* _IO_BASE, _ISA_MEM_BASE, PCI_DRAM_OFFSET are now defined by bsp.h */ 29 31 30 32 #ifndef ASM 31 33 34 #include <bsp.h> /* for _IO_BASE & friends */ 35 36 /* NOTE: The use of these macros is DISCOURAGED. 37 * you should consider e.g. using in_xxx / out_xxx 38 * with a device specific base address that is 39 * defined by the BSP. This makes drivers easier 40 * to port. 41 */ 32 42 #define inb(port) in_8((unsigned char *)((port)+_IO_BASE)) 33 43 #define outb(val, port) out_8((unsigned char *)((port)+_IO_BASE), (val))
Note: See TracChangeset
for help on using the changeset viewer.