*/voiddo_netifapi_netif_add( struct netifapi_msg_msg *msg){if(!netif_add( msg->netif, msg->msg.add.ipaddr, msg->msg.add.netmask, msg->msg.add.gw, msg->msg.add.state, msg->msg.add.init, msg->msg.add.input)) { msg->err = ERR_IF; }else{ msg->err = ERR_OK; } TCPIP...
&priv->tx_config[requested_engine].cfg)) {/* board has reset, wait for reset of netdev */netif_tx_stop_queue(txq->txq);netif_carrier_off(netdev);if(netif_msg_tx_err(priv)) netdev_err(netdev,"txq[%d] tx[%d]: cannot configure channel\n", txq->id, tx_submitted);gotobusy;...
} }if(reg & ISL38XX_INT_IDENT_INIT) {/* Device has been initialized */#ifVERBOSE > SHOW_ERROR_MESSAGESDEBUG(SHOW_TRACING,"IRQ: Init flag, device initialized \n");#endifwake_up(&priv->reset_done); }if(reg & ISL38XX_INT_IDENT_SLEEP) {/* Device intends to move to powersave state...
CPMAC_MAC_STATUS);intrx_channel = (macstatus >>8) &7;intrx_code = (macstatus >>12) &15;inttx_channel = (macstatus >>16) &7;inttx_code = (macstatus >>20) &15;if(rx_code || tx_code) {if(netif_msg_drv(priv) && net_...
intsofting_startstop(struct net_device *dev,intup){intret;structsofting*card;structsofting_priv*priv;structnet_device*netdev;intbus_bitmask_start;intj, error_reporting;structcan_framemsg;conststructcan_bittiming*bt;priv = netdev_priv(dev); ...
GNRC_SIXLOWPAN_ND_MSG_MC_RTR_SOL, iface); } 开发者ID:daniel-k,项目名称:RIOT,代码行数:9,代码来源:gnrc_sixlowpan_nd.c 示例10: gnrc_ipv6_netif_init_by_dev ▲点赞 1▼ voidgnrc_ipv6_netif_init_by_dev(void){kernel_pid_tifs[GNRC_NETIF_NUMOF];size_tifnum = gnrc_netif_get(ifs);...
complete(&net_device->channel_init_wait); }elseif(nvsp_packet->hdr.msg_type == NVSP_MSG1_TYPE_SEND_RNDIS_PKT_COMPLETE) {intnum_outstanding_sends; u16 q_idx =0;structvmbus_channel*channel=device->channel;intqueue_sends;/* Get the send context */nvsc_packet = (struct hv_netvsc_packet...
pr_info(PFX"%s: enabling interface\n", dev->name);if(Adapter->LinkUpStatus) {if(netif_msg_link(Adapter)) pr_info(PFX"%s: link up\n", dev->name);netif_carrier_on(Adapter->dev); netif_start_queue(Adapter->dev); }return0;
msg.eth_id = port->id;if(npe_send_recv_message(port->npe, &msg,"ETH_SET_FIREWALL_MODE"))return-EIO;if((err = request_queues(port)) !=0)returnerr;if((err = init_queues(port)) !=0) { destroy_queues(port); release_queues(port);returnerr; ...
u.init->msg_type = cpu_to_le32(RNDIS_MSG_INIT); u.init->msg_len = cpu_to_le32(sizeof*u.init); u.init->major_version = cpu_to_le32(1); u.init->minor_version = cpu_to_le32(0);/* max transfer (in spec) is 0x4000 at full speed, but for ...