diff options
author | Raul E Rangel <rrangel@chromium.org> | 2022-08-18 16:43:47 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-08-19 19:59:33 +0000 |
commit | e1396b6670aecb78aecc9e64156990eab4b0f90e (patch) | |
tree | 55d286906b25f9c5c4eec225c3545b7fdd43f3c7 /include | |
parent | 589de39cdb54d832f58e1a43183c936878238739 (diff) | |
download | chrome-ec-e1396b6670aecb78aecc9e64156990eab4b0f90e.tar.gz |
8042: Add link to documentation and remove strange or stale codes
It's helpful to know where these magic values came from. This change
adds documentation and removes any codes that are unused and not in the
documentation.
BUG=b:242886255
BRANCH=none
TEST=run unit tests
Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Change-Id: Icef4e2e406af7016003220da755c16e82d3f8c4e
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3842197
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/i8042_protocol.h | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/include/i8042_protocol.h b/include/i8042_protocol.h index 80babd02b6..5176cad95f 100644 --- a/include/i8042_protocol.h +++ b/include/i8042_protocol.h @@ -2,7 +2,11 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * - * i8042 keyboard protocol constants + * i8042 keyboard protocol constants. + * + * See the IBM PS/2 Hardware Interface Technical Reference Manual + * + * https://archive.org/details/ps-2-hardware-interface-technical-reference-ocr/PS2HardwareInterfaceTechnicalReference-OCR/page/n371/mode/1up */ #ifndef __CROS_EC_I8042_PROTOCOL_H @@ -10,12 +14,6 @@ /* Some commands appear more than once. Why? */ -/* port 0x60 */ -#define I8042_CMD_MOUSE_1_1 0xe6 -#define I8042_CMD_MOUSE_2_1 0xe7 -#define I8042_CMD_MOUSE_RES 0xe8 -#define I8042_CMD_GET_MOUSE 0xe9 - /* port 0x64 */ #define I8042_READ_CMD_BYTE 0x20 #define I8042_READ_CTL_RAM 0x21 @@ -51,13 +49,7 @@ #define I8042_PULSE_END 0xff /* port 0x60 return value */ -#define I8042_RET_EMUL0 0xe0 -#define I8042_RET_EMUL1 0xe1 -#define I8042_RET_RELEASE 0xf0 -#define I8042_RET_HANJA 0xf1 -#define I8042_RET_HANGEUL 0xf2 #define I8042_RET_NAK 0xfe -#define I8042_RET_ERR 0xff /* port 64 - command byte bits */ #define I8042_XLATE BIT(6) |