1/* $NetBSD: input.h,v 1.1.1.2 2017/11/30 19:40:51 jmcneill Exp $ */ 2 3/* SPDX-License-Identifier: GPL-2.0 */ 4/* 5 * This header provides constants for most input bindings. 6 * 7 * Most input bindings include key code, matrix key code format. 8 * In most cases, key code and matrix key code format uses 9 * the standard values/macro defined in this header. 10 */ 11 12#ifndef _DT_BINDINGS_INPUT_INPUT_H 13#define _DT_BINDINGS_INPUT_INPUT_H 14 15#include "linux-event-codes.h" 16 17#define MATRIX_KEY(row, col, code) \ 18 ((((row) & 0xFF) << 24) | (((col) & 0xFF) << 16) | ((code) & 0xFFFF)) 19 20#endif /* _DT_BINDINGS_INPUT_INPUT_H */ 21