/*
* 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 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_CONSMS_H
#define _SYS_CONSMS_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Those default values are taken from lower mice drivers.
*/
#define CONSMS_PARMS_DEFAULT_JITTER 0
#define CONSMS_PARMS_DEFAULT_SPEED_LAW 0
#define CONSMS_MAX(x, y) ((x) > (y) ? (x) : (y))
/*
* These states are only used when an underlying mouse
* in order to set some cached state variables. And these
* states go in a sequential way.
*/
typedef enum {
struct consms_lq;
/*
* This structure contains information
* for each underlying physical mouse
* (lower queue).
*/
typedef struct consms_lq {
} consms_lq_t;
/*
* This structure is used to remember the
* COPYIN and COPYOUT request mp from lower
* queue during transparent ioctl.
*/
typedef struct consms_response {
/*
* This structure contains information for
* each ioctl message from upper layer
* (usually, X server).
*/
typedef struct consms_msg {
/*
* ack_mp is just used for IOCACK
* and rsp_list is only used for COPYIN
* or COPYOUT responses from lowers
*/
} consms_msg_t;
/*
* This structure contains information
* about virtual mouse (lower queue list,
* and virtual mouse state variables).
*/
typedef struct consms_state {
/* virtual mouse state variables */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_CONSMS_H */