cvs commit: src/sys/dev/acpica acpi.c acpi_resource.c acpivar.h

Nate Lawson njl at FreeBSD.org
Mon Aug 23 09:28:42 PDT 2004


njl         2004-08-23 16:28:42 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/acpica       acpi.c acpi_resource.c acpivar.h 
  Log:
  Rework sysresource management.  Instead of having each sysresource object
  hold its own values, pass them up to the parent (acpi0) and merge/uniq them
  on the way.  After the namespace evaluation, acpi will reserve these
  resources and manage them via rman before bus_generic_probe() and
  bus_generic_attach().  This is necessary because some systems specify
  conflicting resources in separate sysresource objects.  It's also cleaner
  in that the interface between sysresource and acpi is now merely the parent's
  resource list.  This code handles the following cases:
  
  1. Unique resource:  add it to the parent via bus_set_resource().
  2. New wholly contained in old:  discard new.
  3. New tail overlaps old head:  grow old head downward.
     AND/OR
  4. New head overlaps old tail:  grow old tail upward.
  
  Tested by:      Pawel Worach <sajd_at_telia.com>
  Tested by:      Radek Kozlowski <radek_at_raadradd.com>
  MFC after:      5 days
  
  Revision  Changes    Path
  1.189     +82 -7     src/sys/dev/acpica/acpi.c
  1.31      +59 -115   src/sys/dev/acpica/acpi_resource.c
  1.81      +0 -2      src/sys/dev/acpica/acpivar.h


More information about the cvs-src mailing list