xref: /titanic_41/usr/src/uts/common/sys/nexusdefs.h (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate /*
2*7c478bd9Sstevel@tonic-gate  * CDDL HEADER START
3*7c478bd9Sstevel@tonic-gate  *
4*7c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*7c478bd9Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
6*7c478bd9Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
7*7c478bd9Sstevel@tonic-gate  * with the License.
8*7c478bd9Sstevel@tonic-gate  *
9*7c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*7c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
11*7c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
12*7c478bd9Sstevel@tonic-gate  * and limitations under the License.
13*7c478bd9Sstevel@tonic-gate  *
14*7c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
15*7c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*7c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
17*7c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
18*7c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
19*7c478bd9Sstevel@tonic-gate  *
20*7c478bd9Sstevel@tonic-gate  * CDDL HEADER END
21*7c478bd9Sstevel@tonic-gate  */
22*7c478bd9Sstevel@tonic-gate /*
23*7c478bd9Sstevel@tonic-gate  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24*7c478bd9Sstevel@tonic-gate  * Use is subject to license terms.
25*7c478bd9Sstevel@tonic-gate  */
26*7c478bd9Sstevel@tonic-gate 
27*7c478bd9Sstevel@tonic-gate #ifndef	_SYS_NEXUSDEFS_H
28*7c478bd9Sstevel@tonic-gate #define	_SYS_NEXUSDEFS_H
29*7c478bd9Sstevel@tonic-gate 
30*7c478bd9Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
31*7c478bd9Sstevel@tonic-gate 
32*7c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
33*7c478bd9Sstevel@tonic-gate extern "C" {
34*7c478bd9Sstevel@tonic-gate #endif
35*7c478bd9Sstevel@tonic-gate 
36*7c478bd9Sstevel@tonic-gate /*
37*7c478bd9Sstevel@tonic-gate  * Bus Nexus Control Operations
38*7c478bd9Sstevel@tonic-gate  */
39*7c478bd9Sstevel@tonic-gate 
40*7c478bd9Sstevel@tonic-gate typedef enum {
41*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_DMAPMAPC,
42*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_INITCHILD,
43*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_UNINITCHILD,
44*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_REPORTDEV,
45*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_REPORTINT,
46*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_REGSIZE,
47*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_NREGS,
48*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_NINTRS,
49*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_SIDDEV,
50*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_SLAVEONLY,
51*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_AFFINITY,
52*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_IOMIN,
53*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_PTOB,
54*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_BTOP,
55*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_BTOPR,
56*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_RESERVED1,	/* Originally DDI_CTLOPS_POKE_INIT, obsolete */
57*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_RESERVED2,	/* Originally DDI_CTLOPS_POKE_FLUSH, obsolete */
58*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_RESERVED3,	/* Originally DDI_CTLOPS_POKE_FINI, obsolete */
59*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_INTR_HILEVEL,
60*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_XLATE_INTRS,
61*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_DVMAPAGESIZE,
62*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_POWER,
63*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_ATTACH,
64*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_DETACH,
65*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_QUIESCE,
66*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_UNQUIESCE,
67*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_PEEK,
68*7c478bd9Sstevel@tonic-gate 	DDI_CTLOPS_POKE
69*7c478bd9Sstevel@tonic-gate } ddi_ctl_enum_t;
70*7c478bd9Sstevel@tonic-gate 
71*7c478bd9Sstevel@tonic-gate /*
72*7c478bd9Sstevel@tonic-gate  * For source compatibility, we define the following obsolete code:
73*7c478bd9Sstevel@tonic-gate  * Do NOT use this, use the real constant name.
74*7c478bd9Sstevel@tonic-gate  */
75*7c478bd9Sstevel@tonic-gate #define	DDI_CTLOPS_REMOVECHILD	DDI_CTLOPS_UNINITCHILD
76*7c478bd9Sstevel@tonic-gate 
77*7c478bd9Sstevel@tonic-gate /*
78*7c478bd9Sstevel@tonic-gate  * Bus config ops
79*7c478bd9Sstevel@tonic-gate  */
80*7c478bd9Sstevel@tonic-gate typedef enum {
81*7c478bd9Sstevel@tonic-gate 	BUS_ENUMERATE = 0,
82*7c478bd9Sstevel@tonic-gate 	BUS_CONFIG_ONE,
83*7c478bd9Sstevel@tonic-gate 	BUS_CONFIG_ALL,
84*7c478bd9Sstevel@tonic-gate 	BUS_CONFIG_AP,
85*7c478bd9Sstevel@tonic-gate 	BUS_CONFIG_DRIVER,
86*7c478bd9Sstevel@tonic-gate 	BUS_UNCONFIG_ONE,
87*7c478bd9Sstevel@tonic-gate 	BUS_UNCONFIG_DRIVER,
88*7c478bd9Sstevel@tonic-gate 	BUS_UNCONFIG_ALL,
89*7c478bd9Sstevel@tonic-gate 	BUS_UNCONFIG_AP,
90*7c478bd9Sstevel@tonic-gate 	BUS_CONFIG_OBP_ARGS
91*7c478bd9Sstevel@tonic-gate } ddi_bus_config_op_t;
92*7c478bd9Sstevel@tonic-gate 
93*7c478bd9Sstevel@tonic-gate /*
94*7c478bd9Sstevel@tonic-gate  * Bus Power Operations
95*7c478bd9Sstevel@tonic-gate  */
96*7c478bd9Sstevel@tonic-gate typedef enum {
97*7c478bd9Sstevel@tonic-gate 	BUS_POWER_CHILD_PWRCHG = 0,
98*7c478bd9Sstevel@tonic-gate 	BUS_POWER_NEXUS_PWRUP,
99*7c478bd9Sstevel@tonic-gate 	BUS_POWER_PRE_NOTIFICATION,
100*7c478bd9Sstevel@tonic-gate 	BUS_POWER_POST_NOTIFICATION,
101*7c478bd9Sstevel@tonic-gate 	BUS_POWER_HAS_CHANGED,
102*7c478bd9Sstevel@tonic-gate 	BUS_POWER_NOINVOL
103*7c478bd9Sstevel@tonic-gate } pm_bus_power_op_t;
104*7c478bd9Sstevel@tonic-gate 
105*7c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
106*7c478bd9Sstevel@tonic-gate }
107*7c478bd9Sstevel@tonic-gate #endif
108*7c478bd9Sstevel@tonic-gate 
109*7c478bd9Sstevel@tonic-gate #endif	/* _SYS_NEXUSDEFS_H */
110