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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [drivers/] [char/] [mc68328digi.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1626 jcastillo
#ifndef _MC68328DIGI_H
2
#define _MC68328DIGI_H
3
 
4
#include <linux/ioctl.h>
5
 
6
enum mc68328digi_mode {
7
        MC68328DIGI_RARE,               /* debounced up/down and absolute x,y */
8
        MC68328DIGI_DEBUG,              /* up/down, debounced, transitions, button */
9
        MC68328DIGI_PS2,                /* ps2 relative (default) */
10
};
11
 
12
 
13
struct mc68328digi_params {
14
        enum mc68328digi_mode mode;
15
        int     bounce_interval;
16
        int     sticky_drag;
17
        int     tap_interval;
18
        int     irq;
19
        int     io;
20
        int     calibrated;
21
        long    x_a, x_b;
22
        long    y_a, y_b;
23
};
24
 
25
#define MS *HZ/1000
26
 
27
/* Appears as device major=10 (MISC), minor=PC110_PAD */
28
#define MC68328DIGI_MINOR               9
29
 
30
#define MC68328DIGI_IOCTL_TYPE          0x9a
31
 
32
#define MC68328DIGIIOCGETP _IOR(MC68328DIGI_IOCTL_TYPE, 0, struct mc68328digi_params)
33
#define MC68328DIGIIOCSETP _IOR(MC68328DIGI_IOCTL_TYPE, 1, struct mc68328digi_params)
34
 
35
#endif /* _MC68328DIGI_H */

powered by: WebSVN 2.1.0

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