Files
chandu078 75e6b451c5 oplus: Import minimal set of drivers from CPH2723_15.0.2.501(EX01)
Change-Id: I1497a9311bcebdcb9330116d249be44c54df7f60
2025-09-20 16:35:45 +01:00

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