summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2007-04-01 12:50:18 +0000
committerkettenis <kettenis@openbsd.org>2007-04-01 12:50:18 +0000
commit4f41d33c0cf8a2d6c6468b4731ca3b487c15d4c3 (patch)
tree5ef3048b590ae54292fbc47949fb23f2b8ea1d49
parentProvide (non functional) dma tag. (diff)
downloadwireguard-openbsd-4f41d33c0cf8a2d6c6468b4731ca3b487c15d4c3.tar.xz
wireguard-openbsd-4f41d33c0cf8a2d6c6468b4731ca3b487c15d4c3.zip
Shift pci tags for PCIe.
-rw-r--r--sys/arch/sparc64/dev/pyro.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/sparc64/dev/pyro.c b/sys/arch/sparc64/dev/pyro.c
index 03e001a85e5..1e5291d88b4 100644
--- a/sys/arch/sparc64/dev/pyro.c
+++ b/sys/arch/sparc64/dev/pyro.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pyro.c,v 1.4 2007/04/01 12:48:07 kettenis Exp $ */
+/* $OpenBSD: pyro.c,v 1.5 2007/04/01 12:50:18 kettenis Exp $ */
/*
* Copyright (c) 2002 Jason L. Wright (jason@thought.net)
@@ -312,6 +312,7 @@ pyro_alloc_chipset(struct pyro_pbm *pbm, int node, pci_chipset_tag_t pc)
memcpy(npc, pc, sizeof *pc);
npc->cookie = pbm;
npc->rootnode = node;
+ npc->tagshift = 4; /* PCIe has a larger config space */
return (npc);
}