blob: 0d8be50af90148ea1eaf9a4ee984c082a0edd1f2 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001/*
2 * Copyright (c) 2018 MediaTek Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining
5 * a copy of this software and associated documentation files
6 * (the "Software"), to deal in the Software without restriction,
7 * including without limitation the rights to use, copy, modify, merge,
8 * publish, distribute, sublicense, and/or sell copies of the Software,
9 * and to permit persons to whom the Software is furnished to do so,
10 * subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be
13 * included in all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */
23
24#include <mrdump.h>
25#include "kdump.h"
26
27int mrdump_detection(void) __attribute__((weak));
28int mrdump_detection(void)
29{
30 return 0;
31}
32
33void mrdump_setup_cblock(void) __attribute__((weak));
34void mrdump_setup_cblock(void)
35{
36}
37
38void mrdump_reserve_memory(void) __attribute__((weak));
39void mrdump_reserve_memory(void)
40{
41}
42
43int mrdump_run2(void) __attribute__((weak));
44int mrdump_run2(void)
45{
46 return 0;
47}
48
49int kdump_usb_output(const struct mrdump_control_block *mrdump_cb,
50 const struct kzip_addlist *memlist) __attribute__((weak));
51int kdump_usb_output(const struct mrdump_control_block *mrdump_cb,
52 const struct kzip_addlist *memlist)
53{
54 return 0;
55}
56
57int kedump_restore_mem(void) __attribute__((weak));
58int kedump_restore_mem(void)
59{
60 return 0;
61}
62
63void mrdump_reboot(void) __attribute__((weak));
64void mrdump_reboot(void)
65{
66}
67
68void mrdump_setup_version(void) __attribute__((weak));
69void mrdump_setup_version(void)
70{
71}
72
73void mrdump_setup_boot_reason(void) __attribute__((weak));
74void mrdump_setup_boot_reason(void)
75{
76}