OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [drivers/] [char/] [busmouse.h] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
/*
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

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.