Subversion Repositories freemyipod

Rev

Rev 489 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 489 Rev 491
Line 23... Line 23...
23
 
23
 
24
#ifndef __SYSCALLAPI_H__
24
#ifndef __SYSCALLAPI_H__
25
#define __SYSCALLAPI_H__
25
#define __SYSCALLAPI_H__
26
 
26
 
27
 
27
 
28
#include "../libc/include/assert.h"
-
 
29
 
-
 
30
#include "../global.h"
28
#include "../global.h"
31
#include "../panic.h"
29
#include "../panic.h"
32
#include "../console.h"
30
#include "../console.h"
33
#include "../disk.h"
31
#include "../disk.h"
34
#include "../dir.h"
32
#include "../dir.h"
Line 58... Line 56...
58
#include "../contextswitch.h"
56
#include "../contextswitch.h"
59
#include "../hwkeyaes.h"
57
#include "../hwkeyaes.h"
60
#include "../hmacsha1.h"
58
#include "../hmacsha1.h"
61
#include "../malloc.h"
59
#include "../malloc.h"
62
#include "../library.h"
60
#include "../library.h"
-
 
61
#include "../crc32.h"
-
 
62
#include "../libc/include/assert.h"
63
#include "../libc/include/string.h"
63
#include "../libc/include/string.h"
64
#include "../libc/include/stdlib.h"
64
#include "../libc/include/stdlib.h"
65
#include "../libc/include/stdio.h"
65
#include "../libc/include/stdio.h"
66
#include "../libc/tlsf/tlsf.h"
66
#include "../libc/tlsf/tlsf.h"
67
 
67
 
-
 
68
#ifdef ARM_ARCH
-
 
69
#include "../arm/arm-support.h"
-
 
70
#endif
-
 
71
 
68
/* increase this every time the api struct changes */
72
/* increase this every time the api struct changes */
69
#define EMCORE_API_VERSION 1
73
#define EMCORE_API_VERSION 1
70
 
74
 
71
/* update this to latest version if a change to the api struct breaks
75
/* update this to latest version if a change to the api struct breaks
72
   backwards compatibility (and please take the opportunity to sort in any
76
   backwards compatibility (and please take the opportunity to sort in any
Line 80... Line 84...
80
 
84
 
81
struct emcore_syscall_table
85
struct emcore_syscall_table
82
{
86
{
83
    uint32_t table_version;
87
    uint32_t table_version;
84
    uint32_t table_minversion;
88
    uint32_t table_minversion;
-
 
89
#ifdef ARM_ARCH
-
 
90
    /* DON'T MOVE THESE! If you absolutely need to, adjust export/armhelpers.c */
-
 
91
	typeof(__clzsi2) *__clzsi2;
-
 
92
	typeof(__aeabi_idivmod) *__aeabi_idivmod;
-
 
93
	typeof(__aeabi_uidivmod) *__aeabi_uidivmod;
-
 
94
#endif
85
    typeof(panic) *panic;
95
    typeof(panic) *panic;
86
    typeof(panicf) *panicf;
96
    typeof(panicf) *panicf;
87
    typeof(cprintf) *cprintf;
97
    typeof(cprintf) *cprintf;
88
    typeof(cvprintf) *cvprintf;
98
    typeof(cvprintf) *cvprintf;
89
    typeof(cputc) *cputc;
99
    typeof(cputc) *cputc;
Line 244... Line 254...
244
    typeof(get_library_ext) *get_library_ext;
254
    typeof(get_library_ext) *get_library_ext;
245
    typeof(release_library) *release_library;
255
    typeof(release_library) *release_library;
246
    typeof(release_library_ext) *release_library_ext;
256
    typeof(release_library_ext) *release_library_ext;
247
    typeof(fat_enable_flushing) *fat_enable_flushing;
257
    typeof(fat_enable_flushing) *fat_enable_flushing;
248
    typeof(lcd_get_format) *lcd_get_format;
258
    typeof(lcd_get_format) *lcd_get_format;
-
 
259
    typeof(crc32) *crc32;
249
};
260
};
250
 
261
 
251
 
262
 
252
#endif
263
#endif