For making the mouse driver recognize the keyboard buffer (buffer in
keyboard driver), you need to expose the keyboard buffer by using the
EXPORT_SYMBOL macro in keyboard driver. On other side you should build your
mouse driver module over keyboard driver module and use the keyboard buffer by
first decleraing the keyboard buffer as extern variable in mouse driver.
If I am wrong, please correct me.
Regards,
Gaurav.
-----Original Message----- From:
kernelnewbies-bounce@xxxxxxxxxxxx on behalf of Maikon Bueno
Sent: Tue 8/3/2004 6:00 PM To:
kernelnewbies@xxxxxxxxxxxx Cc: Subject: sending a byte
to keyboard buffer
Hi all, I'm writing a driver for a mouse. When a button
is pressed, the driver must send a char to the keyboard buffer. So, mouse
buttons must behave like keyboard keys. I would like to know how to send a
char to the keyboard buffer. Is it need to use the outb() function? Does
anybody know how to do that? Thanks!
-- Kernelnewbies: Help each
other learn about the Linux
kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ:
http://kernelnewbies.org/faq/
|