1#ifndef X86_MATANEL_GRAPHICAL_H
2#define X86_MATANEL_GRAPHICAL_H
30#define COLOR_RED 0xFFFF0000
31#define COLOR_GREEN 0xFF00FF00
32#define COLOR_BLUE 0xFF0000FF
33#define COLOR_WHITE 0xFFFFFFFF
34#define COLOR_BLACK 0xFF000000
35#define COLOR_YELLOW 0xFFFFFF00
36#define COLOR_CYAN 0xFF00FFFF
37#define COLOR_MAGENTA 0xFFFF00FF
38#define COLOR_GRAY 0xFF808080
39#define COLOR_DARK_GRAY 0xFF404040
40#define COLOR_LIGHT_GRAY 0xFFD3D3D3
41#define COLOR_ORANGE 0xFFFFA500
42#define COLOR_BROWN 0xFFA52A2A
43#define COLOR_PURPLE 0xFF800080
44#define COLOR_PINK 0xFFFFC0CB
45#define COLOR_LIME 0xFF32CD32
46#define COLOR_NAVY 0xFF000080
47#define COLOR_TEAL 0xFF008080
48#define COLOR_OLIVE 0xFF808000
56static inline void __gop_mark_used(
void* dummy, ...) {
61#define gop_printf(color, fmt, ...) \
65 __gop_mark_used(NULL, ##__VA_ARGS__); \
77int kstrcmp(const
char* s1, const
char* s2);
78int kstrncmp(const
char* s1, const
char* s2,
size_t length);
80char*
kstrcpy(
char* dst, const
char* src);
82char*
kstrncpy(
char* dst, const
char* src,
size_t n);
83char*
kstrtok_r(
char* str, const
char* delim,
char** save_ptr);
84char*
kstrncat(
char* dest, const
char* src,
size_t max_len);
88kmemchr(const
void* buf,
int c,
size_t n)
90 const unsigned char* p = (
const unsigned char*)buf;
91 unsigned char uc = (
unsigned char)c;
93 for (
size_t i = 0; i < n; ++i) {
95 return (
void*)(p + i);
struct _GOP_PARAMS GOP_PARAMS
char * kstrncat(char *dest, const char *src, size_t max_len)
Concatenates src onto dest, up to max_len total bytes in dest.
size_t kstrlen(const char *str)
void gop_printf(uint32_t color, const char *fmt,...)
char * kstrtok_r(char *str, const char *delim, char **save_ptr)
char * kstrcpy(char *dst, const char *src)
char * kstrncpy(char *dst, const char *src, size_t n)
int kstrncmp(const char *s1, const char *s2, size_t length)
int kstrcmp(const char *s1, const char *s2)
void MgAcquireExclusiveGopOwnerShip(void)
int ksnprintf(char *buf, size_t bufsize, const char *fmt,...) __attribute__((format(printf
void MgReleaseExclusiveGopOwnerShip(void)
void const char void gop_clear_screen(GOP_PARAMS *gop, uint32_t color)