Blame view
include/linux/i8042.h
1.8 KB
553a05b88 Input: i8042 - ex... |
1 2 3 4 5 6 7 8 |
#ifndef _LINUX_I8042_H #define _LINUX_I8042_H /* * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software Foundation. */ |
181d683d7 Input: libps2 - a... |
9 |
#include <linux/types.h> |
553a05b88 Input: i8042 - ex... |
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
/* * Standard commands. */ #define I8042_CMD_CTL_RCTR 0x0120 #define I8042_CMD_CTL_WCTR 0x1060 #define I8042_CMD_CTL_TEST 0x01aa #define I8042_CMD_KBD_DISABLE 0x00ad #define I8042_CMD_KBD_ENABLE 0x00ae #define I8042_CMD_KBD_TEST 0x01ab #define I8042_CMD_KBD_LOOP 0x11d2 #define I8042_CMD_AUX_DISABLE 0x00a7 #define I8042_CMD_AUX_ENABLE 0x00a8 #define I8042_CMD_AUX_TEST 0x01a9 #define I8042_CMD_AUX_SEND 0x10d4 #define I8042_CMD_AUX_LOOP 0x11d3 #define I8042_CMD_MUX_PFX 0x0090 #define I8042_CMD_MUX_SEND 0x1090 |
181d683d7 Input: libps2 - a... |
32 33 34 35 36 37 |
struct serio; #if defined(CONFIG_SERIO_I8042) || defined(CONFIG_SERIO_I8042_MODULE) void i8042_lock_chip(void); void i8042_unlock_chip(void); |
553a05b88 Input: i8042 - ex... |
38 |
int i8042_command(unsigned char *param, int command); |
181d683d7 Input: libps2 - a... |
39 |
bool i8042_check_port_owner(const struct serio *); |
967c9ef9b Input: i8042 - al... |
40 41 42 43 |
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)); |
181d683d7 Input: libps2 - a... |
44 45 |
#else |
c59690fa4 Input: i8042 - ma... |
46 |
static inline void i8042_lock_chip(void) |
181d683d7 Input: libps2 - a... |
47 48 |
{ } |
c59690fa4 Input: i8042 - ma... |
49 |
static inline void i8042_unlock_chip(void) |
181d683d7 Input: libps2 - a... |
50 51 |
{ } |
c59690fa4 Input: i8042 - ma... |
52 |
static inline int i8042_command(unsigned char *param, int command) |
181d683d7 Input: libps2 - a... |
53 |
{ |
967c9ef9b Input: i8042 - al... |
54 |
return -ENODEV; |
181d683d7 Input: libps2 - a... |
55 |
} |
c59690fa4 Input: i8042 - ma... |
56 |
static inline bool i8042_check_port_owner(const struct serio *serio) |
181d683d7 Input: libps2 - a... |
57 58 59 |
{ return false; } |
c59690fa4 Input: i8042 - ma... |
60 |
static inline int i8042_install_filter(bool (*filter)(unsigned char data, unsigned char str, |
967c9ef9b Input: i8042 - al... |
61 62 63 64 |
struct serio *serio)) { return -ENODEV; } |
c59690fa4 Input: i8042 - ma... |
65 |
static inline int i8042_remove_filter(bool (*filter)(unsigned char data, unsigned char str, |
967c9ef9b Input: i8042 - al... |
66 67 68 69 |
struct serio *serio)) { return -ENODEV; } |
181d683d7 Input: libps2 - a... |
70 |
#endif |
553a05b88 Input: i8042 - ex... |
71 72 |
#endif |