Changeset 745 for branches/fault_tolerance/softs/giet_tsar/stdio.h
- Timestamp:
- Jul 10, 2014, 11:42:14 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/fault_tolerance/softs/giet_tsar/stdio.h
r724 r745 1 1 //////////////////////////////////////////////////////////////////////////////////////// 2 2 // File : stdio.h 3 // Written by Alain Greiner 3 // Written by Alain Greiner 4 4 // Date : 17/01/2014 5 5 // … … 40 40 typedef unsigned int size_t; 41 41 42 // global variables defined in stdio.c42 // constants 43 43 44 extern int volatile _ioc_lock; 45 extern int volatile _ioc_done; 46 extern int volatile _ioc_status; 47 48 extern char volatile _tty_get_buf[]; 49 extern int volatile _tty_get_full[]; 50 51 extern int volatile _barrier_value[]; 52 extern int volatile _barrier_count[]; 53 extern int volatile _barrier_lock[]; 54 55 extern int volatile _spin_lock[]; 44 #define CLUSTER_IO (((X_IO) << (Y_WIDTH)) | (Y_IO)) 56 45 57 46 // functions defined in stdio.c … … 64 53 unsigned int src_address, 65 54 unsigned int length ); 66 unsigned int _procid(); 67 unsigned int _proctime(); 68 unsigned int _procnumber(); 55 inline unsigned int _procid(); 56 inline unsigned int _proctime(); 57 inline unsigned int _procnumber(); 58 59 inline unsigned int _io_cluster(); 69 60 70 61 unsigned int _rand(); … … 72 63 void _it_mask(); 73 64 void _it_enable(); 65 66 int _sr_read(); 67 void _sr_write(int sr); 74 68 75 69 void _dcache_buf_invalidate( const void* buffer, size_t size ); … … 95 89 void _ioc_write( size_t lba, void* buffer, size_t count, size_t ext ); 96 90 void _ioc_read (size_t lba, void* buffer, size_t count, size_t ext ); 91 unsigned int _ioc_get_blocksize(); 97 92 void _ioc_completed(); 98 93 void _ioc_isr(); … … 100 95 void _mmc_isr(); 101 96 102 void _fb_sync_write( unsigned int offset, 97 void _fb_sync_write( unsigned int offset, 103 98 unsigned int buffer, 104 99 unsigned int length, 105 100 unsigned int ext ); 106 void _fb_sync_read( unsigned int offset, 101 void _fb_sync_read( unsigned int offset, 107 102 unsigned int buffer, 108 103 unsigned int length, … … 115 110 void _barrier_wait(size_t index); 116 111 117 unsigned char _byte_extended_read( unsigned int cluster, 118 unsigned int address ); 119 unsigned int _word_extended_read( unsigned int cluster, 120 unsigned int address ); 121 void _word_extended_write( unsigned int cluster, 122 unsigned int address, 112 volatile unsigned char _byte_extended_read( unsigned int cluster, 113 unsigned int address ); 114 volatile unsigned int _word_extended_read( unsigned int cluster, 115 unsigned int address ); 116 117 void _word_extended_write( unsigned int cluster, 118 unsigned int address, 123 119 unsigned int word ); 124 void _byte_extended_write( unsigned int cluster, 125 unsigned int address, 120 void _byte_extended_write( unsigned int cluster, 121 unsigned int address, 126 122 unsigned char byte ); 127 123 #endif
Note: See TracChangeset
for help on using the changeset viewer.