[158] | 1 | ////////////////////////////////////////////////////////////////////////////////// |
---|
| 2 | // File : stdio.h |
---|
| 3 | // Date : 01/04/2010 |
---|
| 4 | // Author : alain greiner & Joel Porquet |
---|
| 5 | // Copyright (c) UPMC-LIP6 |
---|
| 6 | /////////////////////////////////////////////////////////////////////////////////// |
---|
| 7 | |
---|
| 8 | #ifndef _STDIO_H |
---|
| 9 | #define _STDIO_H |
---|
| 10 | |
---|
| 11 | /* MIPS32 related functions */ |
---|
[165] | 12 | unsigned int giet_procid(); |
---|
| 13 | unsigned int giet_proctime(); |
---|
[158] | 14 | |
---|
| 15 | /* TTY device related functions */ |
---|
[165] | 16 | unsigned int giet_tty_putc(char byte); |
---|
[228] | 17 | unsigned int giet_tty_puts(char * buf); |
---|
[165] | 18 | unsigned int giet_tty_putw(unsigned int val); |
---|
[228] | 19 | unsigned int giet_tty_getc_no_irq(char * byte); |
---|
| 20 | unsigned int giet_tty_getc(char * byte); |
---|
| 21 | unsigned int giet_tty_gets(char * buf, unsigned int bufsize); |
---|
| 22 | unsigned int giet_tty_getw(unsigned int * val); |
---|
| 23 | unsigned int giet_tty_printf(char * format,...); |
---|
[158] | 24 | |
---|
| 25 | /* GCD coprocessor related functions */ |
---|
[165] | 26 | unsigned int giet_gcd_set_opa(unsigned int val); |
---|
| 27 | unsigned int giet_gcd_set_opb(unsigned int val); |
---|
| 28 | unsigned int giet_gcd_start(); |
---|
[228] | 29 | unsigned int giet_gcd_get_result(unsigned int * val); |
---|
| 30 | unsigned int giet_gcd_get_status(unsigned int * val); |
---|
[158] | 31 | |
---|
| 32 | /* Block device related functions */ |
---|
[228] | 33 | unsigned int giet_ioc_read(unsigned int lba, void * buffer, unsigned int count); |
---|
| 34 | unsigned int giet_ioc_write(unsigned int lba, void * buffer, unsigned int count); |
---|
[165] | 35 | unsigned int giet_ioc_completed(); |
---|
[237] | 36 | unsigned int giet_ioc_block_size(); |
---|
[158] | 37 | |
---|
| 38 | /* Frame buffer device related functions */ |
---|
[228] | 39 | unsigned int giet_fb_sync_read(unsigned int offset, void * buffer, unsigned int length ); |
---|
| 40 | unsigned int giet_fb_sync_write(unsigned int offset, void * buffer, unsigned int length); |
---|
| 41 | unsigned int giet_fb_read(unsigned int offset, void * buffer, unsigned int length); |
---|
| 42 | unsigned int giet_fb_write(unsigned int offset, void * buffer, unsigned int length); |
---|
| 43 | unsigned int giet_nic_write(unsigned int offset, void * buffer, unsigned int length); |
---|
| 44 | unsigned int giet_nic_read(unsigned int offset, void * buffer, unsigned int length); |
---|
[165] | 45 | unsigned int giet_fb_completed(); |
---|
[218] | 46 | unsigned int giet_nic_completed(); |
---|
[158] | 47 | |
---|
| 48 | /* Misc */ |
---|
[228] | 49 | unsigned int giet_vobj_get_vbase(char * vspace_name, char * vobj_name, unsigned int vobj_type, unsigned int * vobj_vaddr); |
---|
| 50 | void giet_exit(); |
---|
[165] | 51 | unsigned int giet_rand(); |
---|
[228] | 52 | unsigned int giet_context_switch(); |
---|
[232] | 53 | unsigned int giet_proc_task_id(); |
---|
| 54 | unsigned int giet_heap_info(unsigned int * vaddr, unsigned int * size); |
---|
| 55 | unsigned int giet_global_task_id(); |
---|
| 56 | |
---|
[165] | 57 | unsigned int giet_procnumber(); |
---|
[158] | 58 | |
---|
[189] | 59 | #endif |
---|
[158] | 60 | |
---|
[228] | 61 | // Local Variables: |
---|
| 62 | // tab-width: 4 |
---|
| 63 | // c-basic-offset: 4 |
---|
| 64 | // c-file-offsets:((innamespace . 0)(inline-open . 0)) |
---|
| 65 | // indent-tabs-mode: nil |
---|
| 66 | // End: |
---|
| 67 | // vim: filetype=c:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 |
---|
| 68 | |
---|