diff options
author | Randall Spangler <rspangler@chromium.org> | 2012-03-02 10:16:43 -0800 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2012-03-05 09:23:51 -0800 |
commit | 2464e96469a816cf4144da4f0e7b957372181325 (patch) | |
tree | cb53b80bc76a6536cade7283891aaeff3e3264fc /include/lpc.h | |
parent | 2ae113da5510fed2f0f24743802f5de023473256 (diff) | |
download | chrome-ec-2464e96469a816cf4144da4f0e7b957372181325.tar.gz |
Add SMI/SCI support
BUG=chrome-os-partner:8277
TEST=manual
On EC console:
hostevent set 0x1e
From root shell:
ectool eventget --> should return 0x1e
ectool eventclear 0x02
ectool eventget --> should return 0x1c
ectool queryec --> should return event 3
ectool queryec --> should return event 4
ectool queryec --> should return event 5
ectool queryec --> should return no event pending
ectool eventsetsmimask 0x1200
ectool eventsetscimask 0x0034
ectool eventgetsmimask --> should return 0x1200
ectool eventgetscimask --> should return 0x0034
On EC console:
hostevent --> should show raw=0 SMI mask = 0x1200 SCI mask = 0x34
Change-Id: I33042fa80c0b148cd63209a94a184af493e25ed3
Diffstat (limited to 'include/lpc.h')
-rw-r--r-- | include/lpc.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/lpc.h b/include/lpc.h index 074b9f6f2b..b7163f3c34 100644 --- a/include/lpc.h +++ b/include/lpc.h @@ -48,4 +48,19 @@ int lpc_comx_get_char(void); /* Puts a character to the COMx LPC interface. */ void lpc_comx_put_char(int c); +/* Set one or more SCI/SMI event bits. */ +void lpc_set_host_events(uint32_t mask); + +/* Clear one or more SCI/SMI event bits. Write 1 to a bit to clear it. */ +void lpc_clear_host_events(uint32_t mask); + +/* Return the raw SCI/SMI event state. */ +uint32_t lpc_get_host_events(void); + +/* Set the SMI (sci=0) or SMI (sci=1) event mask. */ +void lpc_set_host_event_mask(int sci, uint32_t mask); + +/* Return the SMI (sci=0) or SMI (sci=1) event mask. */ +uint32_t lpc_get_host_event_mask(int sci); + #endif /* __CROS_EC_LPC_H */ |