lkml.org 
[lkml]   [2002]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectJoystick driver development


> Howdy,
>
> I am trying to write a new kernel mode joystick driver for linux. I tested
> my logic by first making a user mode driver and testing it.
>
> The problem I am facing is in communication with joystick from the kernel
> space.
>
>
> I use request region to gain acces to joystick port from kernel mode, as
> follows:
>
>
> if(request_region(BASEPORT,1,"Joystick")!=NULL)
> {
> printk("\nPort avilable");
> printk("\nyou read %d",inb(BASEPORT));
> }
>
> Then i use outb and inb functions to access port, and send back the
> joystick reading to the user application.
>
>
> The problem is sometimes the joystick read doesnt drop from 255, and thus
> I get no change in input values.
>
> I examined existing joystick driver code , and Mr.Pavlik do not use this
> approach. Can you tell mewhere I am wrong?
>
> Thanks,
> Vikas
> Texas A&M
>
>
>

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

\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.030 / U:2.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site