summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/pci_impl.h
diff options
context:
space:
mode:
authorEvan Yan <Evan.Yan@Sun.COM>2009-11-02 15:58:28 +0800
committerEvan Yan <Evan.Yan@Sun.COM>2009-11-02 15:58:28 +0800
commit269473047d747f7815af570197e4ef7322d3632c (patch)
treee93761fa235a8ba4c1b5c637a8f3a429be21a508 /usr/src/uts/common/sys/pci_impl.h
parentb24ab6762772a3f6a89393947930c7fa61306783 (diff)
downloadillumos-gate-269473047d747f7815af570197e4ef7322d3632c.tar.gz
PSARC/2008/181 Solaris Hotplug Framework
6837240 Solaris Hotplug Framework 6783012 Add support for PCIe Alternate Routing-ID Interpretation 6638136 remove obsolete ndi_ra_xxx logic from px_msi code 6695081 Race condition between pciehpc_intr() and pciehpc_init() --HG-- rename : usr/src/uts/common/io/hotplug/pciehpc/pciehpc.c => usr/src/uts/common/io/pciex/hotplug/pciehpc.c rename : usr/src/uts/common/io/hotplug/pcishpc/pcishpc.c => usr/src/uts/common/io/pciex/hotplug/pcishpc.c rename : usr/src/uts/intel/io/hotplug/pciehpc/pciehpc_acpi.c => usr/src/uts/intel/io/pciex/hotplug/pciehpc_acpi.c rename : usr/src/uts/intel/io/hotplug/pciehpc/pciehpc_acpi.h => usr/src/uts/intel/sys/hotplug/pci/pciehpc_acpi.h rename : usr/src/uts/sparc/pcicfg.e/Makefile => usr/src/uts/sparc/pcicfg/Makefile rename : usr/src/uts/sun4/io/pcicfg.e.c => usr/src/uts/sun4/io/pcicfg.c
Diffstat (limited to 'usr/src/uts/common/sys/pci_impl.h')
-rw-r--r--usr/src/uts/common/sys/pci_impl.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/usr/src/uts/common/sys/pci_impl.h b/usr/src/uts/common/sys/pci_impl.h
index 0dc0679bd4..d485800b96 100644
--- a/usr/src/uts/common/sys/pci_impl.h
+++ b/usr/src/uts/common/sys/pci_impl.h
@@ -26,7 +26,6 @@
#ifndef _SYS_PCI_IMPL_H
#define _SYS_PCI_IMPL_H
-
#include <sys/dditypes.h>
#include <sys/memlist.h>
@@ -133,6 +132,24 @@ extern int memlist_count(struct memlist *);
#endif /* __i386 || __amd64 */
+/* Definitions for minor numbers */
+#define PCI_MINOR_NUM(x, y) (((uint_t)(x) << 8) | ((y) & 0xFF))
+#define PCI_MINOR_NUM_TO_PCI_DEVNUM(x) ((x) & 0xFF)
+#define PCI_MINOR_NUM_TO_INSTANCE(x) ((x) >> 8)
+#define PCI_DEVCTL_MINOR 0xFF
+
+/*
+ * Minor numbers for dedicated pcitool nodes.
+ * Note that FF and FE minor numbers are used for other minor nodes.
+ */
+#define PCI_TOOL_REG_MINOR_NUM 0xFD
+#define PCI_TOOL_INTR_MINOR_NUM 0xFC
+
+/* pci devctl soft state flag */
+#define PCI_SOFT_STATE_CLOSED 0x0
+#define PCI_SOFT_STATE_OPEN 0x1
+#define PCI_SOFT_STATE_OPEN_EXCL 0x2
+
/*
* PCI capability related definitions.
*/