Release 4.12 include/linux/i8042.h
#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.
*/
#include <linux/types.h>
/*
* 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
/*
* Status register bits.
*/
#define I8042_STR_PARITY 0x80
#define I8042_STR_TIMEOUT 0x40
#define I8042_STR_AUXDATA 0x20
#define I8042_STR_KEYLOCK 0x10
#define I8042_STR_CMDDAT 0x08
#define I8042_STR_MUXERR 0x04
#define I8042_STR_IBF 0x02
#define I8042_STR_OBF 0x01
/*
* Control register bits.
*/
#define I8042_CTR_KBDINT 0x01
#define I8042_CTR_AUXINT 0x02
#define I8042_CTR_IGNKEYLOCK 0x08
#define I8042_CTR_KBDDIS 0x10
#define I8042_CTR_AUXDIS 0x20
#define I8042_CTR_XLATE 0x40
struct serio;
#if defined(CONFIG_SERIO_I8042) || defined(CONFIG_SERIO_I8042_MODULE)
void i8042_lock_chip(void);
void i8042_unlock_chip(void);
int i8042_command(unsigned char *param, int command);
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
static inline void i8042_lock_chip(void)
{
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Dmitry Torokhov | 6 | 75.00% | 1 | 50.00% |
Feng Tang | 2 | 25.00% | 1 | 50.00% |
Total | 8 | 100.00% | 2 | 100.00% |
static inline void i8042_unlock_chip(void)
{
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Dmitry Torokhov | 6 | 75.00% | 1 | 50.00% |
Feng Tang | 2 | 25.00% | 1 | 50.00% |
Total | 8 | 100.00% | 2 | 100.00% |
static inline int i8042_command(unsigned char *param, int command)
{
return -ENODEV;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Dmitry Torokhov | 16 | 84.21% | 1 | 33.33% |
Feng Tang | 2 | 10.53% | 1 | 33.33% |
Matthew Garrett | 1 | 5.26% | 1 | 33.33% |
Total | 19 | 100.00% | 3 | 100.00% |
static inline int i8042_install_filter(bool (*filter)(unsigned char data, unsigned char str,
struct serio *serio))
{
return -ENODEV;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Matthew Garrett | 29 | 93.55% | 1 | 50.00% |
Feng Tang | 2 | 6.45% | 1 | 50.00% |
Total | 31 | 100.00% | 2 | 100.00% |
static inline int i8042_remove_filter(bool (*filter)(unsigned char data, unsigned char str,
struct serio *serio))
{
return -ENODEV;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Matthew Garrett | 29 | 93.55% | 1 | 50.00% |
Feng Tang | 2 | 6.45% | 1 | 50.00% |
Total | 31 | 100.00% | 2 | 100.00% |
#endif
#endif
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Matthew Garrett | 107 | 34.08% | 1 | 20.00% |
Márton Németh | 78 | 24.84% | 1 | 20.00% |
Dmitry Torokhov | 61 | 19.43% | 1 | 20.00% |
Andrey Moiseev | 58 | 18.47% | 1 | 20.00% |
Feng Tang | 10 | 3.18% | 1 | 20.00% |
Total | 314 | 100.00% | 5 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.