1 /*
2  * linux/drivers/char/busmouse.h
3  *
4  * Copyright (C) 1995 - 1998 Russell King
5  *
6  * Prototypes for generic busmouse interface
7  */
8 #ifndef BUSMOUSE_H
9 #define BUSMOUSE_H
10 
11 struct busmouse {
12 	int minor;
13 	const char *name;
14 	struct module *owner;
15 	int (*open)(struct inode * inode, struct file * file);
16 	int (*release)(struct inode * inode, struct file * file);
17 	int init_button_state;
18 };
19 
20 extern void busmouse_add_movementbuttons(int mousedev, int dx, int dy, int buttons);
21 extern void busmouse_add_movement(int mousedev, int dx, int dy);
22 extern void busmouse_add_buttons(int mousedev, int clear, int eor);
23 
24 extern int register_busmouse(struct busmouse *ops);
25 extern int unregister_busmouse(int mousedev);
26 
27 #endif
28