From owner-cvs-all Mon Aug 26 8:57:15 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C2EB937B400; Mon, 26 Aug 2002 08:57:09 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DD1343E6E; Mon, 26 Aug 2002 08:57:09 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from freefall.freebsd.org (jhb@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7QFv9JU063677; Mon, 26 Aug 2002 08:57:09 -0700 (PDT) (envelope-from jhb@freefall.freebsd.org) Received: (from jhb@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7QFv9qM063676; Mon, 26 Aug 2002 08:57:09 -0700 (PDT) Message-Id: <200208261557.g7QFv9qM063676@freefall.freebsd.org> From: John Baldwin Date: Mon, 26 Aug 2002 08:57:09 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/pci pci_pci.c pcib_private.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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