svn commit: r202248 - stable/8/sys/sparc64/pci
Marius Strobl
marius at FreeBSD.org
Wed Jan 13 21:04:56 UTC 2010
Author: marius
Date: Wed Jan 13 21:04:56 2010
New Revision: 202248
URL: http://svn.freebsd.org/changeset/base/202248
Log:
MFC: r200918
Add structures for OFW MSI/MSI-X support. These are identical for
both sun4u and sun4v.
Modified:
stable/8/sys/sparc64/pci/ofw_pci.h
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/dev/xen/xenpci/ (props changed)
Modified: stable/8/sys/sparc64/pci/ofw_pci.h
==============================================================================
--- stable/8/sys/sparc64/pci/ofw_pci.h Wed Jan 13 21:03:06 2010 (r202247)
+++ stable/8/sys/sparc64/pci/ofw_pci.h Wed Jan 13 21:04:56 2010 (r202248)
@@ -48,6 +48,31 @@ typedef uint32_t ofw_pci_intr_t;
#define OFW_TYPE_PCI "pci"
#define OFW_TYPE_PCIE "pciex"
+struct ofw_pci_msi_addr_ranges {
+ uint32_t addr32_hi;
+ uint32_t addr32_lo;
+ uint32_t addr32_sz;
+ uint32_t addr64_hi;
+ uint32_t addr64_lo;
+ uint32_t addr64_sz;
+};
+
+#define OFW_PCI_MSI_ADDR_RANGE_32(r) \
+ (((uint64_t)(r)->addr32_hi << 32) | (uint64_t)(r)->addr32_lo)
+#define OFW_PCI_MSI_ADDR_RANGE_64(r) \
+ (((uint64_t)(r)->addr64_hi << 32) | (uint64_t)(r)->addr64_lo)
+
+struct ofw_pci_msi_eq_to_devino {
+ uint32_t eq_first;
+ uint32_t eq_count;
+ uint32_t devino_first;
+};
+
+struct ofw_pci_msi_ranges {
+ uint32_t first;
+ uint32_t count;
+};
+
struct ofw_pci_ranges {
uint32_t cspace;
uint32_t child_hi;
More information about the svn-src-all
mailing list