Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #ifndef BOOT_STRING_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define BOOT_STRING_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) /* Undef any of these macros coming from string_32.h. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) #undef memcpy
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) #undef memset
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #undef memcmp
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) void *memcpy(void *dst, const void *src, size_t len);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) void *memset(void *dst, int c, size_t len);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) int memcmp(const void *s1, const void *s2, size_t len);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) /* Access builtin version by default. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #define memcpy(d,s,l) __builtin_memcpy(d,s,l)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #define memset(d,c,l) __builtin_memset(d,c,l)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #define memcmp	__builtin_memcmp
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) extern int strcmp(const char *str1, const char *str2);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) extern int strncmp(const char *cs, const char *ct, size_t count);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) extern size_t strlen(const char *s);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) extern char *strstr(const char *s1, const char *s2);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) extern char *strchr(const char *s, int c);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) extern size_t strnlen(const char *s, size_t maxlen);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) extern unsigned int atou(const char *s);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) extern unsigned long long simple_strtoull(const char *cp, char **endp,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 					  unsigned int base);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) int kstrtoull(const char *s, unsigned int base, unsigned long long *res);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) int boot_kstrtoul(const char *s, unsigned int base, unsigned long *res);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #endif /* BOOT_STRING_H */