]> Pileus Git - ~andy/linux/blobdiff - include/linux/i8042.h
Input: i8042 - allow installing platform filters for incoming data
[~andy/linux] / include / linux / i8042.h
index 60c3360ef6adf633416b51773d828623851afca0..9bf6870ee5f4cff00d8bd3dfea9ee374ebfb2e2b 100644 (file)
@@ -39,6 +39,10 @@ void i8042_lock_chip(void);
 void i8042_unlock_chip(void);
 int i8042_command(unsigned char *param, int command);
 bool i8042_check_port_owner(const struct serio *);
+int i8042_install_filter(bool (*filter)(unsigned char data, unsigned char str,
+                                       struct serio *serio));
+int i8042_remove_filter(bool (*filter)(unsigned char data, unsigned char str,
+                                      struct serio *serio));
 
 #else
 
@@ -52,7 +56,7 @@ void i8042_unlock_chip(void)
 
 int i8042_command(unsigned char *param, int command)
 {
-       return -ENOSYS;
+       return -ENODEV;
 }
 
 bool i8042_check_port_owner(const struct serio *serio)
@@ -60,6 +64,18 @@ bool i8042_check_port_owner(const struct serio *serio)
        return false;
 }
 
+int i8042_install_filter(bool (*filter)(unsigned char data, unsigned char str,
+                                       struct serio *serio))
+{
+       return -ENODEV;
+}
+
+int i8042_remove_filter(bool (*filter)(unsigned char data, unsigned char str,
+                                      struct serio *serio))
+{
+       return -ENODEV;
+}
+
 #endif
 
 #endif