1 /* 2 * Copyright (c) 2020-2021 Huawei Device Co., Ltd. 3 * 4 * HDF is dual licensed: you can use it either under the terms of 5 * the GPL, or the BSD license, at your option. 6 * See the LICENSE file in the root of this repository for complete details. 7 */ 8 #ifndef HDF_KEY_H 9 #define HDF_KEY_H 10 11 #include <securec.h> 12 #include "osal_time.h" 13 #include "input_config.h" 14 15 typedef struct { 16 uint32_t definedEvent; 17 } KeyEventData; 18 19 typedef struct KeyDriverInfo { 20 struct HdfDeviceObject *hdfKeyDev; 21 KeyEventData eventData; 22 uint8_t devType; 23 KeyChipCfg *keyCfg; 24 InputDevice *inputdev; 25 uint16_t preStatus; 26 uint64_t timeStamp; 27 } KeyDriver; 28 29 enum KeyStatusInfo { 30 INPUT_KEY_UP, 31 INPUT_KEY_DOWN, 32 INPUT_KEY_INVALID 33 }; 34 #endif