Re: [PATCH] Wistron laptop button driver

2005-09-08 Thread Miloslav Trmac
Pekka Enberg wrote: > On 9/7/05, Miloslav Trmac <[EMAIL PROTECTED]> wrote: > >>+static int __init map_bios(void) >>+{ >>+ static const unsigned char __initdata signature[] >>+ = { 0x42, 0x21, 0x55, 0x30 }; >>+ >>+ void __iomem *base; >>+ size_t offset; >>+ uint32_t entr

Re: [PATCH] Wistron laptop button driver

2005-09-08 Thread Miloslav Trmac
Andrew Morton wrote: > Miloslav Trmac <[EMAIL PROTECTED]> wrote: > >>+static void call_bios(struct regs *regs) >> +{ >> +unsigned long flags; >> + >> +preempt_disable(); >> +local_irq_save(flags); >> +asm volatile ("pushl %%ebp;" >> + "movl %[data], %%ebp;" >> +

Re: [PATCH] Wistron laptop button driver

2005-09-07 Thread Pekka Enberg
On 9/7/05, Miloslav Trmac <[EMAIL PROTECTED]> wrote: > +static int __init map_bios(void) > +{ > + static const unsigned char __initdata signature[] > + = { 0x42, 0x21, 0x55, 0x30 }; > + > + void __iomem *base; > + size_t offset; > + uint32_t entry_point; > + > + base

Re: [PATCH] Wistron laptop button driver

2005-09-07 Thread Andrew Morton
Miloslav Trmac <[EMAIL PROTECTED]> wrote: > > +static void call_bios(struct regs *regs) > +{ > +unsigned long flags; > + > +preempt_disable(); > +local_irq_save(flags); > +asm volatile ("pushl %%ebp;" > + "movl %[data], %%ebp;" > + "call *%[

[PATCH] Wistron laptop button driver

2005-09-06 Thread Miloslav Trmac
Hello, attached (as a patch against 2.6.13-git6) is a driver for laptop buttons on my Fujitsu-Siemens Amilo Pro V2000; it seems quite a few other laptops use the same interface (with differing sets of buttons). Thanks, Mirek A driver for laptop buttons using an x86 BIOS interface that is a