blob: 5edb17aa47d33511068cec19a1f54ece623dd0e9 [file] [log] [blame]
Eugeniu Roscae74670a2020-10-23 11:52:22 +03001// 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
Simon Glass71e3e212023-02-05 15:36:21 -070011#if IS_ENABLED(CONFIG_CMD_BCB)
Eugeniu Roscabafdf4c2020-10-23 11:52:23 +030012int bcb_write_reboot_reason(int devnum, char *partp, const char *reasonp);
Eugeniu Roscae74670a2020-10-23 11:52:22 +030013#else
14#include <linux/errno.h>
Eugeniu Roscabafdf4c2020-10-23 11:52:23 +030015static inline int bcb_write_reboot_reason(int devnum, char *partp, const char *reasonp)
Eugeniu Roscae74670a2020-10-23 11:52:22 +030016{
17 return -EOPNOTSUPP;
18}
19#endif
20
21#endif /* __BCB_H__ */