Subversion Repositories shark

Rev

Rev 105 | 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: ps2mouse.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
 
33
 Virtual operation on a PS/2 mouse
34
 (for mouse.c)
35
 
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 __PS2MOUSE_H__
59
#define __PS2MOUSE_H__
60
 
61
#include <drivers/mouse.h>
1689 fabio 62
#include <arch/sys/cdefs.h>
105 pj 63
 
64
__BEGIN_DECLS
65
 
66
extern int C8042_ps2mousepresent(void);
67
#define ps2mouse_present() C8042_ps2mousepresent()
68
 
69
int  ps2mouse_open(void *);
70
void ps2mouse_close(void);
71
void ps2mouse_wait(void);
72
int  ps2mouse_get(BYTE *);
73
void ps2mouse_enable(void);
74
void ps2mouse_disable(void);
75
 
76
//extern TASK ps2mouse_server(void);
77
extern TASK (*ps2mouse_getserveraddr(void))(void);
78
 
79
extern int M_ps2(MOUSE_EVT *evt, unsigned char *data);
80
 
81
__END_DECLS
82
#endif