cvs commit: src/sys/sparc64/include ofw_machdep.hsrc/sys/sparc64/sparc64 ofw_machdep.c

Marcel Moolenaar marcel at
Tue Sep 2 13:32:14 PDT 2003

marcel      2003/09/02 13:32:12 PDT

  FreeBSD src repository

  Modified files:
    sys/sparc64/include  ofw_machdep.h 
    sys/sparc64/sparc64  ofw_machdep.c 
  Add function OF_decode_addr(). This function obtains the physical
  address of the device identified by its phandle_t by traversing OFW's
  device tree. The space and address returned by this function can
  subsequently be passed to sparc64_fake_bustag() to construct a valid
  tag and handle for use by the newbus I/O functions.
  Use of this function is expected to be limited to pre-newbus access to
  devices, such as consoles and keyboards.
  Partially obtained from: tmm
  Reviewed by: jake, jmg, tmm
  SBus testing made possible by: jake
  Tested with: LINT
  Revision  Changes    Path
  1.3       +2 -1      src/sys/sparc64/include/ofw_machdep.h
  1.4       +110 -0    src/sys/sparc64/sparc64/ofw_machdep.c

More information about the cvs-src mailing list