269473047d747f7815af570197e4ef7322d3632cEvan Yan * CDDL HEADER START
269473047d747f7815af570197e4ef7322d3632cEvan Yan * The contents of this file are subject to the terms of the
269473047d747f7815af570197e4ef7322d3632cEvan Yan * Common Development and Distribution License (the "License").
269473047d747f7815af570197e4ef7322d3632cEvan Yan * You may not use this file except in compliance with the License.
269473047d747f7815af570197e4ef7322d3632cEvan Yan * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
269473047d747f7815af570197e4ef7322d3632cEvan Yan * See the License for the specific language governing permissions
269473047d747f7815af570197e4ef7322d3632cEvan Yan * and limitations under the License.
269473047d747f7815af570197e4ef7322d3632cEvan Yan * When distributing Covered Code, include this CDDL HEADER in each
269473047d747f7815af570197e4ef7322d3632cEvan Yan * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
269473047d747f7815af570197e4ef7322d3632cEvan Yan * If applicable, add the following below this CDDL HEADER, with the
269473047d747f7815af570197e4ef7322d3632cEvan Yan * fields enclosed by brackets "[]" replaced with your own identifying
269473047d747f7815af570197e4ef7322d3632cEvan Yan * information: Portions Copyright [yyyy] [name of copyright owner]
269473047d747f7815af570197e4ef7322d3632cEvan Yan * CDDL HEADER END
269473047d747f7815af570197e4ef7322d3632cEvan Yan * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
269473047d747f7815af570197e4ef7322d3632cEvan Yan * Use is subject to license terms.
269473047d747f7815af570197e4ef7322d3632cEvan Yanextern "C" {
269473047d747f7815af570197e4ef7322d3632cEvan Yan * Define macros to test connection states.
269473047d747f7815af570197e4ef7322d3632cEvan Yan#define HP_IS_ENABLED(s) (s == DDI_HP_CN_STATE_ENABLED)
269473047d747f7815af570197e4ef7322d3632cEvan Yan#define HP_IS_ONLINE(s) ((s == DDI_HP_CN_STATE_ONLINE) || \
269473047d747f7815af570197e4ef7322d3632cEvan Yan#define HP_IS_OFFLINE(s) ((s == DDI_HP_CN_STATE_PORT_EMPTY) || \
269473047d747f7815af570197e4ef7322d3632cEvan Yan * Define size of nvlist buffer for set/get commands.
269473047d747f7815af570197e4ef7322d3632cEvan Yan * Define a string for parsing /devices paths.
269473047d747f7815af570197e4ef7322d3632cEvan Yan * Global functions.
269473047d747f7815af570197e4ef7322d3632cEvan Yanint getinfo(const char *path, const char *connection, uint_t flags,
269473047d747f7815af570197e4ef7322d3632cEvan Yanint changestate(const char *path, const char *connection, int state,
269473047d747f7815af570197e4ef7322d3632cEvan Yan uint_t flags, int *old_statep, hp_node_t *resultsp);
269473047d747f7815af570197e4ef7322d3632cEvan Yanint private_options(const char *path, const char *connection,
269473047d747f7815af570197e4ef7322d3632cEvan Yan hp_cmd_t cmd, const char *options, char **resultsp);
269473047d747f7815af570197e4ef7322d3632cEvan Yanint rcm_offline(char **rsrcs, uint_t flags, hp_node_t root);
269473047d747f7815af570197e4ef7322d3632cEvan Yan#endif /* _HOTPLUGD_IMPL_H */