summaryrefslogtreecommitdiffstats
path: root/sys/pci/pci_compat.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-04-17 08:36:07 +0000
committerpeter <peter@FreeBSD.org>1999-04-17 08:36:07 +0000
commitb5e9563d84590b94d1127eb1bb14343674e119e1 (patch)
tree2e1c84a0a84b35eb08454dc1781eea919d024769 /sys/pci/pci_compat.c
parentea1e34d0c957e00ae335d21b817cb316bfafa43e (diff)
downloadFreeBSD-src-b5e9563d84590b94d1127eb1bb14343674e119e1.zip
FreeBSD-src-b5e9563d84590b94d1127eb1bb14343674e119e1.tar.gz
Well folks, this is it - The second stage of the removal for build support
for LKM's..
Diffstat (limited to 'sys/pci/pci_compat.c')
-rw-r--r--sys/pci/pci_compat.c49
1 files changed, 1 insertions, 48 deletions
diff --git a/sys/pci/pci_compat.c b/sys/pci/pci_compat.c
index bfa1d59..da25df4 100644
--- a/sys/pci/pci_compat.c
+++ b/sys/pci/pci_compat.c
@@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: pci_compat.c,v 1.21 1999/04/11 02:46:20 eivind Exp $
+ * $Id: pci_compat.c,v 1.22 1999/04/16 21:22:52 peter Exp $
*
*/
@@ -340,23 +340,13 @@ pci_probedrv(pcicfgregs *cfg, struct pci_device *dvp)
return (NULL);
}
-static struct pci_lkm *pci_lkm_head;
-
static struct pci_device*
pci_finddrv(pcicfgregs *cfg)
{
struct pci_device **dvpp;
struct pci_device *dvp = NULL;
- struct pci_lkm *lkm;
drvname = NULL;
- lkm = pci_lkm_head;
- while (drvname == NULL && lkm != NULL) {
- dvp = lkm->dvp;
- drvname = pci_probedrv(cfg, dvp);
- lkm = lkm->next;
- }
-
dvpp = (struct pci_device **)pcidevice_set.ls_items;
while (drvname == NULL && (dvp = *dvpp++) != NULL)
drvname = pci_probedrv(cfg, dvp);
@@ -417,43 +407,6 @@ pci_drvattach(struct pci_devinfo *dinfo)
/* ------------------------------------------------------------------------- */
-static void
-pci_rescan(void)
-{
- /* XXX do nothing, currently, soon to come ... */
-}
-
-int pci_register_lkm (struct pci_device *dvp, int if_revision)
-{
- struct pci_lkm *lkm;
-
- if (if_revision != 0) {
- return (-1);
- }
- if (dvp == NULL || dvp->pd_probe == NULL || dvp->pd_attach == NULL) {
- return (-1);
- }
- lkm = malloc (sizeof (*lkm), M_DEVBUF, M_NOWAIT);
- if (lkm == NULL) {
- return (-1);
- }
- bzero(lkm, sizeof (*lkm));
-
- lkm->dvp = dvp;
- lkm->next = pci_lkm_head;
- pci_lkm_head = lkm;
- pci_rescan();
- return (0);
-}
-
-void
-pci_configure(void)
-{
- pci_probe(NULL);
-}
-
-/* ------------------------------------------------------------------------- */
-
#endif
#endif /* PCI_COMPAT */
OpenPOWER on IntegriCloud