blob: a9ccc4070d79b44fc6e564eb86ad3b3157b7f37b [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001/*
2 * Copyright (C) 2019 MediaTek Inc.
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
14#ifndef _ONDIEMET_LOG_H_
15#define _ONDIEMET_LOG_H_
16
17#include <linux/device.h>
18
19int ondiemet_log_manager_init(struct device *dev);
20int ondiemet_log_manager_uninit(struct device *dev);
21int ondiemet_log_manager_start(void);
22/* Log manager can be reactivated by inserting new requests, i.e., calling ondiemet_log_req_enq() */
23int ondiemet_log_manager_stop(void);
24int ondiemet_log_req_enq(const char *src, size_t num, void (*on_fini_cb) (const void *p),
25 const void *param);
26
27#endif /* _ONDIEMET_LOG_H_ */