Lines 93-103
Link Here
|
93 |
/* kbd rate stuff based on kbdrate.c from Rik Faith <faith@cs.unc.edu> et.al. |
93 |
/* kbd rate stuff based on kbdrate.c from Rik Faith <faith@cs.unc.edu> et.al. |
94 |
* from util-linux-2.9t package */ |
94 |
* from util-linux-2.9t package */ |
95 |
|
95 |
|
|
|
96 |
#include <linux/kd.h> |
97 |
#include <linux/version.h> |
96 |
#ifdef __sparc__ |
98 |
#ifdef __sparc__ |
97 |
#include <asm/param.h> |
99 |
#include <asm/param.h> |
98 |
#include <asm/kbio.h> |
100 |
#include <asm/kbio.h> |
99 |
#endif |
101 |
#endif |
100 |
|
102 |
|
|
|
103 |
/* Deal with spurious kernel header change */ |
104 |
#if defined(LINUX_VERSION_CODE) && defined(KERNEL_VERSION) |
105 |
# if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,42) |
106 |
# define rate period |
107 |
# endif |
108 |
#endif |
109 |
|
101 |
static int |
110 |
static int |
102 |
KDKBDREP_ioctl_ok(int rate, int delay) { |
111 |
KDKBDREP_ioctl_ok(int rate, int delay) { |
103 |
#if defined(KDKBDREP) && !defined(__sparc__) |
112 |
#if defined(KDKBDREP) && !defined(__sparc__) |
Lines 159-164
Link Here
|
159 |
#endif /* KIOCSRATE */ |
168 |
#endif /* KIOCSRATE */ |
160 |
} |
169 |
} |
161 |
|
170 |
|
|
|
171 |
#undef rate |
172 |
|
162 |
static void |
173 |
static void |
163 |
SetKbdRepeat(InputInfoPtr pInfo, char rad) |
174 |
SetKbdRepeat(InputInfoPtr pInfo, char rad) |
164 |
{ |
175 |
{ |