summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/powermac/uninorthvar.h
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2012-02-04 19:54:13 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2012-02-04 19:54:13 +0000
commit704bf01027dd307ad9abf31d54a41bb3ed74bbf3 (patch)
tree186dcd30307a383057e88be7200ed459399e5368 /sys/powerpc/powermac/uninorthvar.h
parent8c3a18753fae55997c4d8725ca70df2bffbfa3d7 (diff)
downloadFreeBSD-src-704bf01027dd307ad9abf31d54a41bb3ed74bbf3.zip
FreeBSD-src-704bf01027dd307ad9abf31d54a41bb3ed74bbf3.tar.gz
Unify OF PCI infrastructure, including changing from parsing the device
tree based on heuristics to parsing it based on the spec. This should also lay the foundation for NEW_PCIB on PowerPC. MFC after: 3 months
Diffstat (limited to 'sys/powerpc/powermac/uninorthvar.h')
-rw-r--r--sys/powerpc/powermac/uninorthvar.h33
1 files changed, 2 insertions, 31 deletions
diff --git a/sys/powerpc/powermac/uninorthvar.h b/sys/powerpc/powermac/uninorthvar.h
index 2c37d77..43aa01d 100644
--- a/sys/powerpc/powermac/uninorthvar.h
+++ b/sys/powerpc/powermac/uninorthvar.h
@@ -28,41 +28,12 @@
#ifndef _POWERPC_POWERMAC_UNINORTHVAR_H_
#define _POWERPC_POWERMAC_UNINORTHVAR_H_
-struct uninorth_range {
- u_int32_t pci_hi;
- u_int32_t pci_mid;
- u_int32_t pci_lo;
- u_int32_t host;
- u_int32_t size_hi;
- u_int32_t size_lo;
-};
-
-struct uninorth_range64 {
- u_int32_t pci_hi;
- u_int32_t pci_mid;
- u_int32_t pci_lo;
- u_int32_t host_hi;
- u_int32_t host_lo;
- u_int32_t size_hi;
- u_int32_t size_lo;
-};
+#include <powerpc/ofw/ofw_pci.h>
struct uninorth_softc {
- device_t sc_dev;
- phandle_t sc_node;
+ struct ofw_pci_softc pci_sc;
vm_offset_t sc_addr;
vm_offset_t sc_data;
- int sc_bus;
- struct uninorth_range sc_range[7];
- int sc_nrange;
- int sc_iostart;
- struct rman sc_io_rman;
- struct rman sc_mem_rman;
- bus_space_tag_t sc_iot;
- bus_space_tag_t sc_memt;
- bus_dma_tag_t sc_dmat;
- struct ofw_bus_iinfo sc_pci_iinfo;
-
int sc_ver;
};
OpenPOWER on IntegriCloud