14582Scth /* 24582Scth * CDDL HEADER START 34582Scth * 44582Scth * The contents of this file are subject to the terms of the 54582Scth * Common Development and Distribution License (the "License"). 64582Scth * You may not use this file except in compliance with the License. 74582Scth * 84582Scth * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 94582Scth * or http://www.opensolaris.org/os/licensing. 104582Scth * See the License for the specific language governing permissions 114582Scth * and limitations under the License. 124582Scth * 134582Scth * When distributing Covered Code, include this CDDL HEADER in each 144582Scth * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 154582Scth * If applicable, add the following below this CDDL HEADER, with the 164582Scth * fields enclosed by brackets "[]" replaced with your own identifying 174582Scth * information: Portions Copyright [yyyy] [name of copyright owner] 184582Scth * 194582Scth * CDDL HEADER END 204582Scth */ 214582Scth 224582Scth /* 23*5117Smyers * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 244582Scth * Use is subject to license terms. 254582Scth */ 264582Scth 274582Scth #ifndef _HOTPLUG_MGR_H 284582Scth #define _HOTPLUG_MGR_H 294582Scth 304582Scth #pragma ident "%Z%%M% %I% %E% SMI" 314582Scth 324582Scth /* 334582Scth * Hotplug Manager declarations 344582Scth */ 354582Scth 364582Scth #ifdef __cplusplus 374582Scth extern "C" { 384582Scth #endif 394582Scth 404582Scth /* These errors are OR'able */ 414582Scth typedef enum { 424582Scth HPM_ERR_POLLTHR_CREATION_FAILURES = 1, 434582Scth HPM_ERR_SYSEVENT_INIT = 2 444582Scth } hotplug_mgr_init_err_t; 454582Scth 464582Scth extern hotplug_state_t disk_ap_state_to_hotplug_state(diskmon_t *diskp); 474582Scth extern hotplug_mgr_init_err_t init_hotplug_manager(void); 484582Scth extern void cleanup_hotplug_manager(void); 49*5117Smyers extern void adjust_dynamic_ap(const char *, char *); 504582Scth 514582Scth #ifdef __cplusplus 524582Scth } 534582Scth #endif 544582Scth 554582Scth #endif /* _HOTPLUG_MGR_H */ 56