| 99 |
theseven |
1 |
//
|
|
|
2 |
//
|
|
|
3 |
// Copyright 2010 TheSeven
|
|
|
4 |
//
|
|
|
5 |
//
|
| 427 |
farthen |
6 |
// This file is part of emCORE.
|
| 99 |
theseven |
7 |
//
|
| 427 |
farthen |
8 |
// emCORE is free software: you can redistribute it and/or
|
| 99 |
theseven |
9 |
// modify it under the terms of the GNU General Public License as
|
|
|
10 |
// published by the Free Software Foundation, either version 2 of the
|
|
|
11 |
// License, or (at your option) any later version.
|
|
|
12 |
//
|
| 427 |
farthen |
13 |
// emCORE is distributed in the hope that it will be useful,
|
| 99 |
theseven |
14 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
15 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
16 |
// See the GNU General Public License for more details.
|
|
|
17 |
//
|
|
|
18 |
// You should have received a copy of the GNU General Public License along
|
| 427 |
farthen |
19 |
// with emCORE. If not, see <http://www.gnu.org/licenses/>.
|
| 99 |
theseven |
20 |
//
|
|
|
21 |
//
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
#ifndef __SYSCALLWRAPPERS_H__
|
|
|
25 |
#define __SYSCALLWRAPPERS_H__
|
|
|
26 |
|
|
|
27 |
|
| 111 |
theseven |
28 |
#define IN_APPLICATION_CODE
|
| 99 |
theseven |
29 |
#include "syscallapi.h"
|
|
|
30 |
|
|
|
31 |
|
| 427 |
farthen |
32 |
extern struct emcore_syscall_table* __emcore_syscall;
|
| 99 |
theseven |
33 |
|
|
|
34 |
|
| 427 |
farthen |
35 |
#define panic(args...) __emcore_syscall->panic(args)
|
|
|
36 |
#define panicf(args...) __emcore_syscall->panicf(args)
|
|
|
37 |
#define cprintf(args...) __emcore_syscall->cprintf(args)
|
|
|
38 |
#define cvprintf(args...) __emcore_syscall->cvprintf(args)
|
|
|
39 |
#define cputc(args...) __emcore_syscall->cputc(args)
|
|
|
40 |
#define cputs(args...) __emcore_syscall->cputs(args)
|
|
|
41 |
#define cwrite(args...) __emcore_syscall->cwrite(args)
|
|
|
42 |
#define cflush(args...) __emcore_syscall->cflush(args)
|
|
|
43 |
#define cgetc(args...) __emcore_syscall->cgetc(args)
|
|
|
44 |
#define cread(args...) __emcore_syscall->cread(args)
|
|
|
45 |
#define creada(args...) __emcore_syscall->creada(args)
|
|
|
46 |
#define opendir(args...) __emcore_syscall->opendir(args)
|
|
|
47 |
#define closedir(args...) __emcore_syscall->closedir(args)
|
|
|
48 |
#define readdir(args...) __emcore_syscall->readdir(args)
|
|
|
49 |
#define mkdir(args...) __emcore_syscall->mkdir(args)
|
|
|
50 |
#define rmdir(args...) __emcore_syscall->rmdir(args)
|
|
|
51 |
#define renderbmp(args...) __emcore_syscall->renderbmp(args)
|
|
|
52 |
#define renderchar(args...) __emcore_syscall->renderchar(args)
|
|
|
53 |
#define rendertext(args...) __emcore_syscall->rendertext(args)
|
|
|
54 |
#define renderfillrect(args...) __emcore_syscall->renderfillrect(args)
|
|
|
55 |
#define get_font_width(args...) __emcore_syscall->get_font_width(args)
|
|
|
56 |
#define get_font_height(args...) __emcore_syscall->get_font_height(args)
|
|
|
57 |
#define execimage(args...) __emcore_syscall->execimage(args)
|
|
|
58 |
#define ftruncate(args...) __emcore_syscall->ftruncate(args)
|
|
|
59 |
#define fsync(args...) __emcore_syscall->fsync(args)
|
|
|
60 |
#define close(args...) __emcore_syscall->close(args)
|
|
|
61 |
#define write(args...) __emcore_syscall->write(args)
|
|
|
62 |
#define read(args...) __emcore_syscall->read(args)
|
|
|
63 |
#define lseek(args...) __emcore_syscall->lseek(args)
|
|
|
64 |
#define remove(args...) __emcore_syscall->remove(args)
|
|
|
65 |
#define file_open(args...) __emcore_syscall->file_open(args)
|
|
|
66 |
#define rename(args...) __emcore_syscall->rename(args)
|
|
|
67 |
#define file_creat(args...) __emcore_syscall->file_creat(args)
|
|
|
68 |
#define filesize(args...) __emcore_syscall->filesize(args)
|
|
|
69 |
#define format(args...) __emcore_syscall->format(args)
|
|
|
70 |
#define vuprintf(args...) __emcore_syscall->vuprintf(args)
|
|
|
71 |
#define lcdconsole_putc_noblit(args...) __emcore_syscall->lcdconsole_putc_noblit(args)
|
|
|
72 |
#define lcdconsole_puts_noblit(args...) __emcore_syscall->lcdconsole_puts_noblit(args)
|
|
|
73 |
#define lcdconsole_write_noblit(args...) __emcore_syscall->lcdconsole_write_noblit(args)
|
|
|
74 |
#define lcdconsole_update(args...) __emcore_syscall->lcdconsole_update(args)
|
|
|
75 |
#define lcdconsole_putc(args...) __emcore_syscall->lcdconsole_putc(args)
|
|
|
76 |
#define lcdconsole_puts(args...) __emcore_syscall->lcdconsole_puts(args)
|
|
|
77 |
#define lcdconsole_write(args...) __emcore_syscall->lcdconsole_write(args)
|
|
|
78 |
#define lcdconsole_get_current_x(args...) __emcore_syscall->lcdconsole_get_current_x(args)
|
|
|
79 |
#define lcdconsole_get_current_y(args...) __emcore_syscall->lcdconsole_get_current_y(args)
|
|
|
80 |
#define lcdconsole_get_lineend_x(args...) __emcore_syscall->lcdconsole_get_lineend_x(args)
|
|
|
81 |
#define lcdconsole_get_lineend_y(args...) __emcore_syscall->lcdconsole_get_lineend_y(args)
|
|
|
82 |
#define lcdconsole_progressbar(args...) __emcore_syscall->lcdconsole_progressbar(args)
|
|
|
83 |
#define progressbar_init(args...) __emcore_syscall->progressbar_init(args)
|
|
|
84 |
#define progressbar_setpos(args...) __emcore_syscall->progressbar_setpos(args)
|
|
|
85 |
#define shutdown(args...) __emcore_syscall->shutdown(args)
|
|
|
86 |
#define storage_read_sectors_md(args...) __emcore_syscall->storage_read_sectors_md(args)
|
|
|
87 |
#define storage_write_sectors_md(args...) __emcore_syscall->storage_write_sectors_md(args)
|
|
|
88 |
#define storage_get_info(args...) __emcore_syscall->storage_get_info(args)
|
|
|
89 |
#define strcasecmp(args...) __emcore_syscall->strcasecmp(args)
|
|
|
90 |
#define strncasecmp(args...) __emcore_syscall->strncasecmp(args)
|
|
|
91 |
#define strcasestr(args...) __emcore_syscall->strcasestr(args)
|
|
|
92 |
#define strlcat(args...) __emcore_syscall->strlcat(args)
|
|
|
93 |
#define strlcpy(args...) __emcore_syscall->strlcpy(args)
|
|
|
94 |
#define mutex_init(args...) __emcore_syscall->mutex_init(args)
|
|
|
95 |
#define mutex_lock(args...) __emcore_syscall->mutex_lock(args)
|
|
|
96 |
#define mutex_unlock(args...) __emcore_syscall->mutex_unlock(args)
|
|
|
97 |
#define wakeup_init(args...) __emcore_syscall->wakeup_init(args)
|
|
|
98 |
#define wakeup_wait(args...) __emcore_syscall->wakeup_wait(args)
|
|
|
99 |
#define wakeup_signal(args...) __emcore_syscall->wakeup_signal(args)
|
|
|
100 |
#define sleep(args...) __emcore_syscall->sleep(args)
|
|
|
101 |
#define thread_create(args...) __emcore_syscall->thread_create(args)
|
|
|
102 |
#define thread_exit(args...) __emcore_syscall->thread_exit(args)
|
|
|
103 |
#define thread_suspend(args...) __emcore_syscall->thread_suspend(args)
|
|
|
104 |
#define thread_resume(args...) __emcore_syscall->thread_resume(args)
|
|
|
105 |
#define thread_terminate(args...) __emcore_syscall->thread_terminate(args)
|
|
|
106 |
#define __errno(args...) __emcore_syscall->__errno(args)
|
|
|
107 |
#define ucl_decompress(args...) __emcore_syscall->ucl_decompress(args)
|
|
|
108 |
#define bootflash_filesize(args...) __emcore_syscall->bootflash_filesize(args)
|
|
|
109 |
#define bootflash_attributes(args...) __emcore_syscall->bootflash_attributes(args)
|
|
|
110 |
#define bootflash_getaddr(args...) __emcore_syscall->bootflash_getaddr(args)
|
|
|
111 |
#define bootflash_read(args...) __emcore_syscall->bootflash_read(args)
|
|
|
112 |
#define bootflash_readraw(args...) __emcore_syscall->bootflash_readraw(args)
|
|
|
113 |
#define bootflash_writeraw(args...) __emcore_syscall->bootflash_writeraw(args)
|
|
|
114 |
#define bootflash_getrawaddr(args...) __emcore_syscall->bootflash_getrawaddr(args)
|
|
|
115 |
#define bootflash_is_memmapped(args...) __emcore_syscall->bootflash_is_memmapped(args)
|
|
|
116 |
#define read_native_timer(args...) __emcore_syscall->read_native_timer(args)
|
|
|
117 |
#define read_usec_timer(args...) __emcore_syscall->read_usec_timer(args)
|
|
|
118 |
#define i2c_send(args...) __emcore_syscall->i2c_send(args)
|
|
|
119 |
#define i2c_recv(args...) __emcore_syscall->i2c_recv(args)
|
|
|
120 |
#define i2c_sendbyte(args...) __emcore_syscall->i2c_sendbyte(args)
|
|
|
121 |
#define i2c_recvbyte(args...) __emcore_syscall->i2c_recvbyte(args)
|
|
|
122 |
#define interrupt_enable(args...) __emcore_syscall->interrupt_enable(args)
|
|
|
123 |
#define interrupt_set_handler(args...) __emcore_syscall->interrupt_set_handler(args)
|
|
|
124 |
#define int_timer_set_handler(args...) __emcore_syscall->int_timer_set_handler(args)
|
|
|
125 |
#define displaylcd(args...) __emcore_syscall->displaylcd(args)
|
|
|
126 |
#define displaylcd_sync(args...) __emcore_syscall->displaylcd_sync(args)
|
|
|
127 |
#define displaylcd_busy(args...) __emcore_syscall->displaylcd_busy(args)
|
|
|
128 |
#define displaylcd_safe(args...) __emcore_syscall->displaylcd_safe(args)
|
|
|
129 |
#define lcd_get_width(args...) __emcore_syscall->lcd_get_width(args)
|
|
|
130 |
#define lcd_get_height(args...) __emcore_syscall->lcd_get_height(args)
|
|
|
131 |
#define lcd_get_bytes_per_pixel(args...) __emcore_syscall->lcd_get_bytes_per_pixel(args)
|
|
|
132 |
#define lcd_translate_color(args...) __emcore_syscall->lcd_translate_color(args)
|
|
|
133 |
#define clean_dcache(args...) __emcore_syscall->clean_dcache(args)
|
|
|
134 |
#define invalidate_dcache(args...) __emcore_syscall->invalidate_dcache(args)
|
|
|
135 |
#define invalidate_icache(args...) __emcore_syscall->invalidate_icache(args)
|
|
|
136 |
#define power_off(args...) __emcore_syscall->power_off(args)
|
|
|
137 |
#define charging_state(args...) __emcore_syscall->charging_state(args)
|
|
|
138 |
#define atoi(args...) __emcore_syscall->atoi(args)
|
|
|
139 |
#define memchr(args...) __emcore_syscall->memchr(args)
|
|
|
140 |
#define memcmp(args...) __emcore_syscall->memcmp(args)
|
|
|
141 |
#define memcpy(args...) __emcore_syscall->memcpy(args)
|
|
|
142 |
#define memmove(args...) __emcore_syscall->memmove(args)
|
|
|
143 |
#define memset(args...) __emcore_syscall->memset(args)
|
|
|
144 |
#define qsort(args...) __emcore_syscall->qsort(args)
|
|
|
145 |
#define srand(args...) __emcore_syscall->srand(args)
|
|
|
146 |
#define rand(args...) __emcore_syscall->rand(args)
|
|
|
147 |
#define snprintf(args...) __emcore_syscall->snprintf(args)
|
|
|
148 |
#define vsnprintf(args...) __emcore_syscall->vsnprintf(args)
|
|
|
149 |
#define isspace(args...) __emcore_syscall->isspace(args)
|
|
|
150 |
#define isdigit(args...) __emcore_syscall->isdigit(args)
|
|
|
151 |
#define isxdigit(args...) __emcore_syscall->isxdigit(args)
|
|
|
152 |
#define sscanf(args...) __emcore_syscall->sscanf(args)
|
|
|
153 |
#define strcat(args...) __emcore_syscall->strcat(args)
|
|
|
154 |
#define strchr(args...) __emcore_syscall->strchr(args)
|
|
|
155 |
#define strcmp(args...) __emcore_syscall->strcmp(args)
|
|
|
156 |
#define strcpy(args...) __emcore_syscall->strcpy(args)
|
|
|
157 |
#define strlen(args...) __emcore_syscall->strlen(args)
|
|
|
158 |
#define strncmp(args...) __emcore_syscall->strncmp(args)
|
|
|
159 |
#define strrchr(args...) __emcore_syscall->strrchr(args)
|
|
|
160 |
#define strstr(args...) __emcore_syscall->strstr(args)
|
|
|
161 |
#define strtok_r(args...) __emcore_syscall->strtok_r(args)
|
|
|
162 |
#define backlight_on(args...) __emcore_syscall->backlight_on(args)
|
|
|
163 |
#define backlight_set_fade(args...) __emcore_syscall->backlight_set_fade(args)
|
|
|
164 |
#define backlight_set_brightness(args...) __emcore_syscall->backlight_set_brightness(args)
|
|
|
165 |
#define get_platform_id(args...) __emcore_syscall->get_platform_id(args)
|
|
|
166 |
#define tlsf_create(args...) __emcore_syscall->tlsf_create(args)
|
|
|
167 |
#define tlsf_destroy(args...) __emcore_syscall->tlsf_destroy(args)
|
|
|
168 |
#define tlsf_malloc(args...) __emcore_syscall->tlsf_malloc(args)
|
|
|
169 |
#define tlsf_memalign(args...) __emcore_syscall->tlsf_memalign(args)
|
|
|
170 |
#define tlsf_realloc(args...) __emcore_syscall->tlsf_realloc(args)
|
|
|
171 |
#define tlsf_free(args...) __emcore_syscall->tlsf_free(args)
|
|
|
172 |
#define tlsf_walk_heap(args...) __emcore_syscall->tlsf_walk_heap(args)
|
|
|
173 |
#define tlsf_check_heap(args...) __emcore_syscall->tlsf_check_heap(args)
|
|
|
174 |
#define tlsf_block_size(args...) __emcore_syscall->tlsf_block_size(args)
|
|
|
175 |
#define tlsf_overhead(args...) __emcore_syscall->tlsf_overhead(args)
|
|
|
176 |
#define execfirmware(args...) __emcore_syscall->execfirmware(args)
|
|
|
177 |
#define button_register_handler(args...) __emcore_syscall->button_register_handler(args)
|
|
|
178 |
#define button_unregister_handler(args...) __emcore_syscall->button_unregister_handler(args)
|
|
|
179 |
#define clickwheel_get_state(args...) __emcore_syscall->clickwheel_get_state(args)
|
|
|
180 |
#define clockgate_enable(args...) __emcore_syscall->clockgate_enable(args)
|
|
|
181 |
#define context_switch(args...) __emcore_syscall->context_switch(args)
|
|
|
182 |
#define disk_mount(args...) __emcore_syscall->disk_mount(args)
|
|
|
183 |
#define disk_unmount(args...) __emcore_syscall->disk_unmount(args)
|
|
|
184 |
#define hwkeyaes(args...) __emcore_syscall->hwkeyaes(args)
|
|
|
185 |
#define hmacsha1(args...) __emcore_syscall->hmacsha1(args)
|
|
|
186 |
#define reset(args...) __emcore_syscall->reset(args)
|
|
|
187 |
#define int_dma_set_handler(args...) __emcore_syscall->int_dma_set_handler(args)
|
| 99 |
theseven |
188 |
|
|
|
189 |
|
|
|
190 |
#endif
|