source:
patches/kbd-1.15-sparc_kbio-1.patch@
fd15fb0
Last change on this file since fd15fb0 was a65d7f3, checked in by , 16 years ago | |
---|---|
|
|
File size: 2.7 KB |
-
man/man8/kbdrate.8
Submitted By: Jim Gifford (jim at cross-lfs dot org) Date: 2009-02-05 Initial Package Version: 1.15 Origin: Fedora Upstream Status: Unknown Description: Sparc Linux Headers doesn't have asm/kbio.h anymore diff -Naur kbd-1.15.orig/man/man8/kbdrate.8 kbd-1.15/man/man8/kbdrate.8
old new 22 22 without any options will reset the repeat rate to 10.9 characters per second (cps) 23 23 and the delay to 250 milliseconds (ms) for Intel- and M68K-based systems. 24 24 These are the IBM defaults. On SPARC-based systems it will reset the repeat rate 25 to 5cps and the delay to 200 ms.25 to 20 cps and the delay to 200 ms. 26 26 27 27 .SH OPTIONS 28 28 .TP … … 69 69 .I /etc/rc.local 70 70 .br 71 71 .I /dev/port 72 .br 73 .I /dev/kbd -
src/kbdrate.c
diff -Naur kbd-1.15.orig/src/kbdrate.c kbd-1.15/src/kbdrate.c
old new 77 77 78 78 #ifdef __sparc__ 79 79 #include <asm/param.h> 80 #include <asm/kbio.h>81 80 #endif 82 81 83 82 #ifndef KDKBDREP … … 109 108 110 109 static int 111 110 KDKBDREP_ioctl_ok(double rate, int delay, int silent) { 111 #if defined(KDKBDREP) && !defined(__sparc__) 112 112 /* 113 113 * This ioctl is defined in <linux/kd.h> but is not 114 114 * implemented anywhere - must be in some m68k patches. 115 * We cannot blindly try unimplemented ioctls on sparc64 - 116 * the 32<->64bit transition layer does not like it. 115 117 * Since 2.4.9 also on i386. 116 */ 118 */ 119 117 120 struct my_kbd_repeat kbdrep_s; 118 121 119 122 /* don't change, just test */ … … 177 180 rate, kbdrep_s.delay ); 178 181 179 182 return 1; /* success! */ 183 #else /* no KDKBDREP or __sparc__ */ 184 return 0; 185 #endif /* KDKBDREP */ 180 186 } 181 187 182 188 static int … … 221 227 int 222 228 main( int argc, char **argv ) { 223 229 #ifdef __sparc__ 224 double rate = 5.0; /* Default rate */230 double rate = 20.0; /* Default rate */ 225 231 int delay = 200; /* Default delay */ 226 232 #else 227 233 double rate = 10.9; /* Default rate */ … … 272 278 273 279 274 280 /* The ioport way */ 281 /* The ioport way - will crash on sparc */ 275 282 283 #ifndef __sparc__ 276 284 for (i = 0; i < RATE_COUNT; i++) 277 285 if (rate * 10 >= valid_rates[i]) { 278 286 value &= 0x60; … … 335 343 valid_rates[value & 0x1f] / 10.0, 336 344 valid_delays[ (value & 0x60) >> 5 ] ); 337 345 346 #endif 347 338 348 return 0; 339 349 } -
src/setleds.c
diff -Naur kbd-1.15.orig/src/setleds.c kbd-1.15/src/setleds.c
old new 14 14 #include "nls.h" 15 15 #include "version.h" 16 16 17 #ifdef __sparc__18 #include <asm/kbio.h>19 #endif20 21 17 static void 22 18 usage(void) 23 19 {
Note:
See TracBrowser
for help on using the repository browser.