summaryrefslogtreecommitdiff
path: root/common/keyboard_8042.c
diff options
context:
space:
mode:
authorAnton Staaf <robotboy@chromium.org>2015-05-13 13:24:52 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-05-26 19:36:15 +0000
commita0ebf0a008670ece41529a2fce01882192331c6e (patch)
treeaf15cc38acca1fa811d819aa327abcc7d415552a /common/keyboard_8042.c
parent2a4ac55edfbbbdcde605c323e07effcca5716e6f (diff)
downloadchrome-ec-a0ebf0a008670ece41529a2fce01882192331c6e.tar.gz
Queue: Add policies to queues
Policies give a convenient place to hook into the queue operations and notify something that there is new space free in the queue or new units added. Signed-off-by: Anton Staaf <robotboy@chromium.org> BRANCH=None BUG=None TEST=make buildall -j Change-Id: I94b2aa94b8e8d07911191bc19a39fa827623b117 Reviewed-on: https://chromium-review.googlesource.com/271791 Reviewed-by: Bill Richardson <wfrichar@chromium.org> Reviewed-by: Anton Staaf <robotboy@chromium.org> Commit-Queue: Anton Staaf <robotboy@chromium.org> Trybot-Ready: Anton Staaf <robotboy@chromium.org> Tested-by: Anton Staaf <robotboy@chromium.org>
Diffstat (limited to 'common/keyboard_8042.c')
-rw-r--r--common/keyboard_8042.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/keyboard_8042.c b/common/keyboard_8042.c
index d21b4ceae5..8affac4d8b 100644
--- a/common/keyboard_8042.c
+++ b/common/keyboard_8042.c
@@ -68,7 +68,7 @@ enum scancode_set_list {
*/
static struct mutex to_host_mutex;
-QUEUE_CONFIG(to_host, 16, uint8_t);
+static struct queue const to_host = QUEUE_NULL(16, uint8_t);
/* Queue command/data from the host */
enum {
@@ -91,7 +91,7 @@ struct host_byte {
*
* Hence, 5 (actually 4 plus one spare) is large enough, but use 8 for safety.
*/
-QUEUE_CONFIG(from_host, 8, struct host_byte);
+static struct queue const from_host = QUEUE_NULL(8, struct host_byte);
static int i8042_irq_enabled;