mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Fix PS/2 keyboard and mouse on I2000
@ 2003-06-02  0:30 Peter Chubb
  2003-06-09 12:54 ` Vojtech Pavlik
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Chubb @ 2003-06-02  0:30 UTC (permalink / raw)
  To: Vojtech Pavlik; +Cc: linux-kernel


Hi,
	 The appended fix is needed on I2000 machines, to map the
legacy ISA interrupt onto the actual interrupt provided.  Otherwise
the mouse and keyboard won't work.  Patch against 2.5.70.


# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.1101  -> 1.1102 
#	drivers/input/serio/i8042-io.h	1.4     -> 1.5    
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/05/27	peterc@gelato.unsw.edu.au	1.1102
# IA64: Fix  I2000 no keyboard interrupt problem.
# --------------------------------------------
#
diff -Nru a/drivers/input/serio/i8042-io.h b/drivers/input/serio/i8042-io.h
--- a/drivers/input/serio/i8042-io.h	Tue May 27 14:07:29 2003
+++ b/drivers/input/serio/i8042-io.h	Tue May 27 14:07:29 2003
@@ -20,11 +20,14 @@
  */
 
 #ifdef __alpha__
-#define I8042_KBD_IRQ	1
-#define I8042_AUX_IRQ	(RTC_PORT(0) == 0x170 ? 9 : 12)	/* Jensen is special */
+# define I8042_KBD_IRQ	1
+# define I8042_AUX_IRQ	(RTC_PORT(0) == 0x170 ? 9 : 12)	/* Jensen is special */
+#elif defined(__ia64__)
+# define I8042_KBD_IRQ isa_irq_to_vector(1)
+# define I8042_AUX_IRQ isa_irq_to_vector(12)
 #else
-#define I8042_KBD_IRQ	1
-#define I8042_AUX_IRQ	12
+# define I8042_KBD_IRQ	1
+# define I8042_AUX_IRQ	12
 #endif
 
 /*


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Fix PS/2 keyboard and mouse on I2000
  2003-06-02  0:30 Fix PS/2 keyboard and mouse on I2000 Peter Chubb
@ 2003-06-09 12:54 ` Vojtech Pavlik
  0 siblings, 0 replies; 2+ messages in thread
From: Vojtech Pavlik @ 2003-06-09 12:54 UTC (permalink / raw)
  To: Peter Chubb; +Cc: Vojtech Pavlik, linux-kernel

On Mon, Jun 02, 2003 at 10:30:35AM +1000, Peter Chubb wrote:
> 
> Hi,
> 	 The appended fix is needed on I2000 machines, to map the
> legacy ISA interrupt onto the actual interrupt provided.  Otherwise
> the mouse and keyboard won't work.  Patch against 2.5.70.

Thanks, applied.

> # This is a BitKeeper generated patch for the following project:
> # Project Name: Linux kernel tree
> # This patch format is intended for GNU patch command version 2.5 or higher.
> # This patch includes the following deltas:
> #	           ChangeSet	1.1101  -> 1.1102 
> #	drivers/input/serio/i8042-io.h	1.4     -> 1.5    
> #
> # The following is the BitKeeper ChangeSet Log
> # --------------------------------------------
> # 03/05/27	peterc@gelato.unsw.edu.au	1.1102
> # IA64: Fix  I2000 no keyboard interrupt problem.
> # --------------------------------------------
> #
> diff -Nru a/drivers/input/serio/i8042-io.h b/drivers/input/serio/i8042-io.h
> --- a/drivers/input/serio/i8042-io.h	Tue May 27 14:07:29 2003
> +++ b/drivers/input/serio/i8042-io.h	Tue May 27 14:07:29 2003
> @@ -20,11 +20,14 @@
>   */
>  
>  #ifdef __alpha__
> -#define I8042_KBD_IRQ	1
> -#define I8042_AUX_IRQ	(RTC_PORT(0) == 0x170 ? 9 : 12)	/* Jensen is special */
> +# define I8042_KBD_IRQ	1
> +# define I8042_AUX_IRQ	(RTC_PORT(0) == 0x170 ? 9 : 12)	/* Jensen is special */
> +#elif defined(__ia64__)
> +# define I8042_KBD_IRQ isa_irq_to_vector(1)
> +# define I8042_AUX_IRQ isa_irq_to_vector(12)
>  #else
> -#define I8042_KBD_IRQ	1
> -#define I8042_AUX_IRQ	12
> +# define I8042_KBD_IRQ	1
> +# define I8042_AUX_IRQ	12
>  #endif
>  
>  /*
> 

-- 
Vojtech Pavlik
SuSE Labs, SuSE CR

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-06-09 12:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-02  0:30 Fix PS/2 keyboard and mouse on I2000 Peter Chubb
2003-06-09 12:54 ` Vojtech Pavlik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®