X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=include%2Flinux%2Flibps2.h;h=f6f301e2b0f58a5f229c62c826f810c8e1177431;hb=9981a0e36a572e9fcf84bfab915fdc93bed0e3c9;hp=a710bddda4ebaade343bd925bf7f9c7fb9fc20a5;hpb=5d2a22079c825669d91a3a200332f1053b4b61b0;p=cascardo%2Flinux.git diff --git a/include/linux/libps2.h b/include/linux/libps2.h index a710bddda4eb..f6f301e2b0f5 100644 --- a/include/linux/libps2.h +++ b/include/linux/libps2.h @@ -28,7 +28,7 @@ struct ps2dev { struct serio *serio; /* Ensures that only one command is executing at a time */ - struct semaphore cmd_sem; + struct mutex cmd_mutex; /* Used to signal completion from interrupt handler */ wait_queue_head_t wait; @@ -47,5 +47,6 @@ int ps2_schedule_command(struct ps2dev *ps2dev, unsigned char *param, int comman int ps2_handle_ack(struct ps2dev *ps2dev, unsigned char data); int ps2_handle_response(struct ps2dev *ps2dev, unsigned char data); void ps2_cmd_aborted(struct ps2dev *ps2dev); +int ps2_is_keyboard_id(char id); #endif /* _LIBPS2_H */