mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 15:31:22 +01:00

One of the shortcomings of clang-format is that it doesn't allow for aligned define tables, which is used for a number of constants. Add annotation to disable the automatic formatting where needed. Signed-off-by: Olof Johansson <olof@lixom.net>
31 lines
541 B
C
31 lines
541 B
C
/*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*
|
|
* Copyright (c) 2019 Western Digital Corporation or its affiliates.
|
|
*
|
|
* Authors:
|
|
* Anup Patel <anup.patel@wdc.com>
|
|
*/
|
|
|
|
#ifndef __SBI_ERROR_H__
|
|
#define __SBI_ERROR_H__
|
|
|
|
/* clang-format off */
|
|
|
|
#define SBI_OK 0
|
|
#define SBI_EUNKNOWN -1
|
|
#define SBI_EFAIL -2
|
|
#define SBI_EINVAL -3
|
|
#define SBI_ENOENT -4
|
|
#define SBI_ENOTSUPP -5
|
|
#define SBI_ENODEV -6
|
|
#define SBI_ENOSYS -7
|
|
#define SBI_ETIMEDOUT -8
|
|
#define SBI_EIO -9
|
|
#define SBI_EILL -10
|
|
#define SBI_ENOSPC -11
|
|
|
|
/* clang-format on */
|
|
|
|
#endif
|