master/ethernet.c
changeset 1488 3fb343e3fac0
parent 1487 1c67e19f24b8
child 1489 f77a1182b6f4
equal deleted inserted replaced
1487:1c67e19f24b8 1488:3fb343e3fac0
   700     ec_eoe_t *eoe = *((ec_eoe_t **) netdev_priv(dev));
   700     ec_eoe_t *eoe = *((ec_eoe_t **) netdev_priv(dev));
   701     ec_eoe_flush(eoe);
   701     ec_eoe_flush(eoe);
   702     eoe->opened = 1;
   702     eoe->opened = 1;
   703     netif_start_queue(dev);
   703     netif_start_queue(dev);
   704     eoe->tx_queue_active = 1;
   704     eoe->tx_queue_active = 1;
       
   705 #if EOE_DEBUG_LEVEL >= 2
   705     EC_DBG("%s opened.\n", dev->name);
   706     EC_DBG("%s opened.\n", dev->name);
       
   707 #endif
   706     ec_slave_request_state(eoe->slave, EC_SLAVE_STATE_OP);
   708     ec_slave_request_state(eoe->slave, EC_SLAVE_STATE_OP);
   707     return 0;
   709     return 0;
   708 }
   710 }
   709 
   711 
   710 /*****************************************************************************/
   712 /*****************************************************************************/
   716     ec_eoe_t *eoe = *((ec_eoe_t **) netdev_priv(dev));
   718     ec_eoe_t *eoe = *((ec_eoe_t **) netdev_priv(dev));
   717     netif_stop_queue(dev);
   719     netif_stop_queue(dev);
   718     eoe->tx_queue_active = 0;
   720     eoe->tx_queue_active = 0;
   719     eoe->opened = 0;
   721     eoe->opened = 0;
   720     ec_eoe_flush(eoe);
   722     ec_eoe_flush(eoe);
       
   723 #if EOE_DEBUG_LEVEL >= 2
   721     EC_DBG("%s stopped.\n", dev->name);
   724     EC_DBG("%s stopped.\n", dev->name);
       
   725 #endif
   722     ec_slave_request_state(eoe->slave, EC_SLAVE_STATE_PREOP);
   726     ec_slave_request_state(eoe->slave, EC_SLAVE_STATE_PREOP);
   723     return 0;
   727     return 0;
   724 }
   728 }
   725 
   729 
   726 /*****************************************************************************/
   730 /*****************************************************************************/