From c171fbe3dcc2c9982b7de5ff7d2b5df6dcee542c Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Wed, 11 Jul 2012 16:08:15 -0700 Subject: Map 256 bytes of data for host command args/params And retain compatibility for old requests. BUG=chrome-os-partner:11275 TEST=from u-boot prompt, 'mkbp hash' from root shell, 'ectool flashread 0 68084 /tmp/foo' then compare to first 68084 bytes of ec.bin Change-Id: Id82068773703543febde79fc820af7486502e01f Signed-off-by: Randall Spangler Reviewed-on: https://gerrit.chromium.org/gerrit/27226 --- board/link/board.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'board') diff --git a/board/link/board.h b/board/link/board.h index eeb091b046..41809b5357 100644 --- a/board/link/board.h +++ b/board/link/board.h @@ -45,26 +45,26 @@ /* LPC channels */ #define LPC_CH_ACPI 0 /* ACPI commands */ #define LPC_CH_PORT80 1 /* Port 80 debug output */ -#define LPC_CH_CMD_DATA 2 /* Data for kernel/user-mode commands */ +#define LPC_CH_CMD_DATA 2 /* Data for host commands (args/params/response) */ #define LPC_CH_KEYBOARD 3 /* 8042 keyboard emulation */ -#define LPC_CH_USER 4 /* User-mode commands */ -#define LPC_CH_MEMMAP 5 /* Data for kernel/user-mode commands */ +#define LPC_CH_CMD 4 /* Host commands */ +#define LPC_CH_MEMMAP 5 /* Memory-mapped data */ #define LPC_CH_COMX 7 /* UART emulation */ /* LPC pool offsets */ #define LPC_POOL_OFFS_ACPI 0 /* ACPI commands - 0=in, 1=out */ #define LPC_POOL_OFFS_PORT80 4 /* Port 80 - 4=in, 5=out */ #define LPC_POOL_OFFS_COMX 8 /* UART emulation range - 8-15 */ #define LPC_POOL_OFFS_KEYBOARD 16 /* Keyboard - 16=in, 17=out */ -#define LPC_POOL_OFFS_USER 20 /* User commands - 20=in, 21=out */ -#define LPC_POOL_OFFS_CMD_DATA 512 /* Data range for user commands - 512-639 */ +#define LPC_POOL_OFFS_CMD 20 /* Host commands - 20=in, 21=out */ +#define LPC_POOL_OFFS_CMD_DATA 512 /* Data range for host commands - 512-767 */ #define LPC_POOL_OFFS_MEMMAP 768 /* Memory-mapped data - 768-1023 */ /* LPC pool data pointers */ #define LPC_POOL_ACPI (LM4_LPC_LPCPOOL + LPC_POOL_OFFS_ACPI) #define LPC_POOL_PORT80 (LM4_LPC_LPCPOOL + LPC_POOL_OFFS_PORT80) #define LPC_POOL_COMX (LM4_LPC_LPCPOOL + LPC_POOL_OFFS_COMX) #define LPC_POOL_KEYBOARD (LM4_LPC_LPCPOOL + LPC_POOL_OFFS_KEYBOARD) +#define LPC_POOL_CMD (LM4_LPC_LPCPOOL + LPC_POOL_OFFS_CMD) #define LPC_POOL_CMD_DATA (LM4_LPC_LPCPOOL + LPC_POOL_OFFS_CMD_DATA) -#define LPC_POOL_USER (LM4_LPC_LPCPOOL + LPC_POOL_OFFS_USER) #define LPC_POOL_MEMMAP (LM4_LPC_LPCPOOL + LPC_POOL_OFFS_MEMMAP) /* LPC COMx I/O address (in x86 I/O address space) */ #define LPC_COMX_ADDR 0x3f8 /* COM1 */ -- cgit v1.2.1