Changeset 279 for trunk/hal/tsar_mips32/drivers/soclib_tty.c
- Timestamp:
- Jul 27, 2017, 12:23:29 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/drivers/soclib_tty.c
r77 r279 54 54 55 55 // get command type and extended pointer on TXT device 56 uint32_t type = hal_remote_lw ( XPTR( th_cxy , &th_ptr-> command.txt.type ) );57 xptr_t dev_xp = (xptr_t)hal_remote_lwd( XPTR( th_cxy , &th_ptr-> command.txt.dev_xp ) );56 uint32_t type = hal_remote_lw ( XPTR( th_cxy , &th_ptr->txt_cmd.type ) ); 57 xptr_t dev_xp = (xptr_t)hal_remote_lwd( XPTR( th_cxy , &th_ptr->txt_cmd.dev_xp ) ); 58 58 59 59 // get TXT device cluster and local pointer … … 103 103 104 104 // get source buffer extended pointer & bytes count 105 uint32_t count = hal_remote_lw ( XPTR( th_cxy , &th_ptr-> command.txt.count ) );106 xptr_t buf_xp = hal_remote_lwd( XPTR( th_cxy , &th_ptr-> command.txt.buf_xp ) );105 uint32_t count = hal_remote_lw ( XPTR( th_cxy , &th_ptr->txt_cmd.count ) ); 106 xptr_t buf_xp = hal_remote_lwd( XPTR( th_cxy , &th_ptr->txt_cmd.buf_xp ) ); 107 107 108 108 // loop on characters … … 127 127 } 128 128 } 129 } 129 } // end soclib_tty_cmd() 130 130 131 131 132 ///////////////////////////////////////////////////////////////// … … 148 149 149 150 // get command arguments 150 type = hal_remote_lw ( XPTR( client_cxy , &client_ptr-> command.txt.type ) );151 count = hal_remote_lw ( XPTR( client_cxy , &client_ptr-> command.txt.count ) );152 buf_xp = hal_remote_lwd( XPTR( client_cxy , &client_ptr-> command.txt.buf_xp ) );151 type = hal_remote_lw ( XPTR( client_cxy , &client_ptr->txt_cmd.type ) ); 152 count = hal_remote_lw ( XPTR( client_cxy , &client_ptr->txt_cmd.count ) ); 153 buf_xp = hal_remote_lwd( XPTR( client_cxy , &client_ptr->txt_cmd.buf_xp ) ); 153 154 154 155 // get SOCLIB_TTY peripheral cluster and local pointer … … 210 211 else // TTY_TX full => update command arguments and exit ISR for retry 211 212 { 212 hal_remote_sw ( XPTR( client_cxy , &client_ptr-> command.txt.count ), count-i );213 hal_remote_swd( XPTR( client_cxy , &client_ptr-> command.txt.buf_xp ), buf_xp+i );213 hal_remote_sw ( XPTR( client_cxy , &client_ptr->txt_cmd.count ), count-i ); 214 hal_remote_swd( XPTR( client_cxy , &client_ptr->txt_cmd.buf_xp ), buf_xp+i ); 214 215 return; 215 216 } … … 223 224 224 225 // set I/O operation status in command 225 hal_remote_sw( XPTR( client_cxy , &client_ptr-> command.txt.error ) , 0 );226 hal_remote_sw( XPTR( client_cxy , &client_ptr->txt_cmd.error ) , 0 ); 226 227 227 228 // unblock server thread … … 230 231 // unblock client thread 231 232 thread_unblock( client_xp , THREAD_BLOCKED_IO ); 232 } 233 233 234 } // end soclib_tty_isr() 235
Note: See TracChangeset
for help on using the changeset viewer.