46 lines
1.2 KiB
C
46 lines
1.2 KiB
C
/***************************************************************
|
|
SPDX-License-Identifier: GPL-2.0-only
|
|
* Copyright (C) 2018-2020 Oplus. All rights reserved.
|
|
** File : kernel_fb.h
|
|
** Description : BSP kevent fb data
|
|
** Version : 1.0
|
|
******************************************************************/
|
|
|
|
#ifndef __KERNEL_FEEDBACK_H
|
|
#define __KERNEL_FEEDBACK_H
|
|
|
|
typedef enum {
|
|
FB_STABILITY = 0,
|
|
FB_FS,
|
|
FB_STORAGE,
|
|
FB_SENSOR,
|
|
FB_BOOT,
|
|
FB_CAMERA,
|
|
FB_TRI_STATE_KEY,
|
|
PSW_BSP_KEYPAD,
|
|
FB_MAX_TYPE = PSW_BSP_KEYPAD,
|
|
} fb_tag;
|
|
|
|
#define FB_STABILITY_ID_CRASH "202007272030"
|
|
|
|
|
|
#define FB_SENSOR_ID_CRASH "10004"
|
|
#define FB_SENSOR_ID_QMI "202007272041"
|
|
|
|
struct kernel_packet_info
|
|
{
|
|
int type; /* 0:root,1:only string,other number represent other type */
|
|
char log_tag[32]; /* logTag */
|
|
char event_id[20]; /*eventID */
|
|
size_t payload_length; /* Length of packet data */
|
|
unsigned char payload[]; /* Optional packet data */
|
|
}__attribute__((packed));
|
|
|
|
int fb_kevent_send_to_user(struct kernel_packet_info *userinfo);
|
|
/*int kevent_send_to_user(struct kernel_packet_info *userinfo);*/
|
|
int oplus_kevent_fb(fb_tag tag_id, const char *event_id,
|
|
unsigned char *payload);
|
|
int oplus_kevent_fb_str(fb_tag tag_id, const char *event_id,
|
|
unsigned char *str);
|
|
#endif
|