scfdscpif.h revision 25cf1a301a396c38e8adf52c15f537b80d2483f7
/*
* 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
*/
/*
* All Rights Reserved, Copyright (c) FUJITSU LIMITED 2005
*/
#ifndef _SCFDSCPIF_H
#define _SCFDSCPIF_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Mailbox event types are defined as below.
*/
typedef enum {
SCF_MB_CONN_OK, /* Connection OK event */
SCF_MB_MSG_DATA, /* A new message has received */
SCF_MB_SPACE, /* Mailbox has space */
SCF_MB_DISC_ERROR /* Disconnect error */
} scf_event_t;
/*
* messages.
*/
typedef struct mscat_gath {
} mscat_gath_t;
/*
* Mailbox Flush types.
*/
typedef enum {
MB_FLUSH_RECEIVE, /* Flush all messages on the recieve side */
MB_FLUSH_ALL /* Flush messages on the both sides */
/*
* The following are the operations defined for scf_mb_ctrl().
*/
/*
* Return the maximum message length which could be received/transmitted
* on the specified mailbox. The value is returned via the argument(arg),
* which will be treated as a pointer to an uint32_t.
*/
#define SCF_MBOP_MAXMSGSIZE 0x00000001
#ifdef __cplusplus
}
#endif
#endif /* _SCFDSCPIF_H */