From 2a4490daa5bb14cf06eec8de4bfe0d3380b63d79 Mon Sep 17 00:00:00 2001 From: thorpej Date: Thu, 6 May 1999 01:01:19 +0000 Subject: [PATCH] Add a `bus' member to the pci_attach_args. This is not normally used, but some child drivers might need to know this information. --- sys/dev/pci/pci.c | 3 ++- sys/dev/pci/pcivar.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index e53a7317c1ce..199423bd30e7 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -1,4 +1,4 @@ -/* $NetBSD: pci.c,v 1.40 1998/11/07 16:47:22 drochner Exp $ */ +/* $NetBSD: pci.c,v 1.41 1999/05/06 01:01:19 thorpej Exp $ */ /* * Copyright (c) 1995, 1996, 1997, 1998 @@ -178,6 +178,7 @@ pci_probe_bus(self) pa.pa_memt = memt; pa.pa_dmat = sc->sc_dmat; pa.pa_pc = pc; + pa.pa_bus = bus; pa.pa_device = device; pa.pa_function = function; pa.pa_tag = tag; diff --git a/sys/dev/pci/pcivar.h b/sys/dev/pci/pcivar.h index 70f6cfc9030f..13653c1c1fb1 100644 --- a/sys/dev/pci/pcivar.h +++ b/sys/dev/pci/pcivar.h @@ -1,4 +1,4 @@ -/* $NetBSD: pcivar.h,v 1.38 1999/03/19 03:37:52 cgd Exp $ */ +/* $NetBSD: pcivar.h,v 1.39 1999/05/06 01:01:19 thorpej Exp $ */ /* * Copyright (c) 1996, 1997 Christopher G. Demetriou. All rights reserved. @@ -86,6 +86,7 @@ struct pci_attach_args { pci_chipset_tag_t pa_pc; int pa_flags; /* flags; see below */ + u_int pa_bus; u_int pa_device; u_int pa_function; pcitag_t pa_tag;