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
//
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
 
453 theseven 35
#define panic __emcore_syscall->panic
36
#define panicf __emcore_syscall->panicf
37
#define cprintf __emcore_syscall->cprintf
38
#define cvprintf __emcore_syscall->cvprintf
39
#define cputc __emcore_syscall->cputc
40
#define cputs __emcore_syscall->cputs
41
#define cwrite __emcore_syscall->cwrite
42
#define cflush __emcore_syscall->cflush
43
#define cgetc __emcore_syscall->cgetc
44
#define cread __emcore_syscall->cread
45
#define creada __emcore_syscall->creada
46
#define opendir __emcore_syscall->opendir
47
#define closedir __emcore_syscall->closedir
48
#define readdir __emcore_syscall->readdir
49
#define mkdir __emcore_syscall->mkdir
50
#define rmdir __emcore_syscall->rmdir
51
#define renderbmp __emcore_syscall->renderbmp
52
#define renderchar __emcore_syscall->renderchar
53
#define rendertext __emcore_syscall->rendertext
54
#define renderfillrect __emcore_syscall->renderfillrect
55
#define get_font_width __emcore_syscall->get_font_width
56
#define get_font_height __emcore_syscall->get_font_height
57
#define execimage __emcore_syscall->execimage
58
#define ftruncate __emcore_syscall->ftruncate
59
#define fsync __emcore_syscall->fsync
60
#define close __emcore_syscall->close
61
#define write __emcore_syscall->write
62
#define read __emcore_syscall->read
63
#define lseek __emcore_syscall->lseek
64
#define remove __emcore_syscall->remove
65
#define file_open __emcore_syscall->file_open
66
#define rename __emcore_syscall->rename
67
#define file_creat __emcore_syscall->file_creat
68
#define filesize __emcore_syscall->filesize
69
#define format __emcore_syscall->format
70
#define vuprintf __emcore_syscall->vuprintf
71
#define lcdconsole_putc_noblit __emcore_syscall->lcdconsole_putc_noblit
72
#define lcdconsole_puts_noblit __emcore_syscall->lcdconsole_puts_noblit
73
#define lcdconsole_write_noblit __emcore_syscall->lcdconsole_write_noblit
74
#define lcdconsole_update __emcore_syscall->lcdconsole_update
75
#define lcdconsole_putc __emcore_syscall->lcdconsole_putc
76
#define lcdconsole_puts __emcore_syscall->lcdconsole_puts
77
#define lcdconsole_write __emcore_syscall->lcdconsole_write
78
#define lcdconsole_get_current_x __emcore_syscall->lcdconsole_get_current_x
79
#define lcdconsole_get_current_y __emcore_syscall->lcdconsole_get_current_y
80
#define lcdconsole_get_lineend_x __emcore_syscall->lcdconsole_get_lineend_x
81
#define lcdconsole_get_lineend_y __emcore_syscall->lcdconsole_get_lineend_y
82
#define lcdconsole_progressbar __emcore_syscall->lcdconsole_progressbar
83
#define progressbar_init __emcore_syscall->progressbar_init
84
#define progressbar_setpos __emcore_syscall->progressbar_setpos
85
#define shutdown __emcore_syscall->shutdown
86
#define storage_read_sectors_md __emcore_syscall->storage_read_sectors_md
87
#define storage_write_sectors_md __emcore_syscall->storage_write_sectors_md
88
#define storage_get_info __emcore_syscall->storage_get_info
89
#define strcasecmp __emcore_syscall->strcasecmp
90
#define strncasecmp __emcore_syscall->strncasecmp
91
#define strcasestr __emcore_syscall->strcasestr
92
#define strlcat __emcore_syscall->strlcat
93
#define strlcpy __emcore_syscall->strlcpy
94
#define mutex_init __emcore_syscall->mutex_init
95
#define mutex_lock __emcore_syscall->mutex_lock
96
#define mutex_unlock __emcore_syscall->mutex_unlock
97
#define wakeup_init __emcore_syscall->wakeup_init
98
#define wakeup_wait __emcore_syscall->wakeup_wait
99
#define wakeup_signal __emcore_syscall->wakeup_signal
100
#define sleep __emcore_syscall->sleep
101
#define thread_create __emcore_syscall->thread_create
102
#define thread_exit __emcore_syscall->thread_exit
103
#define thread_suspend __emcore_syscall->thread_suspend
104
#define thread_resume __emcore_syscall->thread_resume
105
#define thread_terminate __emcore_syscall->thread_terminate
106
#define __errno __emcore_syscall->__errno
107
#define ucl_decompress __emcore_syscall->ucl_decompress
108
#define bootflash_filesize __emcore_syscall->bootflash_filesize
109
#define bootflash_attributes __emcore_syscall->bootflash_attributes
110
#define bootflash_getaddr __emcore_syscall->bootflash_getaddr
111
#define bootflash_read __emcore_syscall->bootflash_read
112
#define bootflash_readraw __emcore_syscall->bootflash_readraw
113
#define bootflash_writeraw __emcore_syscall->bootflash_writeraw
114
#define bootflash_getrawaddr __emcore_syscall->bootflash_getrawaddr
115
#define bootflash_is_memmapped __emcore_syscall->bootflash_is_memmapped
116
#define read_native_timer __emcore_syscall->read_native_timer
117
#define read_usec_timer __emcore_syscall->read_usec_timer
118
#define i2c_send __emcore_syscall->i2c_send
119
#define i2c_recv __emcore_syscall->i2c_recv
120
#define i2c_sendbyte __emcore_syscall->i2c_sendbyte
121
#define i2c_recvbyte __emcore_syscall->i2c_recvbyte
122
#define interrupt_enable __emcore_syscall->interrupt_enable
123
#define interrupt_set_handler __emcore_syscall->interrupt_set_handler
124
#define int_timer_set_handler __emcore_syscall->int_timer_set_handler
125
#define displaylcd __emcore_syscall->displaylcd
126
#define displaylcd_sync __emcore_syscall->displaylcd_sync
127
#define displaylcd_busy __emcore_syscall->displaylcd_busy
128
#define displaylcd_safe __emcore_syscall->displaylcd_safe
129
#define lcd_get_width __emcore_syscall->lcd_get_width
130
#define lcd_get_height __emcore_syscall->lcd_get_height
131
#define lcd_get_bytes_per_pixel __emcore_syscall->lcd_get_bytes_per_pixel
132
#define lcd_translate_color __emcore_syscall->lcd_translate_color
133
#define clean_dcache __emcore_syscall->clean_dcache
134
#define invalidate_dcache __emcore_syscall->invalidate_dcache
135
#define invalidate_icache __emcore_syscall->invalidate_icache
136
#define power_off __emcore_syscall->power_off
137
#define charging_state __emcore_syscall->charging_state
138
#define atoi __emcore_syscall->atoi
139
#define memchr __emcore_syscall->memchr
140
#define memcmp __emcore_syscall->memcmp
141
#define memcpy __emcore_syscall->memcpy
142
#define memmove __emcore_syscall->memmove
143
#define memset __emcore_syscall->memset
144
#define qsort __emcore_syscall->qsort
145
#define srand __emcore_syscall->srand
146
#define rand __emcore_syscall->rand
147
#define snprintf __emcore_syscall->snprintf
148
#define vsnprintf __emcore_syscall->vsnprintf
149
#define isspace __emcore_syscall->isspace
150
#define isdigit __emcore_syscall->isdigit
151
#define isxdigit __emcore_syscall->isxdigit
152
#define sscanf __emcore_syscall->sscanf
153
#define strcat __emcore_syscall->strcat
154
#define strchr __emcore_syscall->strchr
155
#define strcmp __emcore_syscall->strcmp
156
#define strcpy __emcore_syscall->strcpy
157
#define strlen __emcore_syscall->strlen
158
#define strncmp __emcore_syscall->strncmp
159
#define strrchr __emcore_syscall->strrchr
160
#define strstr __emcore_syscall->strstr
161
#define strtok_r __emcore_syscall->strtok_r
162
#define backlight_on __emcore_syscall->backlight_on
163
#define backlight_set_fade __emcore_syscall->backlight_set_fade
164
#define backlight_set_brightness __emcore_syscall->backlight_set_brightness
165
#define get_platform_id __emcore_syscall->get_platform_id
166
#define tlsf_create __emcore_syscall->tlsf_create
167
#define tlsf_destroy __emcore_syscall->tlsf_destroy
168
#define tlsf_malloc __emcore_syscall->tlsf_malloc
169
#define tlsf_memalign __emcore_syscall->tlsf_memalign
170
#define tlsf_realloc __emcore_syscall->tlsf_realloc
171
#define tlsf_free __emcore_syscall->tlsf_free
172
#define tlsf_walk_heap __emcore_syscall->tlsf_walk_heap
173
#define tlsf_check_heap __emcore_syscall->tlsf_check_heap
174
#define tlsf_block_size __emcore_syscall->tlsf_block_size
175
#define tlsf_overhead __emcore_syscall->tlsf_overhead
176
#define execfirmware __emcore_syscall->execfirmware
177
#define button_register_handler __emcore_syscall->button_register_handler
178
#define button_unregister_handler __emcore_syscall->button_unregister_handler
179
#define clickwheel_get_state __emcore_syscall->clickwheel_get_state
180
#define clockgate_enable __emcore_syscall->clockgate_enable
181
#define context_switch __emcore_syscall->context_switch
182
#define disk_mount __emcore_syscall->disk_mount
183
#define disk_unmount __emcore_syscall->disk_unmount
184
#define hwkeyaes __emcore_syscall->hwkeyaes
185
#define hmacsha1 __emcore_syscall->hmacsha1
186
#define reset __emcore_syscall->reset
187
#define int_dma_set_handler __emcore_syscall->int_dma_set_handler
188
#define thread_set_name __emcore_syscall->thread_set_name
189
#define thread_set_priority __emcore_syscall->thread_set_priority
466 theseven 190
#define malloc __emcore_syscall->malloc
489 theseven 191
#define memalign __emcore_syscall->memalign
466 theseven 192
#define realloc __emcore_syscall->realloc
193
#define reownalloc __emcore_syscall->reownalloc
194
#define free __emcore_syscall->free
195
#define library_unload __emcore_syscall->library_unload
196
#define get_library __emcore_syscall->get_library
197
#define get_library_ext __emcore_syscall->get_library_ext
198
#define release_library __emcore_syscall->release_library
199
#define release_library_ext __emcore_syscall->release_library_ext
479 theseven 200
#define fat_enable_flushing __emcore_syscall->fat_enable_flushing
489 theseven 201
#define lcd_get_format __emcore_syscall->lcd_get_format
491 theseven 202
#define crc32 __emcore_syscall->crc32
99 theseven 203
 
204
 
205
#endif