summaryrefslogtreecommitdiffstats
path: root/drivers/char/busmouse.h
blob: 4ba7c9ce4a88295166657c69f15991e34a15c335 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * linux/drivers/char/mouse.h
 *
 * Copyright (C) 1995 - 1998 Russell King
 *
 * Prototypes for generic busmouse interface
 */
#ifndef MOUSE_H
#define MOUSE_H

struct busmouse {
	int minor;
	const char *name;
	int (*open)(struct inode * inode, struct file * file);
	int (*release)(struct inode * inode, struct file * file);
	int init_button_state;
};

extern void busmouse_add_movementbuttons(int mousedev, int dx, int dy, int buttons);
extern void busmouse_add_movement(int mousedev, int dx, int dy);
extern void busmouse_add_buttons(int mousedev, int clear, int eor);

extern int register_busmouse(struct busmouse *ops);
extern int unregister_busmouse(int mousedev);

#endif