xref: /aosp_15_r20/external/coreboot/src/soc/nvidia/tegra/types.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef __TEGRA_MISC_TYPES_H__
4 #define __TEGRA_MISC_TYPES_H__
5 
6 #define EFAULT		1
7 #define EINVAL		2
8 #define ETIMEDOUT	3
9 #define ENOSPC		4
10 #define ENOSYS		5
11 #define EPTR		6
12 
13 #define IS_ERR_PTR(ptr) \
14 		(ptr == (void *)-EPTR)
15 
16 #endif /* __TEGRA_MISC_TYPES_H__ */
17