summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2001-03-29 20:00:50 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2001-03-29 20:00:50 +0000
commita062e81a0b26542cd59f932797405180ec2e3c1a (patch)
tree1d2dc9d5abe91b72055d20eea7b85c3d4b354d19 /sys
parent638b6f5ef14a8d95d06fad00f2e452b2de8bf9eb (diff)
Add support structures for bus space detection/allocation (pci_addr_fixup).
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/powerpc/pci/pcibrvar.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/arch/powerpc/pci/pcibrvar.h b/sys/arch/powerpc/pci/pcibrvar.h
index f99ebbc95b4..7ee842fa3e5 100644
--- a/sys/arch/powerpc/pci/pcibrvar.h
+++ b/sys/arch/powerpc/pci/pcibrvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcibrvar.h,v 1.6 2000/10/19 04:53:06 drahn Exp $ */
+/* $OpenBSD: pcibrvar.h,v 1.7 2001/03/29 20:00:49 drahn Exp $ */
/*
* Copyright (c) 1997 Per Fogelstrom
@@ -51,6 +51,19 @@ struct pcibr_softc {
struct ppc_bus_space sc_iobus_space;
struct powerpc_bus_dma_tag sc_dmatag;
struct pcibr_config pcibr_config;
+ struct extent *extent_mem;
+ struct extent *extent_port;
+ u_int32_t mem_alloc_start;
+ u_int32_t port_alloc_start;
+ int nbogus;
};
+struct pci_reserve_mem {
+ bus_addr_t start;
+ bus_size_t size;
+ char *name;
+};
+
+void pci_addr_fixup __P((struct pcibr_softc *, pci_chipset_tag_t, int,
+ struct pci_reserve_mem *));