Subversion Repositories shark

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 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.1.1 2002-03-29 14:12:49 pj Exp $
24
 
25
 File:        $File$
26
 Revision:    $Revision: 1.1.1.1 $
27
 Last update: $Date: 2002-03-29 14:12:49 $
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
 
63
typedef struct sermouse_info {
64
  int type;       /* MSMOUSE, MMMOUSE,... */
65
  int port;       /* COM1,COM2,... */
66
  PID pid;        /* task PID */
67
} SERMOUSE_INFO;
68
 
69
SERMOUSE_INFO *sermouse_present(void);
70
 
71
//extern TASK microsoftmouse_server(void);
72
//extern TASK mousesystem_server(void);
73
TASK (*sermouse_getserveraddr(SERMOUSE_INFO *))(void);
74
 
75
int  sermouse_open(void*);
76
void sermouse_close(void);
77
void sermouse_wait(void);
78
int  sermouse_get(BYTE *);
79
void sermouse_enable(void);
80
void sermouse_disable(void);
81
 
82
int M_ms(MOUSE_EVT *evt,unsigned char *data);
83
int M_ms_plus(MOUSE_EVT *evt,unsigned char *data);
84
int M_ms_plus_lr(MOUSE_EVT *evt,unsigned char *data);
85
int M_bare(MOUSE_EVT *evt,unsigned char *data);
86
int M_msc(MOUSE_EVT *evt,unsigned char *data);
87
int M_sun(MOUSE_EVT *evt,unsigned char *data);
88
int M_mm(MOUSE_EVT *evt,unsigned char *data);
89
int M_logi(MOUSE_EVT *evt,unsigned char *data);
90
 
91
#endif