Changeset 722 for soft/giet_vm/giet_libs/stdio.c
- Timestamp:
- Nov 21, 2015, 1:57:51 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_libs/stdio.c
r713 r722 817 817 } 818 818 819 //////////////////////////////////////////// 820 void giet_fbf_cma_alloc( unsigned int nbufs ) 821 { 822 if ( sys_call( SYSCALL_FBF_CMA_ALLOC, 823 nbufs, 824 0, 0, 0 ) ) giet_pthread_exit("ERROR in FBF_CMA_ALLOC"); 825 } 826 827 /////////////////////////////////////////////// 828 void giet_fbf_cma_init_buf( unsigned int index, 829 void* buf_vaddr, 830 void* sts_vaddr ) 831 { 832 if ( sys_call( SYSCALL_FBF_CMA_INIT_BUF, 833 index, 834 (unsigned int)buf_vaddr, 835 (unsigned int)sts_vaddr, 836 0 ) ) giet_pthread_exit("ERROR in FBF_CMA_INIT_BUF"); 837 } 838 819 839 ///////////////////////// 820 void giet_fbf_cma_alloc() 821 { 822 if ( sys_call( SYSCALL_FBF_CMA_ALLOC, 823 0, 0, 0, 0 ) ) giet_pthread_exit("ERROR in FBF_CMA_ALLOC"); 824 } 825 826 /////////////////////////////////////////// 827 void giet_fbf_cma_init_buf( void* buf0_vbase, 828 void* buf1_vbase, 829 void* sts0_vaddr, 830 void* sts1_vaddr ) 831 { 832 if ( sys_call( SYSCALL_FBF_CMA_INIT_BUF, 833 (unsigned int)buf0_vbase, 834 (unsigned int)buf1_vbase, 835 (unsigned int)sts0_vaddr, 836 (unsigned int)sts1_vaddr ) ) giet_pthread_exit("ERROR in FBF_CMA_INIT_BUF"); 837 } 838 839 /////////////////////////////////////////// 840 void giet_fbf_cma_start( unsigned int length ) 840 void giet_fbf_cma_start() 841 841 { 842 842 if ( sys_call( SYSCALL_FBF_CMA_START, 843 length, 844 0, 0, 0 ) ) giet_pthread_exit("ERROR in FBF_CMA_START"); 845 } 846 847 //////////////////////////////////////////////// 848 void giet_fbf_cma_display( unsigned int buffer ) 843 0, 0, 0, 0 ) ) giet_pthread_exit("ERROR in FBF_CMA_START"); 844 } 845 846 /////////////////////////////////////////////// 847 void giet_fbf_cma_display( unsigned int index ) 849 848 { 850 849 if ( sys_call( SYSCALL_FBF_CMA_DISPLAY, 851 buffer,850 index, 852 851 0, 0, 0 ) ) giet_pthread_exit("ERROR in FBF_CMA_DISPLAY"); 852 } 853 854 ///////////////////////////////////////////// 855 void giet_fbf_cma_check( unsigned int index ) 856 { 857 if ( sys_call( SYSCALL_FBF_CMA_CHECK, 858 index, 859 0, 0, 0 ) ) giet_pthread_exit("ERROR in FBF_CMA_CHECK"); 853 860 } 854 861 … … 857 864 { 858 865 if ( sys_call( SYSCALL_FBF_CMA_STOP, 859 0, 0, 0, 0 ) ) 866 0, 0, 0, 0 ) ) giet_pthread_exit("ERROR in FBF_CMA_STOP"); 860 867 } 861 868
Note: See TracChangeset
for help on using the changeset viewer.