Add a `bus' member to the pci_attach_args. This is not normally used,
but some child drivers might need to know this information.
This commit is contained in:
parent
bb619306e2
commit
2a4490daa5
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user