Eugeniu Rosca | e74670a | 2020-10-23 11:52:22 +0300 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright (C) 2020 Eugeniu Rosca <rosca.eugeniu@gmail.com> |
| 4 | * |
| 5 | * Android Bootloader Control Block Header |
| 6 | */ |
| 7 | |
| 8 | #ifndef __BCB_H__ |
| 9 | #define __BCB_H__ |
| 10 | |
| 11 | #if CONFIG_IS_ENABLED(CMD_BCB) |
Eugeniu Rosca | bafdf4c | 2020-10-23 11:52:23 +0300 | [diff] [blame] | 12 | int bcb_write_reboot_reason(int devnum, char *partp, const char *reasonp); |
Eugeniu Rosca | e74670a | 2020-10-23 11:52:22 +0300 | [diff] [blame] | 13 | #else |
| 14 | #include <linux/errno.h> |
Eugeniu Rosca | bafdf4c | 2020-10-23 11:52:23 +0300 | [diff] [blame] | 15 | static inline int bcb_write_reboot_reason(int devnum, char *partp, const char *reasonp) |
Eugeniu Rosca | e74670a | 2020-10-23 11:52:22 +0300 | [diff] [blame] | 16 | { |
| 17 | return -EOPNOTSUPP; |
| 18 | } |
| 19 | #endif |
| 20 | |
| 21 | #endif /* __BCB_H__ */ |