ap_seq.c revision 2
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A#include <libdevinfo.h>
2N/A#define CFGA_PLUGIN_LIB
2N/A#include <config_admin.h>
2N/A#include <libscf_priv.h>
2N/Astatic int fastreboot_disabled;
2N/Astatic cfga_err_t
2N/A case CFGA_STAT_EMPTY:
2N/A case CFGA_STAT_UNCONFIGURED:
2N/A case CMD_UNCONFIGURE:
2N/A case CFGA_STAT_DISCONNECTED:
2N/A case CFGA_STAT_UNCONFIGURED:
2N/A case CMD_DISCONNECT:
2N/A f = CMD_DISCONNECT;
2N/A l = CMD_UNASSIGN;
2N/A case CMD_UNCONFIGURE:
2N/A case CMD_CONNECT:
2N/A f = CMD_ASSIGN;
2N/A l = CMD_CONNECT;
2N/A case CMD_CONFIGURE:
2N/A f = CMD_ASSIGN;
2N/A l = CMD_RCM_CAP_ADD;
2N/A case CFGA_STAT_CONNECTED:
2N/A case CFGA_STAT_UNCONFIGURED:
2N/A case CMD_CONNECT:
2N/A case CMD_UNCONFIGURE:
2N/A case CMD_DISCONNECT:
2N/A f = CMD_DISCONNECT;
2N/A l = CMD_UNASSIGN;
2N/A case CMD_CONFIGURE:
2N/A f = CMD_CONFIGURE;
2N/A l = CMD_RCM_CAP_ADD;
2N/A case CFGA_STAT_CONFIGURED:
2N/A case CMD_CONNECT:
2N/A case CMD_DISCONNECT:
2N/A f = CMD_SUSPEND_CHECK;
2N/A l = CMD_UNASSIGN;
2N/A case CMD_CONFIGURE:
2N/A f = CMD_CONFIGURE;
2N/A l = CMD_RCM_CAP_ADD;
2N/A case CMD_UNCONFIGURE:
2N/A f = CMD_SUSPEND_CHECK;
2N/A l = CMD_RCM_CAP_NOTIFY;
2N/A return (AP_SEQ_NULL);
2N/A return (AP_SEQ_FAIL);
2N/A#define DBG_RECOVER_MSG(f, l) \
2N/A case CMD_SUSPEND_CHECK:
2N/A case CMD_RCM_SUSPEND:
2N/A case CMD_RCM_RESUME:
2N/A (void) ap_rcm_ctl(a, c);
2N/A case CMD_RCM_OFFLINE:
2N/A case CMD_RCM_CAP_DEL:
2N/A case CMD_RCM_ONLINE:
2N/A case CMD_RCM_CAP_ADD:
2N/A case CMD_RCM_REMOVE:
2N/A case CMD_RCM_CAP_NOTIFY:
2N/A (void) ap_rcm_ctl(a, c);
2N/A case CMD_ASSIGN:
2N/A case CMD_POWERON:
2N/A case CMD_POWEROFF:
2N/A case CMD_UNASSIGN:
2N/A if (!fastreboot_disabled &&
2N/A SCF_SUCCESS) {
2N/A if (c == CMD_UNCONFIGURE ||
2N/A c == CMD_RCM_OFFLINE ||
2N/A c == CMD_RCM_CAP_DEL) {
2N/A case CMD_UNCONFIGURE:
2N/A case CMD_RCM_OFFLINE:
2N/A case CMD_RCM_CAP_DEL:
2N/A case AP_SEQ_NULL:
2N/A case AP_SEQ_FAIL: