| 1 |
/* |
| 2 |
* Copyright (c) 2015-2017, Renesas Electronics Corporation. All rights reserved. |
| 3 |
* |
| 4 |
* SPDX-License-Identifier: BSD-3-Clause |
| 5 |
*/ |
| 6 |
|
| 7 |
#ifndef IO_PRIVATE_H |
| 8 |
#define IO_PRIVATE_H |
| 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 |
|
| 20 |
#endif /* IO_PRIVATE_H */ |