Changeset 438b5388 in rtems


Ignore:
Timestamp:
May 14, 2002, 5:07:42 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
3ce2907
Parents:
6fae458
Message:

2001-05-14 Till Straumann <strauman@…>

  • shared/include/io.h: Per PR215 address the following issues:
    • _IO_BASE, _ISA_MEM_BASE and PCI_DRAM_OFFSET are no longer defined by libcpu (powerpc/shared/include/io.h) but by the BSP (who is the only one to know the values)
    • the affected BSP (shared/motorola) headers have been fixed in a separate "libbsp/powerpc/shared" patch.
    • the DEC 21140 driver (libchip/network/dec21140.c) has been fixed to use PCI_DRAM_OFFSET instead of PREP_PCI_DRAM_OFFSET. and PCI_MEM_BASE instead of PREP_ISA_MEM_BASE. PCI_MEM_BASE is to be defined by the BSP who is using this driver.
    • the DEC driver also has been fixed to use the newer rtems_bsp_delay_in_bus_cycles() instead of the obsolete delay_in_bus_cycles().
Location:
c/src/lib/libcpu/powerpc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/ChangeLog

    r6fae458 r438b5388  
     12001-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
    1172001-05-14      Till Straumann <strauman@slac.stanford.edu>
    218
  • c/src/lib/libcpu/powerpc/shared/include/io.h

    r6fae458 r438b5388  
    2424#define PREP_PCI_DRAM_OFFSET    0x80000000
    2525
    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 */
    2931
    3032#ifndef ASM
    3133
     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 */
    3242#define inb(port)               in_8((unsigned char *)((port)+_IO_BASE))
    3343#define outb(val, port)         out_8((unsigned char *)((port)+_IO_BASE), (val))
Note: See TracChangeset for help on using the changeset viewer.