Messages in this thread |  | | Date | Wed, 4 Sep 2002 10:49:07 -0500 (CDT) | From | Vikas Jain <> | Subject | Joystick 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/
|  |