Re: DECstation R3000 boot error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Martin Michlmayr <tbm@xxxxxxxxxx> [2006-02-13 22:59]:
> BTW, turning CONFIG_VT on leads to these compile errors:

OK, I got it down to:

  CC      drivers/tc/lk201.o
drivers/tc/lk201.c: In function ‘lk201_rx_char’:
drivers/tc/lk201.c:361: warning: implicit declaration of function ‘handle_scancode’
drivers/tc/lk201.c: In function ‘lk201_init’:
drivers/tc/lk201.c:405: error: invalid lvalue in assignment
drivers/tc/lk201.c:406: error: invalid lvalue in assignment
make[2]: *** [drivers/tc/lk201.o] Error 1

But this driver really needs to be ported to the new input interface.


--- a/drivers/tc/lk201.c~	2006-02-13 22:59:57.000000000 +0000
+++ b/drivers/tc/lk201.c	2006-02-13 23:21:54.000000000 +0000
@@ -16,11 +16,9 @@
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/delay.h>
-#include <linux/kbd_ll.h>
 #include <linux/kbd_kern.h>
 #include <linux/vt_kern.h>
 
-#include <asm/keyboard.h>
 #include <asm/dec/tc.h>
 #include <asm/dec/machtype.h>
 #include <asm/dec/serial.h>
@@ -186,28 +184,28 @@
 {
 	if (r->delay <= 0)
 		r->delay = kbdrate.delay;
-	if (r->rate <= 0)
-		r->rate = kbdrate.rate;
+	if (r->period <= 0)
+		r->period = kbdrate.period;
 
 	if (r->delay < 5)
 		r->delay = 5;
 	if (r->delay > 630)
 		r->delay = 630;
-	if (r->rate < 12)
-		r->rate = 12;
-	if (r->rate > 127)
-		r->rate = 127;
-	if (r->rate == 125)
-		r->rate = 124;
+	if (r->period < 12)
+		r->period = 12;
+	if (r->period > 127)
+		r->period = 127;
+	if (r->period == 125)
+		r->period = 124;
 }
 
 static int write_kbd_rate(struct kbd_repeat *rep)
 {
-	int delay, rate;
+	int delay, period;
 	int i;
 
 	delay = rep->delay / 5;
-	rate = rep->rate;
+	period = rep->period;
 	for (i = 0; i < 4; i++) {
 		if (lk201_hook.poll_tx_char(lk201_handle,
 					    LK_CMD_RPT_RATE(i)))
@@ -216,7 +214,7 @@
 					    LK_PARAM_DELAY(delay)))
 			return 1;
 		if (lk201_hook.poll_tx_char(lk201_handle,
-					    LK_PARAM_RATE(rate)))
+					    LK_PARAM_RATE(period)))
 			return 1;
 	}
 	return 0;


-- 
Martin Michlmayr
http://www.cyrius.com/


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux