Jorge Ramirez-Ortiz | eaa63b4 | 2018-09-23 09:40:45 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2015-2017, Renesas Electronics Corporation. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 7 | #ifndef IO_PRIVATE_H |
| 8 | #define IO_PRIVATE_H |
Jorge Ramirez-Ortiz | eaa63b4 | 2018-09-23 09:40:45 +0200 | [diff] [blame] | 9 | |
| 10 | /* |
| 11 | * Return codes reported by 'io_*' APIs |
| 12 | * The value of fail should not overlap with define of the errno. |
| 13 | * The errno is in "include/lib/stdlib/sys/errno.h". |
| 14 | */ |
| 15 | #define IO_SUCCESS (0) |
| 16 | #define IO_FAIL (-0x81) |
| 17 | #define IO_NOT_SUPPORTED (-0x82) |
| 18 | #define IO_RESOURCES_EXHAUSTED (-0x83) |
| 19 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 20 | #endif /* IO_PRIVATE_H */ |