Subversion Repositories shark

Rev

Rev 105 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
105 pj 1
/*
2
 * Project: S.Ha.R.K.
3
 *
4
 * Coordinators:
5
 *   Giorgio Buttazzo    <giorgio@sssup.it>
6
 *   Paolo Gai           <pj@gandalf.sssup.it>
7
 *
8
 * Authors     :
9
 *   Paolo Gai           <pj@gandalf.sssup.it>
10
 *   Massimiliano Giorgi <massy@gandalf.sssup.it>
11
 *   Luca Abeni          <luca@gandalf.sssup.it>
12
 *   (see the web pages for full authors list)
13
 *
14
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
15
 *
16
 * http://www.sssup.it
17
 * http://retis.sssup.it
18
 * http://shark.sssup.it
19
 */
20
 
21
/**
22
 ------------
23
 CVS :        $Id: sermouse.h,v 1.1 2003-03-24 10:54:17 pj Exp $
24
 
25
 File:        $File$
26
 Revision:    $Revision: 1.1 $
27
 Last update: $Date: 2003-03-24 10:54:17 $
28
 ------------
29
 
30
 Author: Massimiliano Giorgi
31
 
32
 Virtual operation for a serial mouse
33
 (for mouse.c)
34
 
35
 Initial date: 22/mar/1999
36
 
37
**/
38
 
39
/*
40
 * Copyright (C) 2000 Paolo Gai
41
 *
42
 * This program is free software; you can redistribute it and/or modify
43
 * it under the terms of the GNU General Public License as published by
44
 * the Free Software Foundation; either version 2 of the License, or
45
 * (at your option) any later version.
46
 *
47
 * This program is distributed in the hope that it will be useful,
48
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
49
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
50
 * GNU General Public License for more details.
51
 *
52
 * You should have received a copy of the GNU General Public License
53
 * along with this program; if not, write to the Free Software
54
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
55
 *
56
 */
57
 
58
#ifndef __SERMOUSE_H__
59
#define __SERMOUSE_H__
60
 
61
#include <drivers/mouse.h>
62
#include "ll/sys/cdefs.h"
63
 
64
__BEGIN_DECLS
65
 
66
typedef struct sermouse_info {
67
  int type;       /* MSMOUSE, MMMOUSE,... */
68
  int port;       /* COM1,COM2,... */
69
  PID pid;        /* task PID */
70
} SERMOUSE_INFO;
71
 
72
SERMOUSE_INFO *sermouse_present(void);
73
 
74
//extern TASK microsoftmouse_server(void);
75
//extern TASK mousesystem_server(void);
76
TASK (*sermouse_getserveraddr(SERMOUSE_INFO *))(void);
77
 
78
int  sermouse_open(void*);
79
void sermouse_close(void);
80
void sermouse_wait(void);
81
int  sermouse_get(BYTE *);
82
void sermouse_enable(void);
83
void sermouse_disable(void);
84
 
85
int M_ms(MOUSE_EVT *evt,unsigned char *data);
86
int M_ms_plus(MOUSE_EVT *evt,unsigned char *data);
87
int M_ms_plus_lr(MOUSE_EVT *evt,unsigned char *data);
88
int M_bare(MOUSE_EVT *evt,unsigned char *data);
89
int M_msc(MOUSE_EVT *evt,unsigned char *data);
90
int M_sun(MOUSE_EVT *evt,unsigned char *data);
91
int M_mm(MOUSE_EVT *evt,unsigned char *data);
92
int M_logi(MOUSE_EVT *evt,unsigned char *data);
93
 
94
__END_DECLS
95
#endif