Re: [PATCH] busmouse.o module, mouse_irq param

Michael Ballbach (ballbach@lorien.ml.org)
Sun, 29 Nov 1998 17:12:41 -0700 (MST)


I suppose I should have mentioned this applies cleanly to 2.1.130, and
since I don't think it's been modified in quite some time, a lot of other
kernels too.

On Sun, 29 Nov 1998, Michael Ballbach wrote:

> I finally got irritated enough with having to change the irq in busmouse.h
> whenever I downloaded a new source tree for my home machine that I threw
> this patch in for the busmouse module, it allows it to take a mouse_irq
> parameter, so you can tell the module what irq your busmouse sits on.
> (i.e. modprobe busmouse mouse_irq=9)
>
> *** busmouse.c.old Sun Nov 29 15:16:57 1998
> --- busmouse.c Sun Nov 29 15:16:08 1998
> ***************
> *** 56,61 ****
> --- 56,65 ----
> static struct mouse_status mouse;
> static int mouse_irq = MOUSE_IRQ;
>
> + #ifdef MODULE
> + MODULE_PARM(mouse_irq, "i");
> + #endif
> +
> __initfunc(void bmouse_setup(char *str, int *ints))
> {
> if (ints[0] > 0)
>
> *** msbusmouse.c.old Sun Nov 29 15:21:49 1998
> --- msbusmouse.c Sun Nov 29 15:21:54 1998
> ***************
> *** 51,56 ****
> --- 51,60 ----
> static struct mouse_status mouse;
> static int mouse_irq = MOUSE_IRQ;
>
> + #ifdef MODULE
> + MODULE_PARM(mouse_irq, "i");
> + #endif
> +
> __initfunc(void msmouse_setup(char *str, int *ints))
> {
> if (ints[0] > 0)
>
> --------------------------
> Michael A. Ballbach: N0ZTQ
> ballbach@lorien.ml.org <--- PGP Key Here. (finger)
> mikeb@vr1.com -- Office: (303)413-8846
> http://ballbach.lorien.ml.org/
>
> "I don't know how world war three will be fought, but world war four will
> be fought with sticks and stones." -- Albert Einstein.
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
> Please read the FAQ at http://www.tux.org/lkml/
>

--------------------------
Michael A. Ballbach: N0ZTQ
ballbach@lorien.ml.org <--- PGP Key Here. (finger)
mikeb@vr1.com -- Office: (303)413-8846
http://ballbach.lorien.ml.org/

"I don't know how world war three will be fought, but world war four will
be fought with sticks and stones." -- Albert Einstein.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/