Changeset 657 for trunk/hal/tsar_mips32/drivers/soclib_nic.c
- Timestamp:
- Mar 18, 2020, 11:16:59 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/drivers/soclib_nic.c
r635 r657 2 2 * soclib_nic.c - SOCLIB_NIC (Network Interface Controler) driver implementation. 3 3 * 4 * Author Alain Greiner (2016,2017,2018,2019 )4 * Author Alain Greiner (2016,2017,2018,2019,2020:) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 93 93 void __attribute__ ((noinline)) soclib_nic_cmd( xptr_t thread_xp ) 94 94 { 95 uint32_t cmd;// command type95 uint32_t type; // command type 96 96 char * buffer; // pointer on command buffer 97 97 uint32_t length; // Ethernet packet length … … 109 109 110 110 // get command arguments 111 cmd = thread_ptr->nic_cmd.cmd;111 type = thread_ptr->nic_cmd.type; 112 112 buffer = thread_ptr->nic_cmd.buffer; 113 113 length = thread_ptr->nic_cmd.length; … … 121 121 122 122 // analyse command type 123 switch( cmd)123 switch( type ) 124 124 { 125 125 ///////////////////////////////////////////////////////////////////////////// … … 274 274 break; // end READABLE 275 275 default: { 276 assert( false, "Unknown command <%x>\n", cmd);276 assert( false, "Unknown command <%x>\n", type ); 277 277 } 278 278 }
Note: See TracChangeset
for help on using the changeset viewer.