rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | /* |
| 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 | |
| 19 | int ondiemet_log_manager_init(struct device *dev); |
| 20 | int ondiemet_log_manager_uninit(struct device *dev); |
| 21 | int ondiemet_log_manager_start(void); |
| 22 | /* Log manager can be reactivated by inserting new requests, i.e., calling ondiemet_log_req_enq() */ |
| 23 | int ondiemet_log_manager_stop(void); |
| 24 | int 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_ */ |