Changeset 774e6d1a in mainline for uspace/srv/net/net/net.c
- Timestamp:
- 2011-01-09T23:24:53Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4b86dac
- Parents:
- 3c106e88
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/net/net.c
r3c106e88 r774e6d1a 474 474 475 475 setting = measured_strings_find(&netif->configuration, (uint8_t *) CONF_IO, 0); 476 int io = setting ? strtol((char *) setting->value, NULL, 16) : 0;477 478 rc = netif_probe_req _remote(netif->driver->phone, netif->id, irq,io);476 uintptr_t io = setting ? strtol((char *) setting->value, NULL, 16) : 0; 477 478 rc = netif_probe_req(netif->driver->phone, netif->id, irq, (void *) io); 479 479 if (rc != EOK) 480 480 return rc; … … 511 511 } 512 512 513 return netif_start_req _remote(netif->driver->phone, netif->id);513 return netif_start_req(netif->driver->phone, netif->id); 514 514 } 515 515 … … 613 613 /** Process the networking message. 614 614 * 615 * @param[in] callidThe message identifier.616 * @param[in] callThe message parameters.615 * @param[in] callid The message identifier. 616 * @param[in] call The message parameters. 617 617 * @param[out] answer The message answer parameters. 618 618 * @param[out] answer_count The last parameter for the actual answer … … 627 627 */ 628 628 int net_message(ipc_callid_t callid, ipc_call_t *call, ipc_call_t *answer, 629 int *answer_count)629 size_t *answer_count) 630 630 { 631 631 measured_string_t *strings; … … 639 639 case NET_NET_GET_DEVICE_CONF: 640 640 rc = measured_strings_receive(&strings, &data, 641 IPC_GET_COUNT( call));641 IPC_GET_COUNT(*call)); 642 642 if (rc != EOK) 643 643 return rc; 644 net_get_device_conf_req(0, IPC_GET_DEVICE( call), &strings,645 IPC_GET_COUNT( call), NULL);644 net_get_device_conf_req(0, IPC_GET_DEVICE(*call), &strings, 645 IPC_GET_COUNT(*call), NULL); 646 646 647 647 /* Strings should not contain received data anymore */ 648 648 free(data); 649 649 650 rc = measured_strings_reply(strings, IPC_GET_COUNT( call));650 rc = measured_strings_reply(strings, IPC_GET_COUNT(*call)); 651 651 free(strings); 652 652 return rc; 653 653 case NET_NET_GET_CONF: 654 654 rc = measured_strings_receive(&strings, &data, 655 IPC_GET_COUNT( call));655 IPC_GET_COUNT(*call)); 656 656 if (rc != EOK) 657 657 return rc; 658 net_get_conf_req(0, &strings, IPC_GET_COUNT( call), NULL);658 net_get_conf_req(0, &strings, IPC_GET_COUNT(*call), NULL); 659 659 660 660 /* Strings should not contain received data anymore */ 661 661 free(data); 662 662 663 rc = measured_strings_reply(strings, IPC_GET_COUNT( call));663 rc = measured_strings_reply(strings, IPC_GET_COUNT(*call)); 664 664 free(strings); 665 665 return rc; … … 688 688 /* Clear the answer structure */ 689 689 ipc_call_t answer; 690 int answer_count;690 size_t answer_count; 691 691 refresh_answer(&answer, &answer_count); 692 692
Note:
See TracChangeset
for help on using the changeset viewer.