Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
56 lines
1.4 KiB
C
56 lines
1.4 KiB
C
/*
|
|
* Copyright (C) 2015 MediaTek Inc.
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#ifndef __CONN_MD_DUMP_H_
|
|
#define __CONN_MD_DUMP_H_
|
|
|
|
#include "conn_md_log.h"
|
|
#include "conn_md_exp.h"
|
|
|
|
#define LENGTH_PER_PACKAGE 8
|
|
#define NUMBER_OF_MSG_LOGGED 16
|
|
|
|
enum conn_md_msg_type {
|
|
MSG_ENQUEUE = 1,
|
|
MSG_DEQUEUE = 2,
|
|
MSG_EN_DE_QUEUE = 3,
|
|
};
|
|
|
|
struct conn_md_dmp_msg_str {
|
|
unsigned int sec;
|
|
unsigned int usec;
|
|
enum conn_md_msg_type type;
|
|
struct ipc_ilm ilm;
|
|
uint16 msg_len;
|
|
uint8 data[LENGTH_PER_PACKAGE];
|
|
};
|
|
|
|
struct conn_md_dmp_msg_log {
|
|
struct conn_md_dmp_msg_str msg[NUMBER_OF_MSG_LOGGED];
|
|
uint16 in;
|
|
uint16 out;
|
|
uint32 size;
|
|
struct mutex lock;
|
|
};
|
|
|
|
extern struct conn_md_dmp_msg_log *conn_md_dmp_init(void);
|
|
extern int conn_md_dmp_deinit(struct conn_md_dmp_msg_log *p_log);
|
|
|
|
extern int conn_md_dmp_in(struct ipc_ilm *p_ilm,
|
|
enum conn_md_msg_type msg_type,
|
|
struct conn_md_dmp_msg_log *p_msg_log);
|
|
extern int conn_md_dmp_out(struct conn_md_dmp_msg_log *p_msg_log,
|
|
uint32 src_id, uint32 dst_id);
|
|
|
|
#endif
|