Subversion Repositories freemyipod

Rev

Rev 158 | Blame | Last modification | View Log | RSS feed

//
//
//    Copyright 2010 TheSeven
//
//
//    This file is part of emBIOS.
//
//    emBIOS is free software: you can redistribute it and/or
//    modify it under the terms of the GNU General Public License as
//    published by the Free Software Foundation, either version 2 of the
//    License, or (at your option) any later version.
//
//    emBIOS is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//    See the GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License along
//    with emBIOS.  If not, see <http://www.gnu.org/licenses/>.
//
//


#include "global.h"
#include "syscallapi.h"


struct embios_syscall_table syscall_table ICONST_ATTR =
{
    .table_version = EMBIOS_API_VERSION,
    .table_minversion = EMBIOS_MIN_API_VERSION,
        .panic = panic,
    .panicf = panicf,
    .cprintf = cprintf,
    .cvprintf = cvprintf,
    .cputc = cputc,
    .cputs = cputs,
    .cwrite = cwrite,
    .cflush = cflush,
    .cgetc = cgetc,
    .cread = cread,
    .creada = creada,
    .format = format,
    .vuprintf = vuprintf,
    .shutdown = shutdown,
    .strcasecmp = strcasecmp,
    .strncasecmp = strncasecmp,
    .strcasestr = strcasestr,
    .strlcat = strlcat,
    .strlcpy = strlcpy,
    .mutex_init = mutex_init,
    .mutex_lock = mutex_lock,
    .mutex_unlock = mutex_unlock,
    .wakeup_init = wakeup_init,
    .wakeup_wait = wakeup_wait,
    .wakeup_signal = wakeup_signal,
    .sleep = sleep,
    .thread_create = thread_create,
    .thread_exit = thread_exit,
    .thread_suspend = thread_suspend,
    .thread_resume = thread_resume,
    .thread_terminate = thread_terminate,
    .__errno = __errno,
    .ucl_decompress = ucl_decompress,
    .read_native_timer = read_native_timer,
    .read_usec_timer = read_usec_timer,
    .i2c_send = i2c_send,
    .i2c_recv = i2c_recv,
    .i2c_sendbyte = i2c_sendbyte,
    .i2c_recvbyte = i2c_recvbyte,
    .interrupt_enable = interrupt_enable,
    .interrupt_set_handler = interrupt_set_handler,
    .int_timer_set_handler = int_timer_set_handler,
    .clean_dcache = clean_dcache,
    .invalidate_dcache = invalidate_dcache,
    .invalidate_icache = invalidate_icache,
    .power_off = power_off,
    .charging_state = charging_state,
    .atoi = atoi,
    .memchr = memchr,
    .memcmp = memcmp,
    .memcpy = memcpy,
    .memmove = memmove,
    .memset = memset,
    .qsort = qsort,
    .srand = srand,
    .rand = rand,
    .snprintf = snprintf,
    .vsnprintf = vsnprintf,
    .sscanf = sscanf,
    .strcat = strcat,
    .strchr = strchr,
    .strcmp = strcmp,
    .strcpy = strcpy,
    .strlen = strlen,
    .strncmp = strncmp,
    .strrchr = strrchr,
    .strstr = strstr,
    .strtok_r = strtok_r,
    .get_platform_id = get_platform_id,
    .tlsf_create = tlsf_create,
    .tlsf_destroy = tlsf_destroy,
    .tlsf_malloc = tlsf_malloc,
    .tlsf_memalign = tlsf_memalign,
    .tlsf_realloc = tlsf_realloc,
    .tlsf_free = tlsf_free,
    .tlsf_walk_heap = tlsf_walk_heap,
    .tlsf_check_heap = tlsf_check_heap,
    .tlsf_block_size = tlsf_block_size,
    .tlsf_overhead = tlsf_overhead,
    .execfirmware = execfirmware,
    .clockgate_enable = clockgate_enable,
    .context_switch = context_switch,
    .reset = reset,
#ifdef HAVE_STORAGE
    .opendir = opendir,
    .closedir = closedir,
    .readdir = readdir,
    .mkdir = mkdir,
    .rmdir = rmdir,
    .execimage = execimage,
    .ftruncate = ftruncate,
    .fsync = fsync,
    .close = close,
    .write = write,
    .read = read,
    .lseek = lseek,
    .remove = remove,
    .file_open = file_open,
    .rename = rename,
    .file_creat = file_creat,
    .filesize = filesize,
    .storage_read_sectors_md = storage_read_sectors_md,
    .storage_write_sectors_md = storage_write_sectors_md,
    .storage_get_info = storage_get_info,
#ifdef HAVE_HOTSWAP
    .disk_mount = disk_mount,
    .disk_unmount = disk_unmount,
#endif
#endif
#ifdef HAVE_LCD
    .lcdconsole_putc_noblit = lcdconsole_putc_noblit,
    .lcdconsole_puts_noblit = lcdconsole_puts_noblit,
    .lcdconsole_write_noblit = lcdconsole_write_noblit,
    .lcdconsole_update = lcdconsole_update,
    .lcdconsole_putc = lcdconsole_putc,
    .lcdconsole_puts = lcdconsole_puts,
    .lcdconsole_write = lcdconsole_write,
    .lcdconsole_get_current_x = lcdconsole_get_current_x,
    .lcdconsole_get_current_y = lcdconsole_get_current_y,
    .lcdconsole_get_lineend_x = lcdconsole_get_lineend_x,
    .lcdconsole_get_lineend_y = lcdconsole_get_lineend_y,
    .lcdconsole_progressbar = lcdconsole_progressbar,
    .progressbar_init = progressbar_init,
    .progressbar_setpos = progressbar_setpos,
    .displaylcd = displaylcd,
    .displaylcd_sync = displaylcd_sync,
    .displaylcd_busy = displaylcd_busy,
    .displaylcd_safe = displaylcd_safe,
    .lcd_get_width = lcd_get_width,
    .lcd_get_height = lcd_get_height,
    .lcd_get_bytes_per_pixel = lcd_get_bytes_per_pixel,
    .lcd_translate_color = lcd_translate_color,
    .renderbmp = renderbmp,
    .renderchar = renderchar,
    .rendertext = rendertext,
    .renderfillrect = renderfillrect,
    .get_font_width = get_font_width,
    .get_font_height = get_font_height,
#endif
#ifdef HAVE_BACKLIGHT
    .backlight_on = backlight_on,
    .backlight_set_fade = backlight_set_fade,
    .backlight_set_brightness = backlight_set_brightness,
#endif
#ifdef HAVE_BOOTFLASH
    .bootflash_filesize = bootflash_filesize,
    .bootflash_attributes = bootflash_attributes,
    .bootflash_getaddr = bootflash_getaddr,
    .bootflash_read = bootflash_read,
    .bootflash_readraw = bootflash_readraw,
    .bootflash_writeraw = bootflash_writeraw,
    .bootflash_getrawaddr = bootflash_getrawaddr,
    .bootflash_is_memmapped = bootflash_is_memmapped,
#endif
#ifdef HAVE_BUTTON
    .button_register_handler = button_register_handler,
    .button_unregister_handler = button_unregister_handler,
#endif
#ifdef HAVE_CLICKWHEEL
    .clickwheel_get_state = clickwheel_get_state,
#endif
#ifdef HAVE_HWKEYAES
    .hwkeyaes = hwkeyaes,
#endif
#ifdef HAVE_HMACSHA1
    .hmacsha1 = hmacsha1
#endif
};