10Sstevel@tonic-gate /* 20Sstevel@tonic-gate * CDDL HEADER START 30Sstevel@tonic-gate * 40Sstevel@tonic-gate * The contents of this file are subject to the terms of the 50Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only 60Sstevel@tonic-gate * (the "License"). You may not use this file except in compliance 70Sstevel@tonic-gate * with the License. 80Sstevel@tonic-gate * 90Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 100Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 110Sstevel@tonic-gate * See the License for the specific language governing permissions 120Sstevel@tonic-gate * and limitations under the License. 130Sstevel@tonic-gate * 140Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 150Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 160Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 170Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 180Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 190Sstevel@tonic-gate * 200Sstevel@tonic-gate * CDDL HEADER END 210Sstevel@tonic-gate */ 220Sstevel@tonic-gate /* 230Sstevel@tonic-gate * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 240Sstevel@tonic-gate * Use is subject to license terms. 250Sstevel@tonic-gate */ 260Sstevel@tonic-gate 270Sstevel@tonic-gate #ifndef _SYS_NEXUSDEFS_H 280Sstevel@tonic-gate #define _SYS_NEXUSDEFS_H 290Sstevel@tonic-gate 300Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 310Sstevel@tonic-gate 320Sstevel@tonic-gate #ifdef __cplusplus 330Sstevel@tonic-gate extern "C" { 340Sstevel@tonic-gate #endif 350Sstevel@tonic-gate 360Sstevel@tonic-gate /* 370Sstevel@tonic-gate * Bus Nexus Control Operations 380Sstevel@tonic-gate */ 390Sstevel@tonic-gate 400Sstevel@tonic-gate typedef enum { 410Sstevel@tonic-gate DDI_CTLOPS_DMAPMAPC, 420Sstevel@tonic-gate DDI_CTLOPS_INITCHILD, 430Sstevel@tonic-gate DDI_CTLOPS_UNINITCHILD, 440Sstevel@tonic-gate DDI_CTLOPS_REPORTDEV, 450Sstevel@tonic-gate DDI_CTLOPS_REPORTINT, 460Sstevel@tonic-gate DDI_CTLOPS_REGSIZE, 470Sstevel@tonic-gate DDI_CTLOPS_NREGS, 48*693Sgovinda DDI_CTLOPS_RESERVED0, /* Originally DDI_CTLOPS_NINTRS, obsolete */ 490Sstevel@tonic-gate DDI_CTLOPS_SIDDEV, 500Sstevel@tonic-gate DDI_CTLOPS_SLAVEONLY, 510Sstevel@tonic-gate DDI_CTLOPS_AFFINITY, 520Sstevel@tonic-gate DDI_CTLOPS_IOMIN, 530Sstevel@tonic-gate DDI_CTLOPS_PTOB, 540Sstevel@tonic-gate DDI_CTLOPS_BTOP, 550Sstevel@tonic-gate DDI_CTLOPS_BTOPR, 560Sstevel@tonic-gate DDI_CTLOPS_RESERVED1, /* Originally DDI_CTLOPS_POKE_INIT, obsolete */ 570Sstevel@tonic-gate DDI_CTLOPS_RESERVED2, /* Originally DDI_CTLOPS_POKE_FLUSH, obsolete */ 580Sstevel@tonic-gate DDI_CTLOPS_RESERVED3, /* Originally DDI_CTLOPS_POKE_FINI, obsolete */ 59*693Sgovinda DDI_CTLOPS_RESERVED4, /* Originally DDI_CTLOPS_INTR_HILEVEL, obsolete */ 60*693Sgovinda DDI_CTLOPS_RESERVED5, /* Originally DDI_CTLOPS_XLATE_INTRS, obsolete */ 610Sstevel@tonic-gate DDI_CTLOPS_DVMAPAGESIZE, 620Sstevel@tonic-gate DDI_CTLOPS_POWER, 630Sstevel@tonic-gate DDI_CTLOPS_ATTACH, 640Sstevel@tonic-gate DDI_CTLOPS_DETACH, 650Sstevel@tonic-gate DDI_CTLOPS_QUIESCE, 660Sstevel@tonic-gate DDI_CTLOPS_UNQUIESCE, 670Sstevel@tonic-gate DDI_CTLOPS_PEEK, 680Sstevel@tonic-gate DDI_CTLOPS_POKE 690Sstevel@tonic-gate } ddi_ctl_enum_t; 700Sstevel@tonic-gate 710Sstevel@tonic-gate /* 720Sstevel@tonic-gate * For source compatibility, we define the following obsolete code: 730Sstevel@tonic-gate * Do NOT use this, use the real constant name. 740Sstevel@tonic-gate */ 750Sstevel@tonic-gate #define DDI_CTLOPS_REMOVECHILD DDI_CTLOPS_UNINITCHILD 760Sstevel@tonic-gate 770Sstevel@tonic-gate /* 780Sstevel@tonic-gate * Bus config ops 790Sstevel@tonic-gate */ 800Sstevel@tonic-gate typedef enum { 810Sstevel@tonic-gate BUS_ENUMERATE = 0, 820Sstevel@tonic-gate BUS_CONFIG_ONE, 830Sstevel@tonic-gate BUS_CONFIG_ALL, 840Sstevel@tonic-gate BUS_CONFIG_AP, 850Sstevel@tonic-gate BUS_CONFIG_DRIVER, 860Sstevel@tonic-gate BUS_UNCONFIG_ONE, 870Sstevel@tonic-gate BUS_UNCONFIG_DRIVER, 880Sstevel@tonic-gate BUS_UNCONFIG_ALL, 890Sstevel@tonic-gate BUS_UNCONFIG_AP, 900Sstevel@tonic-gate BUS_CONFIG_OBP_ARGS 910Sstevel@tonic-gate } ddi_bus_config_op_t; 920Sstevel@tonic-gate 930Sstevel@tonic-gate /* 940Sstevel@tonic-gate * Bus Power Operations 950Sstevel@tonic-gate */ 960Sstevel@tonic-gate typedef enum { 970Sstevel@tonic-gate BUS_POWER_CHILD_PWRCHG = 0, 980Sstevel@tonic-gate BUS_POWER_NEXUS_PWRUP, 990Sstevel@tonic-gate BUS_POWER_PRE_NOTIFICATION, 1000Sstevel@tonic-gate BUS_POWER_POST_NOTIFICATION, 1010Sstevel@tonic-gate BUS_POWER_HAS_CHANGED, 1020Sstevel@tonic-gate BUS_POWER_NOINVOL 1030Sstevel@tonic-gate } pm_bus_power_op_t; 1040Sstevel@tonic-gate 1050Sstevel@tonic-gate #ifdef __cplusplus 1060Sstevel@tonic-gate } 1070Sstevel@tonic-gate #endif 1080Sstevel@tonic-gate 1090Sstevel@tonic-gate #endif /* _SYS_NEXUSDEFS_H */ 110