rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | /* |
| 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 | |
| 27 | int mrdump_detection(void) __attribute__((weak)); |
| 28 | int mrdump_detection(void) |
| 29 | { |
| 30 | return 0; |
| 31 | } |
| 32 | |
| 33 | void mrdump_setup_cblock(void) __attribute__((weak)); |
| 34 | void mrdump_setup_cblock(void) |
| 35 | { |
| 36 | } |
| 37 | |
| 38 | void mrdump_reserve_memory(void) __attribute__((weak)); |
| 39 | void mrdump_reserve_memory(void) |
| 40 | { |
| 41 | } |
| 42 | |
| 43 | int mrdump_run2(void) __attribute__((weak)); |
| 44 | int mrdump_run2(void) |
| 45 | { |
| 46 | return 0; |
| 47 | } |
| 48 | |
| 49 | int kdump_usb_output(const struct mrdump_control_block *mrdump_cb, |
| 50 | const struct kzip_addlist *memlist) __attribute__((weak)); |
| 51 | int kdump_usb_output(const struct mrdump_control_block *mrdump_cb, |
| 52 | const struct kzip_addlist *memlist) |
| 53 | { |
| 54 | return 0; |
| 55 | } |
| 56 | |
| 57 | int kedump_restore_mem(void) __attribute__((weak)); |
| 58 | int kedump_restore_mem(void) |
| 59 | { |
| 60 | return 0; |
| 61 | } |
| 62 | |
| 63 | void mrdump_reboot(void) __attribute__((weak)); |
| 64 | void mrdump_reboot(void) |
| 65 | { |
| 66 | } |
| 67 | |
| 68 | void mrdump_setup_version(void) __attribute__((weak)); |
| 69 | void mrdump_setup_version(void) |
| 70 | { |
| 71 | } |
| 72 | |
| 73 | void mrdump_setup_boot_reason(void) __attribute__((weak)); |
| 74 | void mrdump_setup_boot_reason(void) |
| 75 | { |
| 76 | } |