diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-03-31 22:14:53 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2007-03-31 22:14:53 +0000 |
commit | 34e7f54cc6ad76ed00938fca4c44600f76fbdbb5 (patch) | |
tree | 6cc964694346e3f8cf069d1d558e1e3c9545e59d /sys | |
parent | da5b5607d3f5d610fac49d7473f3ce0d23611203 (diff) |
Map PCIe config space.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sparc64/dev/pyro.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/sparc64/dev/pyro.c b/sys/arch/sparc64/dev/pyro.c index 97ac8930235..0d3d0257600 100644 --- a/sys/arch/sparc64/dev/pyro.c +++ b/sys/arch/sparc64/dev/pyro.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pyro.c,v 1.2 2007/03/31 19:05:31 kettenis Exp $ */ +/* $OpenBSD: pyro.c,v 1.3 2007/03/31 22:14:52 kettenis Exp $ */ /* * Copyright (c) 2002 Jason L. Wright (jason@thought.net) @@ -150,6 +150,9 @@ pyro_init(struct pyro_softc *sc, int busa) pbm->pp_dmat = pyro_alloc_dma_tag(pbm); #endif + if (bus_space_map(pbm->pp_cfgt, 0, 0x10000000, 0, &pbm->pp_cfgh)) + panic("pyro: could not map config space"); + pbm->pp_pc = pyro_alloc_chipset(pbm, sc->sc_node, &_sparc_pci_chipset); pbm->pp_pc->bustag = pbm->pp_cfgt; |