Subversion Repositories freemyipod

Rev

Details | Last modification | View Log | RSS feed

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