cvs commit: src/sys/sys bus.h src/sys/tools bus_macro.sh

Poul-Henning Kamp phk at FreeBSD.org
Sat Sep 24 13:11:07 PDT 2005


phk         2005-09-24 20:11:07 UTC

  FreeBSD src repository

  Modified files:
    sys/sys              bus.h 
  Added files:
    sys/tools            bus_macro.sh 
  Log:
  Add convenience macros for bus_space usage that doesn't require specification
  of bus tag+handle.
  
  Instead of
          bus_space_write_1(sc->tag, sc->handle, ...)
  this macros offer
          bus_write_1(sc->resource, ...)
  
  The name+argument transformation is constant and the the macros are
  generated (by hand) by the script in tools/bus_macro.sh.
  
  Revision  Changes    Path
  1.73      +135 -0    src/sys/sys/bus.h
  1.1       +68 -0     src/sys/tools/bus_macro.sh (new)


More information about the cvs-all mailing list