Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Nov 2002 19:55:22 -0800 (PST)
From:      Warner Losh <imp@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/sys rman.h src/sys/kern subr_rman.c
Message-ID:  <200211270355.gAR3tMQh036625@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
imp         2002/11/26 19:55:22 PST

  Modified files:
    sys/sys              rman.h 
    sys/kern             subr_rman.c 
  Log:
  Make the rman_{get,set}_* macros into real functions.  The macros
  create an ABI that encodes offsets and sizes of structures into client
  drivers.  The functions isolate the ABI from changes to the resource
  structure.  Since these are used very rarely (once at startup), the
  speed penalty will be down in the noise.
  
  Also, add r_rid to the structure so that clients can save the 'rid' of
  the resource in the struct resource, plus accessor functions.  Future
  additions to newbus will make use of this to present a simplified
  interface for resource specification.
  
  Approved by: re (jhb)
  Reviewed by: jhb, jake
  
  Revision  Changes    Path
  1.27      +72 -0     src/sys/kern/subr_rman.c
  1.18      +13 -10    src/sys/sys/rman.h

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211270355.gAR3tMQh036625>