cl_sm_pub.h revision cee0fb94c0d4227de0a00efc162fb2739844b641
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _CL_SM_PUB_
#define _CL_SM_PUB_
#include <limits.h>
#include <time.h>
#ifndef _CL_QM_DEFS_
#include "cl_qm_defs.h"
#endif
#ifndef _LH_DEFS_
#include "lh_defs.h"
#endif
#define MAX_TIMEOUT 100000000L
#define WAIT_ACTIVITY 10
#define WAIT_FOREVER LONG_MAX
#define WAIT_RETRY RETRY_TIMEOUT
#define WAIT_ZERO 0
} while (0)
#define CL_SM_CONTINUE() do { \
if (1) \
return (SME_SUSPEND); \
} while (0)
#define CL_SM_EXIT() do { \
if (1) \
return (SME_EXIT); \
} while (0)
if (1) \
return (SME_SUSPEND); \
} while (0)
if (1) \
return (SME_SWITCH); \
} while (0)
#define CL_SM_TERMINATE() do { \
if (1) \
return (SME_TERMINATE); \
} while (0)
typedef enum {
SME_FIRST = 0,
} CL_SM_EVENT;
typedef enum {
SMS_FIRST = 0,
} CL_SM_STATE;
typedef CL_SM_EVENT (*CL_SM_ARP)(void *);
typedef struct {
typedef struct {
} CL_SM_TABLE;
typedef struct {
void *taskp;
} CL_SM_TASK;
extern LH_RESPONSE *cl_lh_response;
extern CL_SM_TASK *cl_tqep;
STATUS cl_sm_execute(void);
#endif /* _CL_SM_PUB_ */