Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Aug 2002 08:57:09 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/dev/pci pci_pci.c pcib_private.h
Message-ID:  <200208261557.g7QFv9qM063676@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2002/08/26 08:57:09 PDT

  Modified files:
    sys/dev/pci          pci_pci.c 
  Added files:
    sys/dev/pci          pcib_private.h 
  Log:
  Export a few symbols as globals to allow subclassing of this driver.  In
  OOP speak, you would mark these as 'protected' members.  Specifically:
  - Make the pcib_softc struct public so it can be used by subclasses.
  - Make pcib_{read,write}_ivar(), pcib_alloc_resource(), pcib_maxslots(),
    and pcib_{read,write}_config() globals that can be used by subclasses.
  - Make the pcib devclass a global variable.
  - Move most of the pcib_attach() function into a global
    pcib_attach_common() function that can be called by the attach routines
    of subclasses.
  
  Tested on:      i386, alpha, sparc64, ia64
  
  Revision  Changes    Path
  1.14      +19 -37    src/sys/dev/pci/pci_pci.c
  1.1       +72 -0     src/sys/dev/pci/pcib_private.h (new)

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?200208261557.g7QFv9qM063676>