cvs commit: src/sys/conf files.powerpc src/sys/dev/powermac_nvram powermac_nvram.c src/sys/dev/uart uart_cpu_powerpc.c src/sys/powerpc/aim ofw_machdep.c src/sys/powerpc/conf NOTES src/sys/powerpc/include _bus.h bus.h src/sys/powerpc/powermac ...

Marcel Moolenaar marcel at FreeBSD.org
Wed Dec 19 10:00:50 PST 2007


marcel      2007-12-19 18:00:50 UTC

  FreeBSD src repository

  Modified files:
    sys/conf             files.powerpc 
    sys/dev/powermac_nvram powermac_nvram.c 
    sys/dev/uart         uart_cpu_powerpc.c 
    sys/powerpc/aim      ofw_machdep.c 
    sys/powerpc/conf     NOTES 
    sys/powerpc/include  _bus.h bus.h 
    sys/powerpc/powermac grackle.c macio.c uninorth.c 
    sys/powerpc/psim     iobus.c 
  Added files:
    sys/powerpc/powerpc  bus_machdep.c 
  Log:
  Redefine bus_space_tag_t on PowerPC from a 32-bit integral to
  a pointer to struct bus_space. The structure contains function
  pointers that do the actual bus space access.
  
  The reason for this change is that previously all bus space
  accesses were little endian (i.e. had an explicit byte-swap
  for multi-byte accesses), because all busses on Macs are little
  endian.
  The upcoming support for Book E, and in particular the E500
  core, requires support for big-endian busses because all
  embedded peripherals are in the native byte-order.
  
  With this change, there's no distinction between I/O port
  space and memory mapped I/O. PowerPC doesn't have I/O port
  space. Busses assign tags based on the byte-order only.
  For that purpose, two global structures exist (bs_be_tag and
  bs_le_tag), of which the address can be taken to get a valid
  tag.
  
  Obtained from: Juniper, Semihalf
  
  Revision  Changes    Path
  1.71      +1 -0      src/sys/conf/files.powerpc
  1.2       +1 -0      src/sys/dev/powermac_nvram/powermac_nvram.c
  1.4       +2 -2      src/sys/dev/uart/uart_cpu_powerpc.c
  1.19      +1 -4      src/sys/powerpc/aim/ofw_machdep.c
  1.11      +2 -0      src/sys/powerpc/conf/NOTES
  1.2       +1 -1      src/sys/powerpc/include/_bus.h
  1.20      +380 -660  src/sys/powerpc/include/bus.h
  1.10      +2 -5      src/sys/powerpc/powermac/grackle.c
  1.21      +1 -5      src/sys/powerpc/powermac/macio.c
  1.17      +3 -5      src/sys/powerpc/powermac/uninorth.c
  1.1       +788 -0    src/sys/powerpc/powerpc/bus_machdep.c (new)
  1.10      +3 -6      src/sys/powerpc/psim/iobus.c


More information about the cvs-src mailing list