1. 27 2月, 2014 1 次提交
    • B
      resource: Add resource_contains() · 5edb93b8
      Bjorn Helgaas 提交于
      We have two identical copies of resource_contains() already, and more
      places that could use it.  This moves it to ioport.h where it can be
      shared.
      
      resource_contains(struct resource *r1, struct resource *r2) returns true
      iff r1 and r2 are the same type (most callers already checked this
      separately) and the r1 address range completely contains r2.
      
      In addition, the new resource_contains() checks that both r1 and r2 have
      addresses assigned to them.  If a resource is IORESOURCE_UNSET, it doesn't
      have a valid address and can't contain or be contained by another resource.
      Some callers already check this or for res->start.
      
      No functional change.
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      5edb93b8
  2. 01 2月, 2014 1 次提交
  3. 31 1月, 2014 5 次提交
  4. 30 1月, 2014 4 次提交
  5. 29 1月, 2014 2 次提交
  6. 28 1月, 2014 23 次提交
  7. 27 1月, 2014 2 次提交
  8. 26 1月, 2014 2 次提交