diff options
author | Andrew Gallatin <gallatin@FreeBSD.org> | 1999-05-20 15:33:33 +0000 |
---|---|---|
committer | Andrew Gallatin <gallatin@FreeBSD.org> | 1999-05-20 15:33:33 +0000 |
commit | aa6de8e0129b3afe01fbd04ee6c520611856b083 (patch) | |
tree | e41819f3df4422db90a22d6b97162e6802a595e6 /sys/alpha/pci/apecs_pci.c | |
parent | 80037d6e9e0c1d84a7ffeca4683222d6fada175f (diff) | |
download | src-aa6de8e0129b3afe01fbd04ee6c520611856b083.tar.gz src-aa6de8e0129b3afe01fbd04ee6c520611856b083.zip |
Notes
Diffstat (limited to 'sys/alpha/pci/apecs_pci.c')
-rw-r--r-- | sys/alpha/pci/apecs_pci.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/alpha/pci/apecs_pci.c b/sys/alpha/pci/apecs_pci.c index cb05f8d9ecfc..918131783426 100644 --- a/sys/alpha/pci/apecs_pci.c +++ b/sys/alpha/pci/apecs_pci.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: apecs_pci.c,v 1.1 1999/04/16 21:21:38 peter Exp $ + * $Id: apecs_pci.c,v 1.2 1999/05/08 21:58:41 dfr Exp $ */ #include <sys/param.h> @@ -33,6 +33,7 @@ #include <sys/bus.h> #include <machine/bus.h> #include <sys/rman.h> +#include <pci/pcivar.h> static devclass_t pcib_devclass; @@ -46,6 +47,16 @@ apecs_pcib_probe(device_t dev) return 0; } +static int +apecs_pcib_read_ivar(device_t dev, device_t child, int which, u_long *result) +{ + if (which == PCIB_IVAR_HOSE) { + *result = 0; + return 0; + } + return ENOENT; +} + static device_method_t apecs_pcib_methods[] = { /* Device interface */ DEVMETHOD(device_probe, apecs_pcib_probe), @@ -53,6 +64,7 @@ static device_method_t apecs_pcib_methods[] = { /* Bus interface */ DEVMETHOD(bus_print_child, bus_generic_print_child), + DEVMETHOD(bus_read_ivar, apecs_pcib_read_ivar), DEVMETHOD(bus_alloc_resource, bus_generic_alloc_resource), DEVMETHOD(bus_release_resource, bus_generic_release_resource), DEVMETHOD(bus_activate_resource, bus_generic_activate_resource), |